Watching in VSCode
Watch the AI assistant create and run tests in the VSCode extension (you installed the extension in the Quick Start).
1. Open the Device Monitor
Click fleetest in the status bar at the bottom of VSCode.
Expected result:
- Three panes, top to bottom: the Line View (heading "Device list"; the row of device tiles), the Grid View (heading "Selected devices"; the enlarged screen of the selected device) and the Run Log View (heading "Run Log"; the execution log of the selected device).
2. Select a tile to see the enlarged screen and the execution log
Click a tile in the Line View to select the device. It is easiest to see when you try this while giving the AI assistant the following prompt.
Prompt for the AI
In project1, run the add-to-cart test with the run profile ios-run.
Expected result:
- The selected device's screen appears in the Grid View.
- The selected device's execution log appears in the Run Log View.
- With nothing selected, both say "Select a device".
3. Touch it yourself (Live Control)
Select just one device in the Line View, and operation buttons appear to the right of the enlarged screen in the Grid View. Operate the device screen with the mouse (click to tap, drag to swipe, Command(⌘)+click to double-tap, Option(⌥)+drag to trace the exact path).
Expected result:
- The place you click is tapped on the device.
- The screen updates.
- The element list and the operation log appear to the right of the enlarged screen.
4. Run from the Test Explorer
Open the Test Explorer in VSCode, choose a run profile with fleetest: Select Run Profile, then select a test and press "Run" or "Run (dry-run)".
When there is only one run profile, it is selected automatically even if you do not choose.
Expected result:
- Pass/fail right there.
- You can open the report from a failed test.
5. Watch the recordings
Open the "Test Sessions" tab (it switches there automatically if the Device Monitor is showing when a run finishes).
Expected result:
- Each scenario's video and steps.
- You can also export the results to Excel.
Prompt for the AI
For iOS runs of project1, keep recordings only for failed scenarios.
Expected result:
- "Don't keep recordings of tests that passed" is checked for the run profile ios-run (check it in the "Profiles" tab; the setting key is
recordFailuresOnly).
6. See the Results Dashboard
Open the Dashboard tab of the monitor.
Expected result:
- The run history.
- Newly failing tests.
- Recovered tests.
- The success rate.
When the Mac is slow
When many devices running in parallel make things slow, turn "Live Updates" in the Device Monitor OFF (streaming stops; status display continues).
Learn more:
Next: Preparing the app under test