Skip to main content
Skip table of contents

Initiating Mobile Object Spy and AUT

Locator Priority Settings for Mobile Object Spy

The default sequence for Mobile Object Spy for a native application is as follows:

  1. UiAutomator

  2. ID

  3. Accessibility ID

  4. Class

  5. XPath

For a web application, the default sequence is:

  1. Link

  2. Name

  3. ID

  4. XPath

  5. CSS

Feel free to adjust this sequence to suit your testing needs.

Launching a Mobile Device and Application Under Test

Launching Devices Once you're signed into Mobile Object Spy, you can select a device from available list to launch and add objects from the application under test. Mobile Object Spy displays all devices, including real devices, emulators, and simulators.

💡It's generally recommended to use a single simulator/emulator per agent while working with Mobile Object Spy. However, you can simultaneously use multiple real devices without issue.

To launch a mobile device, follow these steps:

  1. Login into your Qualitia Boson - Client.

  2. Access Develop from the left navigation menu.

  3. You can automate a test case or a task using the Mobile Object Spy. In case of a

    1. Test Case

      1. On the Explorer section, you can view existing Test Scenarios.

      2. Select a Test Scenario and click the Expand option.

    2. Tasks

      1. On the Explorer section, click Tasks.

      2. Select a Task and you can view its test cases.

  4. Click Mobile Object Spy icon located in the right-hand.

    image-20250212-100442.png
  5. Clicking Mobile Object Spy will open a screen with a message Checking pre-requisites for automating mobile. If the pre-requisites are not available, it will ask you to update and try again. Refer Mobile Configuration - Help Center - Confluence to get your machine mobile ready.
    Note: Checking pre-requisites will take time the first time.

    image-20251128-102113.png

  6. Once the pre-requisites are verified, you will see all the installed devices. Select the device and click Boot & Connect.

    image-20250212-100618.png
  7. This will open the Emulator and the Mobile Application Configuration screen with the following fields:

    1. Select an Application: To launch an already installed application, select it from the dropdown list.

    2. Install new application: To install an application, select the .apk file from your local directory and click Install. It will be added to the Select an Application dropdown list.

    3. Provide Web URL: To add objects from web, input the Web URL.

    4. Advanced options: To add capabilities, select a capability from the dropdown.

      image-20251128-102146.png

  8. Click Launch to launch the device.

  9. While the application is launching, you will see two screens:

    1. Virtual Device: Displays the virtual device.

    2. Learned Objects: Lists all the recorded objects.

      image-20250212-102859.png
  10. Once the application launches, you can:

    1. Pause Recording: Temporarily halt the recording session.

    2. Stop Recording: End the recording and close the browser session.

  11. The Learning Objects displays all the objects that are been captured. Hover over the object to view the Edit, Delete, and Highlight options.

    image-20250212-103420.png

  12. Click Save to Repository to save the objects in the object repository; else, click Reset to delete all the recorded objects.

  • Ensure that the default browser on the real device is set to Google Chrome. Bear in mind that one mobile device can only be accessed by one user at a time. If a device is currently being used by another user, its status will be displayed as Busy.

Launching or Installing an Application Under Test

After launching the Mobile Object Spy and connecting to the desired real device or emulator/simulator, you can start adding objects from the application under test.

You first need to launch or install the application under test on the mobile device from which you intend to add new objects. Qualitia provides a facility to install the application under test directly from the Mobile Object Spy.

To launch an application under test, follow these steps:

  1. On Mobile Object Spy, connect to the desired device.

  2. You have three options for launching an application:

    1. To launch an already installed application, select it from the dropdown list.

    2. To install an application, select the .app, .ipa or .apk file from your local directory and click Install.

    3. To add objects from web, input the Web URL.

  3. Click Launch to start the application.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.