Using Katalon Studio with Real Devices
Katalon Studio is an automation tool for web, API, mobile, and desktop application testing. Katalon Studio offers a flexible automation platform that fits teams and projects of any size, for any purpose. It supports users from creating tests, execution, and reports to seamless integration with the CI/CD ecosystem.
Katalon Studio offers cross-platform testing, from Windows, macOS, and Linux for web automation, to Android and iOS for mobile automation. It also comes with a built-in intuitive interface for codeless automation testing and validating the UI elements of your web application.
This integration between TestMu AI and Katalon Studio enables you to automate the cross-browser testing process through the Selenium Grid of more than 2,000 real devices.
As a result, youβll be able to expand your test coverage, analyze and extract insightful test reports, and enhance your team collaboration.
Objectiveβ
By the end of this topic, you will know:
- How can we use Katalon Spy with TestMu AI.
- How can we record interactions using Katalon Record Mobile and create Automation Scripts.
- Executing Katalon Scripts using TestMu AIβs real device cloud.
Prerequisites for Getting Startedβ
Before you can start performing App automation using Katalon Studio with LambdaTest, you would need to follow these steps:
- You will need a TestMu AI username and access key. To obtain your access credentials, purchase a plan or access the automation dashboard.
- Katalon Studio
- Access to an Android app (.apk) or an iOS app (.ipa).
- If you do not have any .apk or .ipa file, you can run your sample tests on TestMu AI by using our sample π Android app or sample π iOS app.
- Response of above cURL will be a JSON object containing the
APP_URLof the format -lt://APP123456789123456789and will be used in the next steps.
Katalon Spy with TestMu AIβ
1. Katalon Studio Web Interfaceβ
Once you have started Katalon Studio, load your project/ one of the sample projects provided by Katalon using the web interface.
Once the project has been created, we can now move to the Katalon Studio on Windows/Mac.
2. Katalon Studio on PCβ
Open the Katalon Studio on the Windows/Mac:
Click on File > Open Project.
3. Fetch Project & add credentialsβ
Now we can click on Fetch Project > which will list all the Projects and make a selection.
Add in the Username & Personal Access Token & click Ok.
Now we can see that there are 2 icons:
The first one is the Katalon Spy and the next one is the Katalon Mobile Record.
4. Katalon Spy Kick-startβ
To start using Katalon Spy with TestMu AI, just click on the Katalon Spy icon dropdown and select Remote Devices.
5. Edit Configurationβ
Click on Edit Configuration
a. Hub URLβ
Now we need to fill in the details for Remote Server URL that will be found on your App Automation Dashboard.
Copy the Hub URL and add it to the Remote Server URL from the App Automation Dashboard.
For the rest of the details, quickly head over to Capabilities Generator and now we can proceed with the next steps.
b. Desired Capabilitiesβ
Add in all the Desired Capabilities as shown below, then click Apply and Close.
Mandatory Capabilities:
"platformName", "android";
"deviceName", "Pixel 6";
"platformVersion", "12";
"isRealMobile", true;
Now for the last step we need the App ID.
Upload your iOS application (.ipa file) or android application (.apk file) to the TestMu AI servers using our REST API. You need to provide your TestMu AI Username and AccessKey in the format Username:AccessKey in the cURL command for the authentication. Make sure to add the path of the appFile in the cURL request if required. Here is an example cURL request to upload your app using our REST API:
Using App File from System:
curl -u "undefined:undefined" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -F "appFile=@"/Users/macuser/Downloads/proverbial_android.apk""
Using App URL:
curl -u "undefined:undefined" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -F "url=:https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk" -F "name=Proverbial_App"
6. App IDβ
Now just add in your App ID and click Start
7. Run Mobile Spyβ
The session now starts and itβll look like this:
We can now begin to select the elements on the screen and Capture them using the Katalon Studio and the captured items will be shown as shown below:
Katalon Mobile Recorder with TestMu AIβ
1. Starting off with Katalon Mobile Recorderβ
To start using Katalon Mobile Recorder with TestMu AI, just click on the Katalon Mobile Recorder the icon dropdown and select Remote Devices.
2. Kick Start Mobile Recorderβ
Now we have already added the Configuration while starting the Katalon Mobile Spy, so we can now just add the Cloud Application ID and click Start.