Appium Studio for Eclipse - Build Your First Test
This section explains the step-by-step procedure to develop an automated test case in Digital.ai Continuous Testing.
Open a Device
From the Cloud Devices view, select an Android device, then click Open.
Install and Launch Your Application
From the Applications view, click Install, then click Launch.
The Console view displays a successful notification for both operations.
Application Information to the Appium Capabilities Setup
Select the application section title from the Applications view and drag it to the code area.
Write Your Test Logic
This section describes one of the many ways a test logic can be written.
-
Click the Dump UI icon () right to the device reflection.
-
Type a name, then click OK. A dump file is created and is opened in the editor.
-
Select the element to interact with. In the Dump Properties view, all of the properties of the element are displayed.
tipThe lines that are colored in pink are properties that are unique to that page. Using those lines to identify the elements will assure unique identification.
-
Select the property (or properties) you identify the element, then click the Add to Repository icon ().
-
Approve the name of elements in the repository. The element name is a compound of the page name and the element name separated by a dot ('.').
After the element is approved, it is added to the repository (see the 'Repository' view).
-
Add all the relevant elements on the page to the repository.
Build Your Test Flow
Drag and drop the element into your test code.
- - Click command.
- - sendText command.
In this example, the Text icon is used for both the username and the password elements, and then the Finger icon is used for clicking the login button.
To finalize the 'sendKeys' commands, provide the text needed to be sent to the text field.
Run and Verify Your Test Code
-
From the Devices view, click the Overwrite Capabilities icon (). This causes the execution of any test to be directed to this device (regardless of the device query capability), as well as ignoring the install and launch capability. This helps you to debug your test code without the need to reinstall the application every time.
-
Right-click the test class, the click Run as**..**.
After the execution finishes, you can view the results in the reports folder under your project.