Skip to main content

Set geographic location

TestCloud supports setting geographic location for mobile and web testing.

Important:

You have installed the Katalon TestCloud Keywords plugin to automatically load all TestCloud keywords into your project without having to manually define them. If you have not, visit Katalon Store: Katalon TestCloud keywords.

In some test scenarios, you may want to dynamically set geographic location (or geolocation) to:
  • Ensure the website and mobile app display correctly when accessed from different geolocations.

  • Verify that localization features such as language translation, currency change, and time zone changes reflect accurately according to different locations.

  • Confirm that blocked or restricted content like images, content, or videos are blocked as intended from different locations.

You can simulate geolocation at the start of testing sessions using the desired capability geoLocation.

  1. In Katalon Studio, click the Profile drop-down and select Reload Plugins to make sure the plugin is installed.
  2. Go to Project Settings > Desired Capabilities > TestCloud.
  3. In the TestCloud table, add a katalon:options property, set Type as Dictionary, then click the ....
  4. In the Dictionary Property Builder dialog, add the String property geoLocation=<country-code>. Then, click OK.
  5. Add the setMobileGeoLocation keyword to your test case as needed.
  6. Configure your TestCloud environment and run the test.
Was this page helpful?