Add web Application Objects
Choosing between Image Objects and Mouse Hover can largely depend on the specific context and requirements of the application under test. Here are a few use cases that might help clarify when to choose one over the other:
...
In conclusion, your choice between Image Objects and Mouse Hover depends on the specifics of the application you're testing. For comprehensive testing, you would ideally want to use a mix of both, depending on the context, to ensure all aspects of the application are thoroughly tested.
A vital note about Qualitia Smart Locator:
Smart Locator has the capacity to automatically identify dynamic objects during the execution of a test case. If this option is enabled, you won't be able to edit object details such as the locator value and locator type.
If you choose to disable this option, the object will no longer be identified by Smart Locator. If you wish to re-enable this option for this object at a later stage, you'll need to either learn this object anew using Qualitia Object Spy or specify a valid XPath for the object. The object will be re-enabled for Smart Locator identification only after its first execution.
If you see a Light Bulb icon next to an Object, it indicates that the Smart Locator is used to identify the Object.
You have the capability to include an object from a web application currently under test with just a single click. You can then choose the type of locator that best suits your needs. Qualitia additionally offers you the flexibility to include objects in the form of an image object.
...
When dealing with image objects, the locator type defaults to Image. You have the autonomy to modify this locator type sequence in alignment with your specific needs.
The last locator precedence will be stored and when you login for the next time, the same locator precedence will be defaulted.
Prerequisites:
Before moving forward, please confirm that
Your computer has connectivity to the Qualitia Server.
In the scenario of adding objects from a Salesforce application, it's crucial to ensure you've selected a Salesforce project. Salesforce applications are best viewed / added via the Chrome Object Spy as Salesforce applications are not fully supported on Edge.
Adding Objects
Add Web Application Objects (excluding image objects)
The inclusion of web application objects (excluding image objects) involves the following steps:
Login to Qualitia Automation Studio Client <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.
Initiate either the Edge or Chrome Object Spy. For an in-depth guide on launching a web object spy, please refer to Launching Object Spy.
Ensure you are in Learn Objects Tab. <insert Screenshot>
Enable Hover mode, as shown in the screenshot. <Screenshot>
Position your mouse pointer over the object and once the object details are highlighted, click on it.
This action will result in the object being added to the list in the Object Spy window.
After including all the necessary objects, click Save to RepositoryIf you prefer to edit or delete any of the existing objects in the session, hover on the added Object in Object Spy window.
You will see three options
Edit
Highlight
Delete
Click the Edit (Pencil) icon adjacent to the object you intend to modify.
You can edit
Name: Name of the Object
Class: Class of the Object
Locator Type
Locator Value
if you prefer to change the object with another object, click Update Object icon.
The section will change to light orange color to give the feedback that the Update Object mode is on.
Click the new Object you wanted to replace; the object will be updated.
After making the necessary changes to the object details, click Save.
Once all the changes are made, click Save To Repository to update the changes.
At the bottom of the screen, you can see the number of objects from this page added to the repository.
...
Launch the child window and open its corresponding Object Spy to include the child window objects into a new child window object repository.
Open the child window and click the Hover button of the Object Spy associated with the parent window. This will add the child window objects to the parent window object repository. You can switch between the parent and child windows to include their objects using the Hover button.
Add Image Objects
When it comes to integrating image objects, the process is as follows:
...
Login to Qualitia Automation Studio Client <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You will see Object Repository.
All the objects will be listed.
Initiate Object Spy. For comprehensive guidelines on how to launch a web object spy, please refer to Launching Object Spy from the Browser.
Ensure you are in Learn Objects Tab. <insert Screenshot>
Input the URL of the application you're testing into the address bar.
Activate Image mode, as illustrated in the screenshot. <include screenshot>
Choose the image you wish to include using the drag and drop method and set the position of the pointer by clicking on the image.
The image object will then be added to the list in the Object Spy window.
Hover on the object that you want to edit.
You will see three options
Edit
Highlight
Delete
Click the Edit (Pencil) icon adjacent to the object you intend to modify.
You can edit
Name: Name of the Object
Class: Class of the Object
Locator Type
Locator Value
if you prefer to change the object with another object, click Update Object icon.
The section will change to light orange color to give the feedback that the Update Object mode is on.
Click the new Object you wanted to replace; the object will be updated.
After making the necessary changes to the object details, click Save.
After incorporating all the necessary objects, click Save to Repository.
Your objects will be stored in the repository, as shown in the relevant screenshot.
It is suggested that you use the Web Object Spy in either left dock mode or right dock mode. However, if you prefer using it in a different dock mode, you can simply click the Hover/Image button to commence usage.
...
Note |
---|
Note: Duplicate objects are not allowed. |
View Repository
...
<TBD>
Filter Objects List
<TBD>
...
Login to Qualitia Automation Studio Client <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You will see Object Repository.
All the objects will be listed.
Initiate Object Spy. For comprehensive guidelines on how to launch a web object spy, please refer to Launching Object.
By default, you will land in Learn Objects Tab. <insert Screenshot>
Click Repository tab.
All the Pages from which the Objects captured under the Project will be listed.
Click Refresh icon to update newly captured objects.
If you see a Light Bulb icon next to an Object, it indicates that the Smart Locator is used to identify the Object.
Filter Objects List
Login to Qualitia Automation Studio Client <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You will see Object Repository.
All the objects will be listed.
By default, you will land in Learn Objects Tab. <insert Screenshot>
Click Repository tab.
All the Pages from which the Objects captured under the Project will be listed.
Click the expand section to view the Objects under each page.
If you wish to search for an Object, click Filter icon.
Select the Web Page dropdown from which you want to filter Objects.
From the Object Class select the WebElement you want to Filter.
Objects that match the filter criteria will be listed.
If you prefer to clear the filters, click x button next to each of the filter option.
Edit Objects from Object Repository
The Object Spy feature allows you to update object details, including their locator type and associated locator value.
To modify an object learned through the Hover mode, follow these steps:
Initiate the browser (Edge or Chrome) that has the Web Object Spy enabled.
For a comprehensive guide on how to launch a web object spy, please refer to Launching Object SpyLogin to Qualitia Automation Studio Client <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You will see Object Repository.
All the Pages from which the Objects captured under the Project will be listed.
Click Expand button before each web page to view the Objects under the page.
Within the Repository section, locate and select the page under which the object that requires updating resides.
Hover on the object that you want to edit.
You will see three options
Edit
Highlight
Delete
Click the Edit (Pencil) icon adjacent to the object you intend to modify.
You can edit
Name: Name of the Object
Class: Class of the Object
Locator Type
Locator Value
if you prefer to change the object with another object, click Update Object icon.
The section will change to light orange color to give the feedback that the Update Object mode is on.
Click on the new Object you wanted to replace; the object will be updated.
Double click the Page Name to Edit the name of the page.
Once updated, click the Tick mark.
After making the necessary changes to the object details, click Save.
Once all the changes are made, click Save To Repository to update the changes.
...
To modify an object learned through the Image mode:
Login to Qualitia Automation Studio Client <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You will see Object Repository.
All the objects will be listed.
Initiate Chrome Object Spy. For comprehensive guidelines on how to launch a web object spy, please refer to Launching Object.
Ensure you are in Learn Objects Tab. <insert Screenshot>
Initiate the browser (Edge or Chrome) that has the Web Object Spy enabled.
For a comprehensive guide on how to launch a web object spy, please refer to Launching Object Spy.
Within the Repository section, locate and select the page under which the object that requires updating resides.
Hover on the object that you want to edit.
You will see four options:
A camera icon to indicate it is an image object.
Edit.
Highlight.
Delete.
Amend the object details as needed, you can update:
Name: Name of the Object.
Class: Class of the Object.
Locator Type.
Locator Value.
If you prefer to change the image object with another image, click Update Object icon.
The section will change to light orange color to give the feedback that the Update Object mode is on.
Click the new image you wanted to replace, ; the image object will be updated.
Click Save to save the changes, if you have clicked edit by mistake or you don’t want the changes made to be saved, click Reset.
Once all the changes are made, click Save To Repository to update the changes.
As an example, if the source of an image object has been changed on the website, you might need to update the test script to reflect this change.
Note |
---|
Note: Please note that Smart Locator mode doesn't support the Image mode. |
...
Delete Objects from Object Repository
The Object Spy feature allows you to update object details, including their locator type and associated locator value.
To modify an object learned through the Hover mode, follow these steps:
Initiate the browser (Edge or Chrome) that has the Web Object Spy enabled.
For a comprehensive guide on how to launch a web object spy, please refer to Launching Object SpyLogin to Qualitia Automation Studio Client <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You will see Object Repository.
All the objects will be listed.
Within the Repository section, locate and select the page under which the object that requires updating resides.
Hover on the object that you want to edit.
You will see three options:
Edit
Highlight
Delete
Click the Delete (bin) icon.
Once all the changes are made, click Save To Repository to update the changes.
Highlighting Highlight Objects
TBD
Challenges in Object Identification and Remedies
...