This tutorial allows you to build or execute test cases on Android devices connected to the cloud using Appium Drivers or SeeTest Automation C#/Java client
To develop a test you will need to Connect to a mobile device in Automation Mode
Step 1 : Prepare your Application
Using the Application Manager (Manage Cloud Applications via the cloud based Web UI.) upload your application to the Digital Assurance Lab Application Center, you can later
Click + on the App Manager dialog box.
This will open up App Manager application dialog box. Click Browse Files to pick up desired Application to upload from your local hard drive.
Next, Select the application and install and launch it on the device
Note: As shown the screenshot below click Install icon for installation of the app.
After then installation application can be launched using the Launch button when it gets enabled.
Step 2 : Open the Object Spy
The Object Spy provides a visual representation of the application objects layout.
The Object Spy tool allows you to filter elements using XPath queries for selecting an Element's identification method.
Unique XPath generator will create a unique XPath expression for the selected element.
Step 3 : Create a project with a Java IDE
Create new Appium project in Eclipse (Gradle \ Maven)
- Create a new gradle project, File->New->Other... and Select
Open the newly created project, open the build.gradle file that was created. Replace the generated content with the following:
Run the clean, cleanEclipse and eclipse task to prepare your eclipse environment.
Create a new Maven project, File->New->Other... and Select
Step 4 : Write your first Test Class
Create a Test Class under src/test/java folder in your project