Info |
---|
Limitations of Mobile Object Spy:
|
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.
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
A 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.
Info |
---|
Qualitia supports Hybrid application with debug enabled/Developer mode build only. |
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 Webview panel in the left pane and select the required Webview from the list.
- Click the pause () button to exit from the object spy mode or click the button to end the session.
Info |
---|
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 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:
- 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 Webview panel in the left pane and select the required Webview from the list.
- Click the pause () button to exit from the object spy mode or click the button to end the session.
Info |
---|
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
Objectsan 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.
To add objects 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.