Introduction
Kapptivate mobile app recorder allows to record an app test sequence directly from your browser.
Please read the instructions below or browse the following video:
Usage
Simple test implementation
In Kapptivate Testing, select the remote control tab and the smartphone you want to use to record the test.
Click on the start a test record icon:
Select the app you want to use for the test creation:
Record the steps of the test manually. Every step you perform will create a row in the test recording part:
After you performed all the steps of the test, just select the yellow icon to stop the record and click on "generate Javascript test" to create a test:
After saving it, your test will be available in the test list. For more details, please refer to the test building section.
Troubleshooting and fine tuning
Depending on how complex the app you want to monitor is, recording a test as mentioned above might not be sufficient and running the test might fail after some time.
When you record a test, every step of it (click, text input, etc) refers to a "xpath". When you select a field on the app, this field is often related to multiple "xpath". To select the most convenient one, click on the "start target mode" icon:
Then, click on the element you want to use as the next step of your test. A popup will appear:
The "xpath" available will be displayed in the list. Just select the most convenient one. If you don't know which one to use, the one with the shortest and clearest description is usually the best one - for instance, in this case:
//*[contains(@text,"1")]
You may also browse the xml tree to manually find other xpath on the app.
Once you spotted the "xpath" you want to use, click on the three dots icon to the right and select the action you want to perform:
The most used actions are:
- Click, for a click on a button
- Set value, to input a text in a field
- Scroll until, to reach a specific element in the list
- Assert text, to check that the displayed text correspond to what is expected