With mabl, you can create, run, and review automated UI tests for your mobile application without writing any code. This article explains how to start testing your mobile application, from exporting your build to running the test in the cloud.
Export your build
To get started testing, you’ll need a build of your application. We support all of the most common languages and frameworks including Swift, Java/Kotlin, React Native, Flutter and hybrid apps. For more detailed instructions on how to export your mobile builds, check out this article.
Create a new mobile test
In the mabl Desktop App, create a new mobile test:
- Click on the New test button in the top left corner.
- Select Mobile test.
- On the new test form, enter a test name. For example: "Practice test - <your-name>"
- In the Core settings section, make sure the Cloud training tab is selected.
- Click on the checkbox "Train against any build file in your workspace or upload a new build"
- Click on Upload a new build.
- Select the mobile build
- In the Virtual cloud device section, select the device and OS version for the training session.
- Click on the Create test button to launch the mabl Trainer!
While the device is preparing for the test session, you can interact with the trainer panel on the right.
The mabl Trainer
Interact with your app
The first time you launch a test session in the mabl Trainer, the Rec button is turned on and ready to capture your interactions with the application. Subsequent editing sessions start with the Rec button turned off.
Not sure what to do? Here are a couple of examples of different types of interactions to try:
- Navigating through an app onboarding flow
- Logging in
- Searching for an item
- Editing account settings
As you record steps, don't forget to add assertions to validate that your application is behaving as expected.
Pause recording
To pause recorded interactions in the Trainer, turn off the Rec button. When the Rec button is off, you can still create other steps, such as assertions, wait steps, and flows. If you turn the Rec button back on, the Trainer will resume recording your interactions with the application.
After recording a basic interaction with your app, replay the test by clicking the play button. Then save your test and close the mabl Trainer.
Run your test
Once your test case has been established, you can run the test on mabl's highly secure and scalable infrastructure.
To trigger an ad hoc run in the cloud, take the following steps:
- On the test details page, click on the Run test button.
- In the ad hoc run panel, select the application and mobile build file for the test run. If you haven't set up applications yet, select the mobile build file that you used to train the test.
- Select a mobile device and OS version. You can run your test against any platform-compatible device and OS version supported in the mabl cloud.
- Click Run test.
The ad hoc run panel
To watch live playback of the test, click on the status that appears below the Run test button.
Next steps
What can you do after creating and running your first mobile test? Here are some suggestions:
- Review output from your mobile test.
- Associate your uploaded mobile build with an application and environment to unlock the power of plans, scheduled testing, and integrating tests into your CI/CD pipeline.