Objects are integral part of test automation. Any functional test automation tool simulates user actions required to test a particular case. This simulation has to be accurate.
...
Based on the preferred locator types, Object Spy looks for name property of the desired object. If it is not found it looks for the next preferred locator type which is for example ID. If it is not found, it then derives Xpath by referring to other native properties of the object or even of a parent if required. This is typically required in a case of duplicate objects. For more information on duplicate objects refer to the /wiki/spaces/QASWM/pages/407404959 section.
When Object Spy overrides the preferred locator type even if the object has Name or ID Attributes
...
Open the Qualitia Automation Studio client.
From the Expand Menu, click Develop.
Click the Objects tab.
Click the Spy button. as shown in the following figure:
You are prompted with the following confirmation message:
Click Yes if you have administrative privileges. You will not be able to continue with the installation if you do not have administrative privileges.
The following Windows confirmation message appears:Click Yes.
Internet Explorer opens, and you will see Object Spy at the bottom as shown in the following figure:
...
If you do not see the plug-in embedded, please refer to the troubleshooting section.
To launch Object Spy from Test case and Task screen:
Right-click the Test case or Task screen, and select from the context-menu Object Spy.
Object Spy User Interface
...
From the Objects screen, click Spy.
The Object Spy window appears.From the Settings > Inspection.
Select Capture Mode as Mouse Hover and click OK.
Navigate to the page from where you want to add objects.
Ensure that the Select Object option is enabled.
Hover the mouse pointer over the object which you want to add into the repository.
A confirmation message appears after the object is added.
...
When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository. |
...
Search by Object Name
On the Object Spy window, enter the object name you want to search.
Click Search. When you select objects from the search results, immediate parent will be highlighted for easy identification.
...
You can reset the objects added earlier.
To reset an object:
On the Object Spy toolbar, click Reset.
This will discard any unsaved changes.
...
Dynamic Object Properties
Please refer to the Object Identification Failure section.
Container Objects
Please refer to the Object Spy for Internet Explorer section.
FAQs
Expand | ||
---|---|---|
| ||
|
...
You can now launch Qualitia Object Spy on the selected browser. For more detailed instructions, Launching Object Spy from the Browser.
Launch Object Spy from Browser
...
Launch either Edge or Chrome Object Spy.
For detailed instructions on how to launch a web object spy, refer to Launching Object Spy from the Browser.Enter the application under test URL in the address bar.
Enable the Select Mode on.
Hover the mouse pointer over the object and click it once the object details are highlighted.
The object is added into the list in the Object Spy window.After adding all the required objects, click Save to Repository.
To add the objects for a child window, do one of the following:
Open the child window, and open its associated Object Spy to add the child window objects to a new child window object repository.
Open the child window. Click the Select Mode button of the Object Spy associated with the parent window to add the child window objects to the parent window object repository. You can switch between parent and child windows to add their objects using the Select Mode button.
Info It is recommended to use Web Object Spy in left dock mode or right dock mode. If you want to use it in any other dock mode, re-enable the Select Mode button to start using it.
You can also detach Object Spy UI with the application under the test page and also add the child window objects as shown in the above-mentioned step. However, if you are adding objects for multiple application pages in the detach mode, the Web Object Spy adds the objects of all the pages in the same object repository.
...
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.In the Repository section, select the page under which the object exists which needs to be updated.
Click the edit () icon next to the object that you want to edit.
Note SmartLocator mode does not support HTML tag/structure change.
Modify the object details and then click Save.
...
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 Adding Web Application Objects.In the Repository section, select the page from which you want to highlight the object.
Do one of the following:
To highlight all objects on the page, click the highlight () icon at the page level.
To highlight a specific object, click the object name you want.
The application page highlights the objects.Info Objects existing in the repository are highlighted with the green border (as shown in the screenshot above). Objects that do not exist in the repository yet are highlighted with the red border.
...
Launch either Chrome Object Spy or Edge Object Spy.
For detailed instructions on how to launch a web object spy, refer to Adding Web Application Objects.In the Repository section, select the page from which you want to remove the object.
Click the Remove icon (
) next to the object that you want to remove.
...
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 Adding Web Application Objects.In the Repository section, use the filter (
) option to filter objects.
To filter objects by Web Page, select the desired page from the drop-down list.
To filter objects by Object Class, select the desired object class from the drop-down list.
...
XCode
Appium Dependencies
Java 8 (64-bit)- Oracle Java 8 : 1.8.0_261/ Open JDK / Azul Java: 8.48.0.53
...
Android Studio (for emulators only)
Intel® HAXM (for emulators only)
Java 8 (64-bit)- Oracle Java 8 : 1.8.0_261/ Open JDK / Azul Java: 8.48.0.53
For more information on the same, please to the (8.3.0) Prerequisites & Configurations section.
Installing the Mobile Server
...
This can be any Windows or Mac system with all the prerequisites installed for mobile application testing.
...
For more information on adding these dependencies, you may refer to the (8.3.0) Prerequisites & Configurations section.
Configuring a Mobile Agent on Windows
...
To configure iOS devices, to connect to the agent, refer to the Preparing Mobile Devices for Automation Testing section.
ADB commands should not be executed on external terminal while Mobile agent is running.
...
To configure iOS devices, to connect to the agent, refer to the Preparing Mobile Devices for Automation Testing section.
To Configure Mobile agent:
...
Once downloaded, double-click android-studio-bundle-windows.exe.
This will start installation of Android Studio.Follow the on-screen instructions and complete the studio installation.
Select Standard Installation.
...
System displays the list of components selected to be installed.
Go to SDK Tools and ensure that Android SDK Build-Tools is installed. If not, then download it.
Click OK.
Once all the required components are installed, click Finish.
Now you can start creating virtual devices.
...
Launch any browser.
Enter Mobile Object Spy URL.
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).Enter Qualitia Username and Password.
Click Sign in.
Select Qualitia project under which you want to add newly inspected objects and then click Sign in.
Once you have launched the Mobile Object Spy, you can filter the devices based on the device type (emulator/simulator, real), OS version, connected agent, and so forth.
You can select or connect to the desired mobile device and start adding new objects from application under test.
...
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.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.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.Click Boot and Connect to boot the device and launch it to spy the objects.
This option is available for emulators/simulators only.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 order to launch application under test on the desired device, you must first create desired emulator/simulator on the Mobile Object Spy agent. For more information about creating and managing emulators, refer to (8.3.0) Prerequisites & Configurations section.
To launch an application under test:
...
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.
...
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 |
...
Launch any browser.
Enter Mobile Object Spy URL.
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).Enter Qualitia Username and Password.
Click Sign in.
Select Qualitia project under which you want to add newly inspected objects and then click Sign in.
Once you have launched the Mobile Object Spy, you can filter the devices based on the device type (emulator/simulator, real), OS version, connected agent, and so forth.
You can select or connect to the desired mobile device and start adding new objects from application under test.
...