This guide gives a step-by-step example of creating a test using the Test Authoring Tool. In this example, you will create a new test that launches the browser application and executes a web search. Before starting, you must have created a project and uploaded an app. You must have also set up the Test Authoring Tool to connect to a local or cloud-based phone.
Log in to MoQuality, open your project, and select the app you want to test.
Click Create in the navigation bar on the left.
Click Test to create a new Test. The Tests screen opens with an empty test loaded:
In the status bar at the top of the Tests screen, make sure RECORD mode is selected, then connect to a phone from the Connect drop-down menu:
Once your app launches in the browser, you are ready to create a new test:
The left column shows your app. The middle column lets you select actions and displays the UI hierarchy. The right column shows the steps as you add them to the test. For this test, you will open a browser and run a search.
First, enter a name for your test in the top of the third column. Click the pencil icon; type the name of your test; then, click the check icon:
Now add a step to your test that launches the browser.
Select the browser icon UI element. Either click the browser icon on the virtual phone screen or select it from the UI hierarchy:
The Create a Step column updates to show details about the UI element and the actions you can apply to it:
Review the Appium code at the top of the column and the UI Hierarchy in section 1. The code updates as you set the options in the Create a Step column.
If you need to edit the reference to the UI Element, use the Select Filters section of the screen to focus the UI element selection:
Add and remove filters by selecting the hierarchy components that define the element you want to act on. You can add additional filters and UI elements by clicking the green + button.
Choose an action in section 3. Select Click from the Touch dropdown menu:
Click on the Touch:Tap icon to collapse the menu. You can also add a timeout value and set other options depending on the action type in the Choose an Action section.
Click the green Add button at the bottom of the Create a Step column to add that step to your test. A description of the step is added to the third column:
You can take several actions on a step: edit, run this step, run all steps starting from this step, and delete the step.
Once the step is added, wait for the phone screen to update to show the results of the action. In this case, the browser opens:
Now, define a step that searches for "MoQuality".
Select the search field UI element:
Select Input in the Choose Action section and enter MoQuality in the text field:
Click the green Add button. The step is added to the steps list.
Now, add a step that executes the search. Use a Click action on the enter button on the keyboard.
Finally, click the green Save Test button to save your test. Once you've saved you test, you can run it on any phone that you can connect to. Your test will show up in the list on the Tests page: