Qualitia Automation Studio (QAS) enables you to easily manage Objects. You can view objects, edit existing Objects and remove unwanted or redundant ones.
📚Prerequisites:
User must have access to QAS - Client.
User must have “Manage Objects “privileges to access Object toolkit.
Edit an Object
Sometimes, an object's name or properties might change, or you might want to rearrange your object hierarchy.
View Object
To view Object Repository via Object Spy
Login to QAS - Client.
Access Develop from left navigation to view the Test Explorer screen.
Click Objects icon from extreme right of the toolkit to view the Object Repository.
All the objects are listed in the Object Repository.
Launch Object Spy. By default, you will land in Learn Objects Tab.
For a comprehensive guide to launch a web object spy, refer to Launching ObjectSpy.
Click the Repository tab.
Under Project, you can view all the Pages from which the Objects are captured.
If you see a Red Dot on the Refresh icon, it indicates that a new object has been added to repository or updated by another user.
Click the 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.
To view Objects via Object Repository
Login to QAS - Client.
Access Develop from left navigation to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You can view the Object Repository,where all the objects will be listed.
Click Refresh icon to update newly captured objects.
Use the Seach bar to search for Objects based on keywords.
Use Expand All option to expand all the parent objects.
Use Collapse All to hide the child Objects.
Double Click on the desired Object to view its details (referred to as Object Details.)
...
When you hover over the info icon on the Object Details screen, you'll see the object creator in the Updated By field and the date of the update in the Updated On field.
View Test Cases Before Modifying Objects from Object Repository
Before updating an object, check which test cases might get affected to understand the impact of your changes.
Login to QAS - Client.
Access Develop from left navigation to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You can view the Object Repository where all objects are listed.
Double Click on any Object to view its details.
Click the Number next to Smart Object.
A new popup window will appear and list all the Test Cases that uses this Object. It's the popup of list and user can only copy paste the Test Case name.
Filter Objects in Object Spy
Login to QAS - Client.
Access Develop from to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You can view the Object Repository, where all objects are listed.
Launch or start Object Spy.
For a comprehensive guide to launch a web object spy, refer to Launching ObjectSpy.
By default, you land in the Learn Objects Tab.
Click the Repository tab.
Under Project, you can view all the Pages from which the Objects are captured.
Click the Expand icon to view the Objects under each page.
Using the Filter option, you can narrow down your search.
Select the Web Page dropdown from which you want to filter Objects.
From the Object Class, select the WebElement you want to Filter.
Once the Filters are applied, you can view the objects that match the given criteria.
To clear the filters, simply click x button next to each of the filter option.
Create Object
Create Object via Object Spy
Login to QAS - Client.
Access Develop from left navigation to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
When no Object exist, you are prompted to Create Object in the Object Repository screen.
You can also click + Create Object from the top right corner of the Object Repository screen.
Clicking Create Object will open a Create Object windowwith the following fields:
Name: Enter an intuitive name for the object that is easy to recognize.
Technology: Select Web or Mobile from the dropdown menu.
Class: Select class of the Object from the dropdown menu.
Parent: Select parent object if any.
Description: A brief description about the object.
Locator Type: Select the locator type from the dropdown menu.
Locator Value: Enter the value.
Once completed, click Save to proceed. Otherwise, click Discard.
Edit Object
Edit Objects from Object Repository via Object Spy
The Object Spy 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:
Login to QAS - Client.
Access Develop from left navigation to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You can view the Object Repository, where all objects are listed.
Launch the Object Spy.
For a comprehensive guide on how to launch a web object spy, refer to Launching ObjectSpy.
By default, you land in the Learn Objects Tab.
Under Projects, you can view all Pages from which the Objects are captured.
Click the Expand button before each web page to view the Objects under a page.
Within the Repository section, locate and select the page under which an object needs to be updated.
Hover over the object you want to update.
You will see three options:
Edit
Highlight
Delete
Click the Edit (Pencil) icon next to the object you intend to update.
You can edit the following:
The Name of the Object.
The Class of the Object.
The Locator Type.
The Locator Value.
To replace an object with another object, click the Update Object icon.
The section changes to light orange color to indicate the Update Object mode is on.
Click the new Object; the previous object gets replaced with the latest one.
Double click the Page Name to Edit the name of the page.
Once updated, click the Tick mark.
Once updated, click Save.
Once all the changes are made, click Save To Repository to update the changes.
...
For a use case, consider a website where the properties of a web element, say a button, have been updated during a website revamp. You can use this process to update the details of the button in your test script.
To modify an object learned through the Image mode:
Login to QAS - Client.
Access Develop from left navigation to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You can view the Object Repository, where all objects are listed.
Initiate Chrome Object Spy.
For a comprehensive guide to launch a web object spy, refer to Launching ObjectSpy.
Ensure you are in Learn Objects Tab.
Within the Repository section, locate and select the page under which an object needs to be updated.
Hover over the object you want to update.
You will see four options:
A camera icon, indicating an image object.
Edit
Highlight
Delete
Update the object details as needed. You can update the following:
The Name of the Object.
The Class of the Object.
The Locator Type.
The Locator Value.
To replace the image object with another image, click the Update Object icon.
The section appears light orange to indicate the Update Object mode is on.
Click the new image to replace the existing one.
The latest image object gets updated.
Click Save to proceed; otherwise, click Reset.
Once all 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 |
---|
The object will be locked in any edits if any user or you for that matter is trying to edit the Object in Object Repository and trying to edit it using the Object Spy. |
Edit Objects in Object Repository
Login to QAS - Client.
Access Develop from left navigation to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You can view Object Repository, where all objects are listed.
Click the Refresh icon to update newly captured objects.
Double click the Object you intend to update. You can view the Object Details screen.
Click the Edit (pencil) icon to enable the edit mode.
Make necessary updates.
Click Save to save the changes; otherwise, click Discard.
Upon clicking Save, you can view the Object Successfully Updated.
Info |
---|
If you see a Lock icon next to the Object Name, it indicates that it is being edited by a user. Hover on the lock icon to view the User who is currently editing the Object. |
Remove Objects
Remove Objects from Object Repository
Login to QAS - Client
Access Develop from left navigation to view Test Explorer screen.
Click Objects icon from extreme right of the toolkit.
You can view Object Repository, where all objects will be listed.
Click the Refresh icon to update newly captured objects.
Double click the Object you intend to delete.
You can view the Object Details screen.
Click Delete (Bin) icon to delete. You are prompted to confirm the delete action.
Click Delete to proceed; otherwise, click Discard if you accidentally clicked delete icon.
The selected object is now deleted.
Remove Objects from Object Repository via Object Spy
The Object Spy allows you to delete object details, including their locator type and associated locator value.
...
Remember, you can only remove objects that are not part of any tasks or test cases. Also, removing a parent object, will remove all its child objects.
💡Golden Nuggets: Best Practices for Object Management
🔧 Got a problem? Let’s fix!
📞📚 Here to Help: Support and Resources
Need a helping hand? Don't hesitate to reach out to your Qualitia Relationship Manager. For more resources, our official Qualitia documentation and community website are just a click away!