Versions Compared

Key

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

Object Spy for Internet Explorer

...

  1. Launch the browser (Edge or Chrome) that is enabled with Web Object Spy.
    For detailed instructions on how to launch a web object spy, refer to Launching Object Spy from the Browser.

  2. In the Repository section, select the page under which the object exists which needs to be updated.

  3. Click the edit () icon next to the object that you want to edit.

    Note

    SmartLocator mode does not support HTML tag/structure change.

    Image RemovedImage Added
  4. Modify the object details and then click Save.

...

...

...

  1. Navigate to the folder where you have downloaded Qualitia Installables.

  2. Open Mobile Agent Folder.

  3. Copy the setup.exe file to any temporary location.

  4. Double-click the setup.exe to install.

  5. Follow the onscreen instructions and complete the installation procedure. 

  6. To confirm the installation, you can double-click the Mobile agent icon from the desktop and you will find the agent icon 

    Image RemovedImage Added

     in notification area.
    You can right-click the agent icon from the notification area and proceed for the configurations.

...

  1. From the notification area, right-click the  Mobile Agent(

    ) icon to select Open Configuration.

     View image

    Image Removed

    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.

...

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

    Image RemovedImage Added
  2. Click OK

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

...

  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 URLUser 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.

...

  • Drag and Drop action is not supported

  • SmartLocator does not support Mobile Objects

  • For UiAutomator, the locator type does not support values related to complex Element Hierarchy

  • Cannot capture web objects through iOS Simulator

  • Does not highlight web objects that are inside a frame

  • Adding web objects from the page source for web applications and web context of hybrid applications is not supported.

Adding a Native Application Object

This type of applications are developed to run independently on a smartphone with or without internet connectivity. You can add objects from the native applications using mobile object spy.

...

  1. Launch Mobile Object Spy and install or launch the application under test.

  2. Click the play (Image Removedthe play (

    Image Added

    ) icon to enable the object spy mode.

  3. Hover over the object you want to add and Object spy will highlight the object.

  4. Click the highlighted object to add it in the repository.
    Object appears in the right pane of the the Object Repository section section

  5. The following object properties are automatically added for the mobile object, which you can change:

    1. Name

    2. Object Class

    3. Locator Value

    4. Locator Type

  6. Click the pause (Image Removedthe pause (

    Image Added

    ) button to exit from the object spy mode or click the Image Removed button the button to end the session.

Adding a Hybrid Application Object

hybrid application (hybrid appA hybrid application (hybrid app) is one that combines elements of both native and Web applicationsWeb 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.

To add an object for a hybrid application:

  1. Launch Mobile Object Spy and install or launch the application under test.

  2. Click the play (Image Removedthe play (

    Image Added

    ) icon to enable the object spy mode.

  3. By default, the native view of the application appears.

  4. To add objects from the native context:

    1. Hover over the object you want to add and Object spy will highlight the object.

    2. Click the highlighted object to add it in the repository.

    3. The following object properties are automatically added for the mobile object, which you can change:

      1. Name

      2. Object Class

      3. Locator Value

      4. Locator Type

  5. To add objects from 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 web view appear in the live view.

    2. Hover over the object you want to add and Object spy will highlight the object.

    3. Click the highlighted object to add it in the repository. 
      The object appears in the right pane of the the Object Repository section section

    4. The following object properties are automatically added for the web object, which you can change:

      1. Name

      2. Object Class

  6. Click the pause (Image Removedthe pause (

    Image Added

    ) button to exit from the object spy mode or click the Image Removed button 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 Smart Locator option.

Adding a Mobile Web Application Object

You can add objects from applications which are accessed over a network connection and run in a web browser.

Note: Qualitia  Qualitia recommends to keep the size of the browser as 100%. If you Zoom In or Zoom Out the browser, the UI may distort, which makes it difficult to identify the objects.

To add an object for a mobile web application:

  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 click Launch.
    If the platform is Android,  then it is launched in in Google Chrome browser browser. If the platform is iOS, then it is launched in the the Safari browser browser.

  3. Click the play (Image Removedthe play (

    Image Added

    ) icon to enable the object spy mode.

  4. To add objects from specific web context:

    1. Click the the Webview panel 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 the Object Repository section 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 (Image Removedthe pause (

    Image Added

    ) button to exit from the object spy mode or click the Image Removed button 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

Some objects are not visible on screen but they are required for automating the test cases for Mobile applications. Qualitia gives you the provision to add objects from the native context from the page source. 

...

  1. Launch Mobile Object Spy and install or launch the application under test.

  2. From the right pane, click click Page Source.
    A new section appears displaying the page source.

  3. Hover over the object in the page source which you want to add, and click Image Removedclick

    Image Added

     icon.
    The object appears in the right pane of the the Object Repository section section

  4. The following object properties are automatically added for a mobile object, which you can change:

    1. Name

    2. Object Class

    3. Locator Value

    4. Locator Type

  5. To end the session, click the Image Removed buttonthe

    Image Added

    button.

Using the Advanced Options while Launching an 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 Mobile Object Spy and select the application under test to launch.

  2. Click Advanced options.

  3. Select the capability from the drop-down options and enter the value for corresponding capability.

  4. Click Image Removed

    Image Added

     to add the capability. 

...

Viewing the Page Source and Object Properties

...

  1. Launch Mobile Object Spy and install or launch the application under test.

  2. From the right pane, click Page Source.
    A new section appears displaying the page source.
    Image Removed

    Image Added
  3. Hover over the object in the page source which you want to add and click Image Removed

    Image Added

     icon.
    Object will then appear in the right pane in the Object Repository section. 

  4. To launch the object properties section, from the right pane, click Object Properties
    A new section appears below page source.
    Image Removed

    Image Added
  5. To view the object properties of any object, click the desired object in the page source and its properties appear in the Object Properties section.

...

  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 and launch the application under test.
    All the objects added earlier from this application appear in the object repository section.

  2. Click the filter (Image Removed

    Image Added

    ) icon. 

  3. Select the object class(es) based on which you want to filter the objects.

  4. Select the object type, Mobile or Web.

  5. Click Reset to remove all the filters.
    Image Removed

    Image Added

Switching to Another QAS Project

...

  1. From the top right corner, click username and select Sign Out.Image Removed

    Image Added
  2. Click Sign In again.Image Removed

    Image Added
  3. Enter sign in details and click Sign In.
    Image Removed

    Image Added
  4. Select the desired project and start working on it.