...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Watch the video tutorial about working with object spy here:
...
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.
Consider the simple Login test case. A user wants to test validate login functionality by entering valid user credentials and verifying expected results or application behavior. To simulate this accurately, automation tool has to enter Username in the username field and Password in the password field. The success of the test automation will depend upon the automation tool correctly identifying the 'username' and 'password' fields which has to be done using one of the methods explained above. Test automation will fail in the case of incorrect object identification.
You have to be careful about the objects that are generated dynamically. Consider the following example:
The Online Railway Reservation System allows you to reserve tickets between two stations. After successful completion, it creates a PNR number and displays in the table as shown below along with a checkbox.
...
During development of your test case, you will perform one reservation, the system will generate a new PNR (e.g. 123459), and the respective checkbox will be added as an object to select the corresponding PNR row. Each time you execute this test case, a new PNR is generated along with a new checkbox. This checkbox is generated dynamically and hence its properties are also be dynamic.
...
For an object which is being generated dynamically for every new reservation, if you fail to specify the correct attribute of the checkbox, your automation tool will refer to the checkbox from the earlier reservation. This is more dangerous from testing point of view as the test case will run successfully after following an incorrect flow.
...
The procedures described in these sections enable you to add and view objects in repository to be used when developing test cases.
Object Spy for Internet Explorer
...
To change the locator priorities:
On Object Spy toolbar, click the Settings icon.
The Locator Priority Settings window appears.Click Up/Down buttons to changes the priorities of the locator type.
Click Restore Default to restore the default priorities.
Click Cancel to discard changes.
Click Ok to apply the changes.
Object Learning Algorithm
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 Rules-for-Duplicate-Objects section.
When Object Spy overrides the preferred locator type even if the object has Name or ID Attributes
...
Left Click: In this mode, you can add objects to the repository using the left click of the mouse.
Mouse Hover: Using this mode, you can add objects in the repository just by hovering mouse pointers over objects.
To select capture mode:
Launch Object Spy.
Go to Settings > Inspection.
In Capture mode, select the required option.
Click OK
...
Capture APIs
Qualitia provides mainly 2 APIs while capturing objects.
Browser Mode: In this mode, Qualitia identifies objects using JavaScript events or native events.
Accessibility: Selecting this mode, you can utilize Microsoft Active Accessibility API to identify objects from application under test more reliably.
To select Capture API:
Launch Object Spy.
Go to Settings > Inspection.
In Capture API, select the required option.
Click OK.
...
Launching Object Spy
You can launch Object Spy to add new objects or to view the objects added earlier.
...
To launch Object Spy from Object screen:
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:
...
You can now start using IE Object Spy.
...
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
Object Spy plug-in contains a Tab bar, Gridview and Object Spy toolbar.
Tab Bar Includes:
Object Spy tab
Tree view
Grid view
HTML tab
Button to change Object Inspection Mode
...
Gridview Includes:
Object Name
Object Description
Object Class
Locator Type
Locator Value
SmartLocator
...
Object Spy Toolbar Includes:
Highlight
Clear Highlight
Save
Delete
Reset
Search
Settings
...
Adding Objects Using Different Modes
...
To add object using the right-click mode:
From the Objects screen, click Spy.
The Object Spy window appears.Navigate to the page from where you want to add objects.
Ensure that Select Object option is disabled.
Point to an object that needs to be added.
The object is highlighted with a blue border.Right-click the object and select Add Object from the context-menu.
A confirmation message appears after the object is added.
An object is added to the repository using the precedence set in Locator Priority Settings.
...
|
...
To add object using the left-click mode:
From the Objects screen, click Spy.
The Object Spy window appears.From the Settings > Inspection.
Select Capture Mode as Left-Click and click OK.
Navigate to the page from where you want to add objects.
Ensure that Select Object option is enabled.
Left-click 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. |
...
To add object using the mouse hover mode:
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. |
...
To select object attribute on-the-fly:
...
From the Objects screen, click Spy.
The Object Spy window appears.Navigate to the page from where you want to add objects.
Right-click the object and select Add Object By from the context-menu.
Select the object attribute using which you want to add object 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.
Adding Objects from HTML Code View
...
To enable Inspecting from Modal dialog:
...
Launch Object Spy.
Go to Settings > Inspection.
Select the Allow Modal Inspection option.
Click OK.
Now you can add objects from modal dialogs and use them while creating new tasks and test cases.
...
Search by Object Name
Advanced Search
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.
...
Advanced Search
On the Object Spy toolbar, click the Search icon.
The Object Search window appears.Select the appropriate filter (Name, Object Class, Locator Type, or Locator Value) to search an object.
Click Search.
The search result displays a list of objects that match the search criteria with name, class, and description of objects.
...
You can reset the objects added earlier.
To reset an object:
On the Object Spy toolbar, click Reset.
This will discard any unsaved changes.
...
You can delete the objects that are obsolete and no longer required.
To delete an object:
On the Object Spy grid-view, select the check box(s) corresponding to the objects that you want to remove.
Select the check box at the top of the column to select all the objects.On the Object Spy toolbar, click Delete.
|
...
To view an object already present in the repository:
Navigate to a page from which objects are added earlier.
Select an object from the Object Spy toolbar.
To select all objects, select the check box at the top of the column.
Click Highlight.
The selected objects get highlighted on the current page with the object name that is used to store in Qualitia.On the Object Spy toolbar, click Clear Highlight to clear the highlighted object from the current page.
Challenges in Object Identification and Remedies
...
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 | ||
---|---|---|
| ||
|
...
To add Qualitia Object Spy as an extension to a browser:
You can add Qualitia Object spy as an extension to Chrome or Edge browser:
To add the Chrome Object Spy:
Download the ChromeExtension folder from the S3 location to your computer.
Extract the QualitiaChromeExtension-8.3.x zip file in a local folder on your computer.
Launch Google Chrome browser and navigate to chrome://extensions/.
To add the Edge Object Spy:
Download the EdgeExtension folder from the S3 location to your computer.
Extract the QualitiaEdgeExtension-8.3.x zip file in a local folder on your computer.
Launch Microsoft Edge browser and navigate to edge://extensions/.
Enable Developer Mode.
Click Load Unpacked.
Select the location of the extracted zip file (QualitiaChromeExtension-8.3.x or QualitiaEdgeExtension-8.3.x), and click OK.
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
...
To launch the Object Spy from the Browser:
Do one of the following:
To launch the Chrome Object Spy, open the Chrome browser.
To launch the Edge object spy, open the Edge browser.
Press F12 to open Developer options and select Qualitia Object Spy. The Qualitia Object Spy login page opens.
Enter the Qualitia Server URL.
Enter the same user id that you use to login to Qualitia Automation Studio (QAS) client ,in User Id.
Click Continue.
Select the associated project on which you want to add and manage objects.
Add Web Application Objects
...
To add Web Application Objects:
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.
Edit an Object using Object Spy
You can update the object details and also change their locator type and associated locator value
To edit an object:
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.
Info |
---|
Important Notice:Qualitia SmartLocator automatically identifies dynamic objects during the test case execution. Enabling this option, you cannot edit object details like locator value and locator type. If you disable this option, this object will no longer be eligible for SmartLocator identification. Please note that if you wish to enable this option for this object later, you will have to perform either of the following steps for SmartLocator to work for this object:
|
Highlight the Objects
Qualitia Web Object Spy lets you highlight the added objects when you navigate to the associated application under test page. This helps you to understand which objects are added into the repository and which objects are not added yet.
To highlight the objects:
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.
Remove Objects from Object Repository
You can remove the objects that are no longer required.
To remove an object from the Object Repository:
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.
Info |
---|
You can delete a parent page only when all of its child objects are removed. |
...
To filter the objects list:
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.
Limitations/Known Issues
Limitations of Qualitia Object Spy
...
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
...
To install Mobile Server:
Navigate to the folder where you have downloaded Qualitia Installables.
Open Mobile Server Folder.
Do one of the following:
If you are installing it on Mac, copy the Qualitia Mobile Server.pkg file to any temporary location.
If you are installing it on Windows, copy the Setup.exe file to any temporary location.
Follow the onscreen instructions and complete the installation procedure.
To confirm the installation, do one of the following:
Go to services console and check whether the Qualitia.Mobile.Service is running (for Windows only).
You can try accessing Mobile Server using Server URL in any browser.
Server URL is a combination of hostname/IP of the machine where Qualitia 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.
Installing a Mobile Agent
...
This can be any Windows or Mac system with all the prerequisites installed for mobile application testing.
...
Installing a Mobile Agent on Windows
Navigate to the folder where you have downloaded Qualitia Installables.
Open Mobile Agent Folder.
Copy the setup.exe file to any temporary location.
Double-click the setup.exe to install.
Follow the onscreen instructions and complete the installation procedure.
To confirm the installation, you can double-click the Mobile agent icon from the desktop and you will find the agent icon
in notification area.
You can right-click the agent icon from the notification area and proceed for the configurations.
Installing a Mobile Agent on Mac
Navigate to the folder where you have downloaded Qualitia Installables.
Open Mobile Agent Folder.
Copy the Qualitia Mobile Agent.pkg file to any temporary location on the machine where you want to install this agent.
Double-click the Qualitia Mobile Agent.pkg to install.
Follow the onscreen instructions and complete the installation procedure.
Post installation, you can access the agent using
icon from the top menu bar (notification area).
You can right-click the agent icon from the notification area and proceed for the configurations.
You must enable the camera access on the Mac machine where the agent is installed while launching a mobile application under test on an iOS real device from mobile object spy for the first time.
Configuring a Mobile Agent
...
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 a Mobile agent on Windows:
From the notification area, right-click the Mobile Agent(
) icon to select Open Configuration.
You will get the following information from system/IT administrator.
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.Enter Keychain Path.
It is a path to the private development key exported from the system keychain.Enter Keychain Password for authenticating to Keychain Path mentioned above.
Enter Keystore Password.
For more information about these properties, you may refer to Appium documentation.Enter the absolute path to chromedriver executable file which will be used while test case executions on mobile devices.
Enter the path to the directory where you have stored the chromedriver to be used test case executions on mobile devices.
Click Save.
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).
Configuring a Mobile Agent on Mac
...
To configure iOS devices, to connect to the agent, refer to the Preparing Mobile Devices for Automation Testing section.
To Configure Mobile agent:
From the notification area, right-click the
and select Open Configuration.
You will get the following information from system/IT administrator.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.Enter Keychain Path.
It is a path to the private development key exported from the system keychain.Enter Keychain Password for authenticating to Keychain Path mentioned above.
Enter the Keystore Password.
For more information about these properties, you may refer to Appium documentation.Enter the absolute path to the chromedriver executable which will be used test case executions on mobile devices.
Enter the path to the directory where you have stored the chromedriver to be used test case executions on mobile devices.
Enter XCODE Signing ID.
Enter XCODE Organization Team ID.
Click Save.
On a 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).
Info |
---|
Important Note: Information about Keychain Path and Keychain/keystore password is only required if you have Android Studio for emulators on this Mac machine. |
...
You can view the detailed procedure about creating and managing Android virtual devices, click here.
To create an Emulator:
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.
Info |
---|
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 |
Once the installation is complete, launch Android Studio.
Create a dummy project.
From the File menu, click Settings.
Under Appearance & Behavior, expand System Settings and select Android SDK.
In the right pane, select SDK Platforms.
Select required packages to install and click Apply.
Info |
---|
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.
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.
Creating a Simulator
You need to download the required simulators if you want to execute test cases on simulators.
To create a simulator:
Launch Xcode and navigate to Xcode > Preferences.
Select Components from the top.
All the available simulators are listed here.Select one or more simulators from the list to download.
A pop-up appears asking password.Enter Password and then click Install Software.
Working with Mobile Object Spy
...
To launch Mobile Object Spy:
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.
...
To launch a mobile device:
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:
On Mobile Object Spy, connect to the desired device.
You can launch an application in 3 different ways:
To launch the already installed application, select the application under test using from the drop-down list.
To freshly install the application, select the .app, .ipa or .apk file from the local directory and click Install.
To add objects from the web application, enter Web URL.
When you provide application path and web application URL at the same time, Web URL overrides the application path.
Click Launch to launch the application.
Once you have launched any application using this method, you can interact with live screen by performing tap, swipe and tap and hold actions. Drag and drop action is not supported. You can launch other applications from the device screen itself.
Also, if you are launching the application which was already running on the device, the application is launched at its current stage. Qualitia does not reset the application when launching it.
Adding the Mobile Application Objects
...
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.
...
To add an object for a native application:
Launch Mobile Object Spy and install or launch the application under test.
Click the play (
) icon to enable the object spy mode.
Hover over the object you want to add and Object spy will highlight the object.
Click the highlighted object to add it in the repository.
Object appears in the right pane of the Object Repository section.The following object properties are automatically added for the mobile object, which you can change:
Name
Object Class
Locator Value
Locator Type
Click the pause (
) button to exit from the object spy mode or click the button to end the session.
Adding a Hybrid Application Object
...
To add an object for a hybrid application:
Launch Mobile Object Spy and install or launch the application under test.
Click the play (
) icon to enable the object spy mode.
By default, the native view of the application appears.
To add objects from the native context:
Hover over the object you want to add and Object spy will highlight the object.
Click the highlighted object to add it in the repository.
The following object properties are automatically added for the mobile object, which you can change:
Name
Object Class
Locator Value
Locator Type
To add objects from web context:
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.Hover over the object you want to add and Object spy will highlight the object.
Click the highlighted object to add it in the repository.
The object appears in the right pane of the Object Repository section.The following object properties are automatically added for the web object, which you can change:
Name
Object Class
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 Smart Locator option. |
...
To add an object for a mobile web application:
Launch Mobile Object Spy and select the device which you want to use while spying objects.
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.Click the play (
) icon to enable the object spy mode.
To add objects from specific web context:
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.Hover over the object you want to add, Object spy highlights the object.
Click the highlighted object to add it in the repository.
The object appears in the right pane in the Object Repository section.The following object properties are automatically added for the web object, which you can change:
Name
Object Class
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. |
...
To add an object from a page source for a native application:
Launch Mobile Object Spy and install or launch the application under test.
From the right pane, click Page Source.
A new section appears displaying the page source.Hover over the object in the page source which you want to add, and click
icon.
The object appears in the right pane of the Object Repository section.The following object properties are automatically added for a mobile object, which you can change:
Name
Object Class
Locator Value
Locator Type
To end the session, click the
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 |
To use the advanced options while launching an application:
Launch Mobile Object Spy and select the application under test to launch.
Click Advanced options.
Select the capability from the drop-down options and enter the value for corresponding capability.
Click
to add the capability.
...
Viewing the Page Source and Object Properties
...
To view the page source and object properties:
Launch Mobile Object Spy and install or launch the application under test.
From the right pane, click Page Source.
A new section appears displaying the page source.Hover over the object in the page source which you want to add and click
icon.
Object will then appear in the right pane in the Object Repository section.To launch the object properties section, from the right pane, click Object Properties.
A new section appears below page source.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.
Highlighting the Mobile Application Objects
...
To launch Mobile Object Spy:
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.
...
To update the mobile application objects from the Mobile Object Spy:
Launch Mobile Object Spy and launch the application under test.
The list of objects added earlier from the selected application appears in the object repository section.Update the object details like name, class, locator type/value, based on the requirements.
You can update only locator type and value for an empty object. You can update other properties only adding the locator type/value.Press TAB or ENTER to save the changes.
To edit object details from Qualitia Automation Studio:
Log on to Qualitia Automation Studio.
Navigate to Develop > Objects.
All the objects are listed in the left pane.Select the object you want to update and click Edit.
Edit the required fields and click Save to save the changes.
Filtering the Mobile Objects
...
To filter the mobile objects:
Launch Mobile Object Spy and launch the application under test.
All the objects added earlier from this application appear in the object repository section.Click the filter (
) icon.
Select the object class(es) based on which you want to filter the objects.
Select the object type, Mobile or Web.
Click Reset to remove all the filters.
Switching to Another QAS Project
...
To switch to another QAS project:
From the top right corner, click username and select Sign Out.
Click Sign In again.
Enter sign in details and click Sign In.
Select the desired project and start working on it.