Automation
Last updated
Last updated
Automated testing allows you to leverage Qyrus Device Farm's devices to execute your existing tests, providing comprehensive reporting that includes video recordings, device vitals, and Appium logs.
Having a project created (click here for more information on project creation)
Uploading an application file (click here for more information on uploading an application)
Under Projects, click on “Sessions” for your project
Click on the “Automation” tab and then Click on “Quick Setup Guide”
Choose a device to execute the test on
Sort the devices by region, platform, or search for a specific device.
Select an application file to test
Android
Choose the “APK File”
Choose the “App Activity”
iOS
Choose the “IPA File”
Click on “Generate JSON”
Note: This is the JSON generated for the device and application that you picked. This will be copied in to your testing framework
Note: This is the information that will be added to our testing framework.
To run the tests on your framework using the Qyrus infrastructure, provide the desired capabilities in to the testing framework.
Note: This is an example using java to test an iOS device.
Note: This is an example using java to test an Android device.
Start Automated Tests:
Initiate the automated test session by running code in our machine.
Qyrus Device Farm will deploy your application and execute the specified Appium tests on the selected devices.
Monitor Test Progress:
During the test execution, monitor the progress in real-time through the provided dashboard.
Observe device vitals, Appium logs, and video recordings to understand the test behavior.
Access Detailed Reports:
Once the test session is completed, access the comprehensive test report.
Review device performance metrics, Appium logs, and video evidence for a comprehensive analysis.
In order to execute the automated tests via JAVA; Launch any JAVA IDE (for eg:eclipse) where the respective framework details can be loaded easily consisting the automated tests.
Note: These capabilities are unique to each device and app chosen while generating a JSON.
Before you begin, ensure you have the following software and tools installed:
Appium: Make sure you have Appium, an open-source mobile application automation tool, installed on your system. You can download and install Appium from the official website .
Note: Appium supported version 1.X (Download Appium desktop)
JAVA 8: Appium requires Java to execute test scripts. Ensure you have Java Development Kit (JDK) 8 installed on your system. You can download JDK 8 from the official Oracle website or use a compatible distribution.
JAVA IDE: You'll need a Java Integrated Development Environment (IDE) for writing, editing, and managing your test scripts. Choose a popular Java IDE such as Eclipse, IntelliJ IDEA, or any other of your preference.
These prerequisites are essential to create and execute automated test scripts using Appium and Java. Make sure you have them in place before you start your mobile app testing journey.
Note: This is an example using java to test an Android device.
Copy the JSON generated from the above steps and replace it with coresponding attributes in the below code
Note: remoteURL and appium:AuthToken and appium:Authentication are the ones which help setting up the connection with server.
Once the details are saved, click on execute test and go back to automation page in Qyrus DeviceFarm Dashboard. Where you will be able to view the Automation test initiated
The live preview can be viewed.
Note: User will be able to trigger only one session at a time on a particular device.
Once the session is complete, click on Show Details to view → Device Logs, Device Vitals & Appium Logs. View Reports