Do you think IIT Guwahati certified course can help you in your career?
No
Introduction
Have you ever worked with any automated testing software tools?
This article is focused on one of these automated testing software tools, i.e., Katalon Studio. Katalon Studio is built on the open-source Selenium and Appium automation frameworks. It has a specialized IDE interface for API, mobile, web, and desktop application testing. Katalon Studio is designed to reuse and create automated test scripts without coding. It allows the execution of automated tests for UI elements. It includes iFrames, pop-ups, and wait time. Linux, macOS, and Microsoft Windows all support launching the tool.
Let's dive into the article to know more about Katalon Studio.
AWS Device Farm Integration
The aws-device-farm-integration tool allows you to execute Katalon Studio tests on AWS Device Farm. AWS Device Farm is a service that allows you to test your mobile applications on real devices in the cloud, but it only supports certain testing frameworks such as Appium. The aws-device-farm-integration enables you to run your Katalon test scripts on AWS Device Farm by configuring your Katalon project, AWS Device Farm, and the integration tool.
This article will guide you through setting up and executing the usage sample, which is the Katalon Demo Project, on AWS Device Farm. At the end of the article, some configurations are provided that you can use to execute your Katalon projects on AWS Device Farm.
Integrate with AWS Device Farm
To execute your Katalon project on AWS Device Farm, you will need to configure your Katalon project and make updates to the aws-device-farm-integration tool. This may involve modifying the configuration settings in your Katalon project and adjusting the integration tool to work with your project. The steps required will depend on the specifics of your project and the integration tool. But generally, you will need to ensure that your project is set up correctly and that the integration tool is properly configured to work with your project and AWS Device Farm.
Configure your Katalon project
Open desired project in Katalon Studio. You will need to prepare your test cases and test suites to run on a local device. Make sure they are working correctly. You should begin with the keyword "Start Existing Application" in your mobile test case. It is so because AWS Device Farm will have already installed the application on the devices under test before each run.
To modify the desired capabilities for your app, go to the Project Settings menu. Select Desired Capabilities, then choose the Remote option.
To configure the remote server and Appium driver for your project, you will need to provide the Appium server URL in the Remote server URL field (e.g., "http://127.0.0.1:4723/wd/hub")
Select the appropriate option for the Remote server type (e.g., Appium).
In the Appium driver field, you should choose either the Android Driver for Android devices or the iOS Driver for iOS devices, depending on your target platform.
To set the desired capability for the platform, click the Add button and create a capability named "platformName" with the value "Android" for Android devices or "iOS" for iOS devices. After completing the configuration, click Apply and Close to apply the changes.
Create a .zip file from your Katalon project.
Update aws-device-farm-integration project
To prepare your Katalon project for execution on AWS Device Farm using the aws-device-farm-integration tool, you will need to follow these steps:
Clone or download the aws-device-farm-integration tool from the Katalon Studio AWS Device Farm Integration repository.
Place your Katalon project .zip file in the "src/test/resources" directory inside the aws-device-farm-integration folder.
Open the config.properties file and update the following variables to match your project and settings:
KATALON_VERSION: the Katalon Runtime Engine version being used
KATALON_PROJECT_PACKAGE_FILE: the name of your project package file
KATALON_EXECUTE_ARGS: the arguments for the Katalon run command
The -browserType argument should be set to "Remote".
The -reportFolder=$DEVICEFARM_LOG_DIR argument allows you to download the execution report in the "Files/Customer Artifact" of the AWS Device Farm job.
To build the aws-device-farm-integration tool, navigate to the "aws-device-farm-integration" folder in your terminal and run the following command: mvn clean package -DskipTests=true. If the build process is successful, you will see a .zip file named "zip-with-dependencies.zip" in the "target" folder. This file contains the necessary dependencies and resources to run the aws-device-farm-integration tool.
Configure a test project on AWS Device Farm
To configure your Katalon test project on AWS Device Farm, you will need to follow these steps:
Log in to the AWS Console and navigate to Device Farm > Mobile Device: Projects.
Click "Create" and input a name for your project.
Choose application
Choose between Mobile App and Web App using the toggle button. For mobile app testing, select Mobile App.
Upload your application under test. This should be a .apk file for an Android application or a .ipa file for an iOS application. Wait for the file to upload, then click "Next."
Select Web App in the "Choose application" step.
Enter a run name and click "Next."
Configure
In the "Configure" page, select "Appium Java JUnit" from the "Setup test framework" dropdown menu.
In the "Selected File" section, upload the "zip-with-dependencies.zip" file.
In the "Choose your execution environment" section, choose "Run your test in a custom environment," then click "Next."
Select Devices
In the "Select Devices" step, choose a suitable device pool and click "Next."
In the "Specify device state" page, review the other settings and make any necessary changes, then click "Next."
Review and start Run
Review all of the configurations one last time, then click "Confirm and Start Run."
A new test run will be created in the AWS Console with a "pending" status.
Once the run starts, you can click on the test run name and a specified device to view the test status.
When the run finishes, you can download the execution report at "Files/Customer Artifacts."
Frequently Asked Questions
What is the AWS Device Farm Integration?
The AWS Device Farm Integration is a tool that allows you to execute Katalon Studio tests on AWS Device Farm.
Why is AWS Device Farm integration useful?
AWS Device Farm is a service that enables you to test your mobile applications on real devices in the cloud, but it only supports certain testing frameworks. The AWS Device Farm Integration enables you to use Katalon Studio to run your tests on AWS Device Farm.
What is Katalon Studio used for?
Katalon is used to create and reuse automated test scripts for UI without coding. It allows running automated tests of UI elements. It can be launched on Microsoft Windows, macOS, and Linux.
Is Katalon Studio still free?
The free plan of Katalan Studio is suitable for individuals and small teams. The Premium plan is best for large groups or SMBs with different test results and production-grade testing workloads.
What language does Katalon use?
Katalon Studio uses Groovy, a language built on top of Java. It has to load many libraries for parsing test data, test objects, and logging.
Conclusion
In this article, we have discussed AWS Device Farm Integration in Katalon Studio. We have also explained the steps of integration and configuring a test project on AWS Device Farm.