Editing a mobile test
You can edit a mobile test by using the test editor. You can edit a mobile test by modifying the test steps, adding verification points, and so on.
The test scripts are displayed in the test editor. The test steps are generated as
simplified test scripts in the form of English statements which are easy to understand.
The test steps display the list of keyboard actions and UI elements that were captured
during the recording phase.
Note: Editing of a mobile test is similar to editing a Web
UI test. If you are familiar with the recording, editing, and playing back the Web
UI tests, it is easy for you to test a mobile application in HCL DevOps Test
UI (Test UI). See Editing Web UI tests.
The test editor has
multiple views that are explained in the following table:
View name | Description |
---|---|
Test Contents view | The area at the top left is the Test Contents view. This view displays the chronological sequence of events in the test. |
User Action Details view | The area at the top right is the User Action Details view. This view displays details about the currently selected action in the test script. In this area, you can select a graphic object and specify the action related to the object, specify how the object is identified and its location, and other such details. |
SmartShot View | The area at the bottom left is the SmartShot View, which includes two tabs: SmartShot and Elements. The SmartShot tab displays the graphical objects captured during the recording of each test step. To the right is the Properties view, which shows the properties of the selected object. |
You can use the SmartShot View to perform the following actions on the mobile test:
Actions on the mobile test | More information |
---|---|
Modifying a test step | Modifying a step in a test from the SmartShot View |
Adding verification points | Creating verification points for objects in tests |
Adding a loop | Adding a loop |
Defining variables with a selected mobile device | Declaring test variables to select a mobile device |
Assigning variables to an object property | Assigning a test variable to an object property |
Adding user actions in a test | Adding user actions in a test |
Applying the guided healing feature | Overview of guided healing and self-healing |
Identifying the UI elements by using image property | Validating images and user interface elements by using the image property |
Modularizing test scripts | Splitting UI actions |
Inserting log messages into tests scripts | Inserting a custom log message into a UI test script |