Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Object Spy for Internet Explorer

Object Spy supports CRUD operations to manage objects.

Prerequisites

  • Ensure you have Full control rights to the folder and subfolders where Object Spy is getting installed.
  • Ensure that the Active scripting option is set to Enable under Security Settings section. To do so, under Internet Options > Security > Custom Level.  
    By default, this option is set to Disable in the high security zone.
Expand
titleView Image

  • Ensure that Enable third-party browser extensions* is enabled from the Advanced section of Internet Options.  

...

Include Page
Challenges in Object Identification and Remedies
Challenges in Object Identification and Remedies

FAQs

Include Page
FAQs
FAQs

Qualitia Object Spy

Qualitia Object Spy is used to add the objects of the application that you want to test. You can add Qualitia Object Spy as an extension on Google Chrome and Microsoft Edge.
After adding the required objects, you can use them to create test cases in Qualitia Automation Studio client. 

Info
titleNote

Qualitia Object Spy does not support Mozilla Firefox.

Add Object Spy as a Browser Extension

...

Include Page
Limitations/Known Issues
Limitations/Known Issues

Object Spy for Mobile Applications


The Mobile Object Spy is a powerful tool that allows application testers to access objects from the mobile application under test. These mobile objects then can be used while creating tasks and test cases for mobile test automation into Qualitia Automation Studio. Mobile Object spy allows you to view objects and their properties of all sorts of Native, Web, and Hybrid applications.
In order to add objects from the mobile application under test, you must first install mobile object spy components and configure your systems and mobile devices (real devices or emulators/simulators) accordingly.

Installing the Mobile Components

Qualitia Mobile object spy contains multiple components. You must complete the installation process to you start adding objects from mobile application under test. 

You can install the components mentioned below on the same machine or different machines based on the requirements. After installing Qualitia Mobile Server and Mobile Agent, you can start using Qualitia Mobile Recorder and Mobile Object Spy.

Pre-Requisites

Before you start installing Mobile Agent or Mobile Server, you must first configure the Mac or Windows machine to work with real devices, emulators, or simulators. 

...

...

...

  1. From the notification area, right-click the  Mobile Agent() icon to select Open Configuration.

     View image

    You will get the following information from system/IT administrator.

  2. Enter Mobile Server URL and click Open Settings.
    Mobile server URL is a combination of Hostname/IP of the machine where Mobile Server is installed along with with the port 4001.
    Sample URL may look like: http://192.168.25.44:4001 or http://localhost:4001.
  3. Enter Keychain Path.
    It is a path to the private development key exported from the system keychain.
  4. Enter Keychain Password for authenticating to Keychain Path mentioned above.
  5. Enter Keystore Password.
    For more information about these properties, you may refer to Appium documentation.
  6. Enter the absolute path to chromedriver executable file which will be used while test case executions on mobile devices.
  7. Enter the path to the directory where you have stored the chromedriver to be used test case executions on mobile devices.
  8. Click Save.
  9. On the subsequent screen, enter Mobile Server URL.
    Server URL is a combination of hostname/IP of the machine where Qualitia Mobile server is installed along with the port 4001.
    Sample URL may look like: http://192.168.25.66:4001 or http://localhost:4001 (if the mobile server is installed locally).

...

  1. Download Android Studio.
  2. Once downloaded, double-click android-studio-bundle-windows.exe.
    This will start installation of Android Studio.
  3. Follow the on-screen instructions and complete the studio installation.
  4. Select Standard Installation.View Image

Android Studio is developed for Android application development. In order to get started with application testing using virtual devices, users need to have at least one project created. Once project is created, users can create and start emulators and download required platform images from the Android Studio

  1. Once the installation is complete, launch Android Studio.
  2. Create a dummy project.
  3. From the File menu, click Settings.
  4. Under Appearance & Behavior,  expand System Settings and select Android SDK.
  5. In the right pane, select SDK Platforms.
  6. Select required packages to install and click Apply.

    View Image

    Google system images are required to create and start virtual devices (emulators). Generally, emulators created with Google APIs Intel x86 Atom System Image serve all the testing requirements, however, users can download and install any system image depending on the testing requirements.

    If you want Google Chrome in the Nougat emulator,  please select Google API as system image. Google Chrome comes as a default browser for Nougat and not for other Android operating systems. 

    System displays the list of components selected to be installed.

    1. Go to SDK Tools and ensure that Android SDK Build-Tools is installed. If not, then download it.

       View Image

    2. Click OK

    3. Once all the required components are installed, click Finish.
      Now you can start creating virtual devices.

Creating a Simulator

You need to download the required simulators if you want to execute test cases on simulators. 

To create a simulator:

  1. Launch Xcode and navigate to Xcode > Preferences.
  2. Select Components from the top. 
    All the available simulators are listed here.
  3. Select one or more simulators from the list to download.
    A pop-up appears asking password.
  4. Enter Password and then click Install Software.

...

  1. Launch any browser.
  2. Enter Mobile Object Spy URL
  3. Enter Qualitia Server URL.
    Qualitia Server URL is a combination of Hostname/IP of the server where you have installed Qualitia server along with the port 8887.
    Sample URL may look like: http://192.168.25.33:8887 or http://localhost:8887 (if mobile object Spy server is installed locally).
  4. Enter Qualitia Username and Password.
  5. Click Sign in
  6. Select Qualitia project under which you want to add newly inspected objects and then click Sign in.

...

  1. Launch Mobile Object Spy on any browser using Mobile Object Spy URL.
    Mobile Object Spy URL is a combination of hostname/IP of the machine where Mobile Object Spy server is installed along with the port 4001.
    Sample URL may look like: http://192.168.25.77:4001 or http://localhost:4001.
  2. Enter Qualitia Server URL, User id and Password.
    Qualitia Server URL is a combination of Hostname/IP of the server where you have installed Qualitia server along with the port 8887.
    Sample URL may look like: http://192.168.25.77:8887 or http://localhost:8887.
  3. Select the Qualitia project under which you want to add new objects.
    Here you will see all the real devices connected to the agent Mobile Object Spy agents along with the emulators or simulators.
    For more information on creating emulators/simulators using Android Studio or XCode, click here. 
  4. Click Boot and Connect to boot the device and launch it to spy the objects.
    This option is available for emulators/simulators only.
  5. Click Connect to launch the real device connected to Mobile Object Spy agent or already started emulator/simulator.

     For the device to be visible and usable the device needs to allow unauthorized access on the connected device for Mobile Object Spy to work

    Ensure you have set the default browser as Google Chrome in the real device.

One mobile device can be accessed by one user only. If the device is being accessed by some other user, you will see the device state as Busy.

...

In Mobile applications, there are two types of objects:

  • Web: The objects which are solely created for web applications. They are present in web context of the hybrid applications and web applications.
  • Mobile: The objects which are solely created for mobile applications. They are present in native and native context of the hybrid applications.

...

Adding a Hybrid Application Object

hybrid application (hybrid app) is one that combines elements of both native and Web applications. Hybrid applications run inside a native container and leverage the device's browser engine (but not the browser) to render the web elements like HTML and so forth. Qualitia allows you to add objects from the hybrid application into the object repository for mobile application testing.

Qualitia supports Hybrid application with debug enabled/Developer mode build only.

...

  1. Launch Mobile Object Spy and select the device which you want to use while spying objects. 
  2. Enter the web application URL and click Launch.
    If the platform is Android,  then it is launched in Google Chrome browser. If the platform is iOS, then it is launched in the Safari browser.
  3. Click the play () icon to enable the object spy mode.
  4. To add objects from specific web context:
    1. Click the Webview panel in the left pane and select the required Webview from the list.
      Only the objects falling under the selected webview appear in the live view.
    2. Hover over the object you want to add, Object spy highlights the object.
    3. Click the highlighted object to add it in the repository. 
      The object appears in the right pane in the Object Repository section. 
    4. The following object properties are automatically added for the web object, which you can change:
      1. Name
      2. Object Class
  5. Click the pause () button to exit from the object spy mode or click the  button to end the session.

For Web Objects, the SmartLocator is automatically enabled due to which locator value and locator type are automatically selected. If you want to change the values, you need to edit object in QAS, where you need to disable the SmartLocator option.

Adding an Object from a Page Source for a Native Application

...


Capabilities
Description
Values/Example

noReset

Helps you reset the application before starting the session.Boolean (true/false)

intentAction

Intent action to use to start an activity. Applications can have their own intentAction. You will get this information by the app developer.

android.intent.action.VIEW

intentCategory

Intent category to use to start an activity. You will get this information by the app developer.android.intent.category.LAUNCHER

chromeOptions

This capability allows you to customize and configure a ChromeDriver session. For the complete list of ChromeDriver supported capabilities and how to use them, see the chromeOptions documentation.
args=–-headless


...

  1. Launch any browser.
  2. Enter Mobile Object Spy URL
  3. Enter Qualitia Server URL.
    Qualitia Server URL is a combination of Hostname/IP of the server where you have installed Qualitia server along with the port 8887.
    Sample URL may look like: http://192.168.25.33:8887 or http://localhost:8887 (if mobile object Spy server is installed locally).
  4. Enter Qualitia Username and Password.
  5. Click Sign in
  6. Select Qualitia project under which you want to add newly inspected objects and then click Sign in.

...