With mabl, you can quickly build coverage of your web app and deliver quality at scale. If you’ve just installed the Desktop App, use the steps outlined in this article to create your first tests for your web app:
Describe what you want to test
To create a new browser test, click New test and choose the Build with mabl option. In the prompt field, describe what you want to test and the URL you want to test at. Start with a simple user journey that validates core functionality. For example:
“Make sure visitors can contact us from our website. Visit https://example.com, go to the About page, and fill out a contact form.”
Once submitted, the mabl agent generates a test outline. You may continue interacting with the agent in the chat interface to provide additional context until the outline meets your needs.
Click on Next to review your test’s settings. The New browser test form offers many test configurations, including descriptions, labels, plans, and credentials. For now, just make sure the test is using the correct base URL in the Core settings section:
mabl can generate browser tests on your local machine or in the mabl cloud. To familiarize yourself with the test authoring process, set the Build approach to Local so you can watch the mabl Trainer interact with your app in real time. Later, as you gain a better understanding of how test authoring works in mabl, you can use the Cloud option to trigger and review multiple test authoring sessions in the mabl cloud.
Click on Create test to launch the Trainer.
Generate the test
The mabl Trainer loads two windows:
- A Chrome browser window opened to your application.
- The Trainer window, where the agent builds out test steps.
The agent starts interacting with your app and generating test steps according to the outline. Steps are bundled together into step groups based on the test outline and include assertions to validate the expected behavior.
Manual training
If you spot issues with the generated test steps, you can pause the agent and switch to manual mode:
In manual mode, the Trainer records your interactions with the application as test steps. You can also add other steps through the step menu: + (Add step).
Run the test
When you’re finished, save the test and close the Trainer.
To run your test, click on the Run test button and choose from one of the following options:
- Cloud run (recommended): execute the test from the mabl cloud and view rich diagnostic test output in the mabl app.
- Local run: execute the test from your local machine. Use this option if your app is not accessible from the public Internet and you haven’t set up your network for mabl tests.
Learn more about the different test execution environments in mabl here.
Next steps
Depending on your current setup and what you want to accomplish, next steps could include learning more about the following:
- Building coverage:
- Networking
- Authentication
- More support with the Trainer