[KShare] Efficient Mobile Testing: Katalon Studio and Sauce Labs Integration with Appium 2.0

Hi folks, :wave:

Today we are back with another KShare article on Mobile Testing, read more below :point_down:

When working with Katalon Studio and Saucelabs mobile testing with appium 2.0 supported Virtual devices or Real devices, you need to do some minor changes in your Desired Capability setup.

When working with SauceLabs Virtual devices and using inbuilt SauceLabs Appium 2.0, you need to keep the below points in mind:

  • With appium 2.0 onwards, you need to follow the W3C protocol instead of the old JWP protocol. Please refer to this Documentation to know the difference between both the protocols.
  • Now, you need to use the vendor prefix “appium:“ before the desired capabilities as well as put the “username“, “appiumVersion“, and “accessKey“ in a separate Dictionary type Object naming it as “sauce:options“.

For more information on this migration, please refer to this SauceLabs Documentation: Migrating to Appium 2 on Sauce Labs | Sauce Labs Documentation

For Android Emulators and iOS Simulators

  1. On SauceLabs, you can got to: Platform Configurator:
  • Select your preferred Android or IOS version
  • As well as select appium version as 2.0.0

  1. Copy the generated Desired Capabilities from SauceLabs and input them into your Katalon Studio project: Project > Settings > Desired Capabilities > Remote:

:information_source: The above example demonstrates for Android Emulators, though you can use the same style Desired Capabilities for IOS Simulators. Please note to change the values for the Desired Capabilities as per IOS ones and also change the Appium Driver → IOS Driver , like below:

For Real Android and iOS Devices

To use Appium 2.0 with latest Android and IOS versions for Real Devices, please follow the below steps:

  1. On SauceLabs, you can go to: Platform Configurator:
  • Select your preferred Android or IOS version

  1. Go to your Katalon Studio project: Project > Settings > Desired Capabilities > Remote:

:information_source: The same Desired Capability style can be used for IOS Real devices just after changing the Desired Capability values as well as the Appium Driver → IOS Driver , like below:

:pushpin: You can refer to the link below to access some sample Desired Capabilitiy files which you can then import them into your Katalon Studio project by following this documentation: Manage Desired Capabilities in Katalon Studio | Katalon Docs

https://drive.google.com/drive/folders/1SpATta5-3TbZaYaiKYYdVyG4jQSJur1X?usp=sharing


:stop_sign: When using the latest versions of Android and IOS, If you do not enclose the “username“, “appiumVersion“, and “accessKey“ in a separate Dictionary type Object naming it as “sauce:options“ , you might get errors like below:


Useful resources


If you find this article helpful, then don’t forget to leave us a big heart :heart: or a thumbup :+1:, and share this article with your colleague or team members!

2 Likes

Thank you very much the Product Support team (@support.squad) and Bhavyansh Ameta (@bhavyansh.ameta) for yet another helpful article!

Bhavyansh
Bhavyansh Ameta (@bhavyansh.ameta) - Junior Product Support Specialist
Bhavyansh is a Junior Product Support Specialist at Katalon who utilizes his technical expertise to assist users with intelligent solutions. His passion for delivering exceptional support is not just about providing answers but fostering a positive and empowering user experience.
1 Like

Do you have an idea for a topic that you would like the Product Supoprt team to cover in their next KShare article? Then share them with us by simply fill in the form below :point_down: