Warm up - google/android-uiconductor GitHub Wiki
Task 1: Warmup
Open camera take a picture and close. All the actions need to be done from the Front End, otherwise it won't get recorded.
Task 2: Basic workflow and validation
- If we want to check whether the camera is opened or not. What we should do is
- Open camera perform some validation. you can do either/both
- verify that some element in the camera app exists.
- some keyword in the logcat. (will cover in the logcat validation section)
- Close camera.
In the above scenario, a regular validation action is performed to confirm the existence of the element "video" when camera was opened. To perform a validation hold the ctrl/cmd key and select the portion on the UI using the mouse and release the ctrl/cmd key once selected.
NOTE: Normally all the workflow should start at the home screen and end at home screen, to make sure the status of the device are the same.
Task 3: Advanced Validations
- Find and click an item in a large list.
- Turn off WiFi button only it is turned on.
To achieve first task, Scroll Screen Validation can be used which performs several Swipe actions until the element is found, You can perform scroll validation towards any desired direction.
For the second task, Conditional Click action is a right solution because conditional Click works in the following way. In the example it checks the button for wifi toggle if it is on, it turns it off.
IMPORTANT: Conditional Click when played always produces the result as "PASS", so it can be used as an action in the work flow instead of using it to determine the result.