Creating and running tests
Create a happy-path test for your own app (for example the test project myshop), run it, and choose the smoke tests.
1. Create a test
Prompt for the AI
In the fleetest test project myshop, create one happy-path test (the normal flow) for my app. Do <the screens and the flow>, and check <what must be visible for it to succeed>.
This app sometimes shows a "<dialog name>" dialog right after launch. "<close button label>" dismisses it, so close it when it appears, then continue.
Expected result:
- One scenario is added, and the dry-run and the device run are green.
For screens that sometimes appear (first-launch guides, announcements, OS permission dialogs), give the name and the close button's label. To check that the screen changed, make the success condition a text that appears only on the destination screen.
More details:
- Creating a test class
- Selector expressions
- Writing robust scenarios
- How to write for each UI component, and its quirks
2. Before you run
An irreversible operation such as an order, submission or registration can happen twice in one run (a device problem makes the scenario run again from the start → Writing robust scenarios). Find such tests first, and point them at a test counterpart (a payment test mode, staging) before you run.
Prompt for the AI
In the fleetest test project myshop, find the scenarios that contain irreversible operations such as submitting, purchasing or registering,
and check that they point at a test payment or staging server.
3. Choose the smoke tests
For smoke, pick just a few of the app's main flows (it launches, you can log in, the main screens open). You can ask the AI assistant which ones to pick. How to split them into folders and run them is in Running smoke and regression separately.
Next: Keeping tests up with app changes