Skip to main content

SeeTestAutomation- Session 6 - Running Test Scripts On Multiple Devices

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

In this session, we will demonstrate how to run the same script on multiple devices.

We will use the test that we have created and exported in sessions 1-5 on the eri-Bank application.

SeeTestAutomation allows you to run the same script, on different devices, even if their respective operating systems are different.

In this example, we will use the script that we have created on an Android device (henceforth called the main device), and also run it on an iOS device (henceforth called the secondary device).

How is it done?

In general, you will need to add the relevant Element properties from the secondary device to the existing Elements (Images/Text/Native - at least one)

info

Note: If it is the same OS, the Text and the Native properties are usually the same, meaning that fewer adjustments are needed.

Step 1: Connect the secondary (iOS) device

Step 2: Add the 'Username' Object's Image, Text properties and Native properties to the existing Object (that already holds the main device's element's properties in it).

  1. Open the application in Instrumented mode (for an Android - using the application manager. For iOS - just open the application)
  2. Use the "Object Spy" in order to investigate the Native properties of the application.
  3. Extract the Object
  4. Choose "Add To Existing", and choose the relevant Object upon which to add the new element.

Now the Object will hold the Object's properties from both devices.

Step 3: Do the same for all other Objects.

Step 4: Go to the code that you have exported and change the name of the device under test to the name of the secondary device (instead of the main device).