Creating Mobile Tests
Create an AI-assisted Android or iOS test, write an effective prompt, choose a device and app build, execute it, and review the result evidence.
Quick answer
Go to Test Cases → New Test Case → AI Assistance, select Mobile, describe the flow, and continue. In the final configuration step, select Android or iOS, choose a device and app build, then select Generate & Execute Test Case.
Interactive demo: configure gesture-based mobile testing
Follow the highlighted actions to configure a mobile scenario that uses touch gestures and visible validations. The demo is public and does not require a ContextQA account or app upload.
What to notice
Gesture intent and its target are described in user language instead of framework-specific code.
Tap, swipe, scroll, pinch, and zoom actions stay paired with visible expected results.
Platform, device, and app-build choices keep execution configuration explicit and repeatable.
Create an AI-assisted mobile test
1. Choose the creation method
Open Test Cases.
Select New Test Case.
Choose AI Assistance.
The creation dialog also offers Import Files, Record & Play, and Create manually. This guide uses AI Assistance because it creates a test from a plain-English scenario.
2. Select Mobile
Under Select Target Platform, choose Mobile.
Optionally select a Prerequisite if another test must establish the app state first.
Describe the scenario in the text box.
Example:
3. Write a reliable prompt
Include:
The starting screen or state
Each important action in order
The visible label of the target control
Test data source or approved fictional value
At least one expected result
Use mobile language such as tap, swipe, scroll, and long press when it matters. Keep one test focused on one user goal.
Gesture-based mobile scenarios
Mobile journeys often depend on touch gestures that do not have a desktop click equivalent. Name the gesture, its target, its direction when relevant, and the visible outcome that proves it worked.
Tap
Search for a restaurant or product
Results match the entered search term
Swipe
Move a promotional carousel to the next offer
The banner content or active pagination indicator changes
Scroll
Browse a long result or catalog list
New list items become visible
Pinch
Resize a product or food image
The image scale changes without distortion
Zoom
Inspect a delivery or tracking map
Map content scales and remains responsive
Example prompt:
Keep each gesture next to a visible verification. This makes a failure explain whether the interaction itself failed or the application did not update afterward.

4. Configure the run
Select Generate & Execute Test Case to open the third step.
Review the current Parallel and Queued counts.
Under Select Platform, choose Android or iOS.
Under Select Device, choose a compatible device.
Under App Build, choose the completed APK or IPA upload.
If Desired Capabilities appears, expand it and review the values supplied by the selected build. Capability names and types are read-only;
app_urlandos_typevalues are also protected.Select Generate & Execute Test Case.
The action remains disabled until the required configuration is complete.
If the selected build has no required capability data, ContextQA displays Required capabilities are missing in the selected build. Please re-upload your app. The execution action remains disabled until you select or upload a valid build.
Review the execution
During and after a run, use the evidence provided by the result screen to answer:
Did the test use the intended platform, device, and build?
Which steps passed or failed?
What was visible when each significant action ran?
Do the screenshots, logs, and available recording support the result?
If the generated steps do not match the prompt, edit the test before adding it to a regression suite.
Organize mobile test cases
Give each case a goal-based title, such as
Android — Sign in with valid account.Add labels such as
mobile,android,ios,smoke, or the feature name.Use the Test Cases filter to focus on Mobile records.
Keep Android- and iOS-specific behavior in separate cases when expected results differ.
Troubleshooting mobile execution
For a complete walkthrough, see Your first mobile test.
Last updated
Was this helpful?
