Adding a Web or SFDC Object
When you start Prior to automating your manual test cases, the first thing you will need to do is add objects to your object repository . This repository will to include:
Parent objects: These are objects whose class is a page.
Child objects: These are objects present under a page class and used in your test cases. A child object can also have its own set of child objects.
If you are working with a desktop application, you will need to refer to the guide on Working with Qualitia for Desktop Applications
View Objects
Login to Qualitia Automation Studio QAS - Client. <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio - Clientto view Test Explorer screen.
Click Objects tab icon from the extreme right side of the screentoolkit.
A slide-out panel will appear where the existing objects will be listed.
Click Refresh icon if you intend to check for new objects added by your team members.
Click Expand All to expand all the parent objects so that you can view the parent and corresponding child objects.
- Click Collapse All to collapse all the child objects so that you can view only the parent objects
You can view Object Repository, where all Objects of a Project are listed in alphabetical order.
Click the Expand button before each Parent Object to view its Child Objects.
If you are landing on this page for the first time, you will be seeing a bank Object Repository with a Create Object button.
If you have 100s of several objects, use the Search functionto quickly search for the desired objects.
Info |
---|
Light Bulb object next to an object indicates that the Object is a Smart Object. |
...
Add a Web, Mobile, or an SFDC Object
Info |
---|
...
Image objects do not support manual creation, and Time Out and Polling Interval options do not work for SFDC objects. Also, you can only create an SFDC object in a Salesforce project. |
Login to Qualitia Automation Studio QAS - Client. <insert Screenshot>
Access Develop from left navigation of your Qualitia Automation Studio - Clientto view Test Explorer screen.
Click Objects tab icon from the extreme right side of the screentoolkit.
A slide out panel will appear where are the existing objects will be listed.
Hover on the existing object if it exists or click the Create Object.
Now, you have two options:
To create a parent object, click on Add Object at same level.
To create a child object, find the parent object under which you want to add the child in the left pane. Then, click Add Contained Object button.
Enter the Object Name and Description.
Choose the Class from the drop-down list.
Select the Locator Type and enter the corresponding Locator Value.
- If you want to use the SmartLocator feature during execution, make sure to check the SmartLocator checkbox
You can view Object Repository, where all Objects of a Project are listed in alphabetical order.
Under a Project, you can view all the Pages from which the Objects are captured.
Click Expand button before each web page to view its Objects.
If you are landing on this page for the first time, you will see a bank Object Repository with a Create Object button.
Click Create Object button.
This will open a form where you can:
Enter the object Name.
To use the Smart Locator feature during execution, ensure to check the Smart Object checkbox.
If you are selecting the Smart Object, you will be prompted to confirm, click Ok.
Choose Technology from the dropdown.
In case of a SFDC or Web Object
Select the Class from the dropdown.
Add a Description.
(Optional) If you want to specify a Time Out, enter it in seconds.
(Optional) If you want to specify a Polling Interval, enter it in milliseconds.
Remember, if you specify these,
QAS will use the Explicit Wait mode during execution, overriding the values specified in the associated execution profile.
Select the Locator Type and enter the corresponding Locator Value.
In case of Mobile Object
Select the Class from the dropdown.
Enter a Description.
Choose
Android Locator Type and Locator Value.
IOS Locator Type and Locator Value.
To continue adding another object right away, check the Create Another checkbox.
Click Save to finish.
Remember, you can add an SFDC object using either the SFDC:Label or XPath locator types. And if you're working on a Salesforce project, you can also add web and mobile objects for the associated web and mobile application objects.
Editing an Object
Sometimes, an object's name or properties might change, or you might want to rearrange your object hierarchy. Here's how you can edit an object:
Click
Develop from the left navigation pane.
Click
Objects icon from the right side of the screen.
A slide-out panel will appear where the existing objects will be listed.
If you have 100s of objects use the search bar to quickly search for the objects.
Double click on an existing object you wanted to edit.
You will see the Object details.
Click
Pencil icon to edit.
Edit the fields as needed.
Click
Save to finish.
Note: If you want to change the locator type and the locator value for an object, remember to uncheck the SmartLocator checkbox first.
Note: You cannot change the class of an Object. If it is accidentally created delete the object.
You can also move objects to different parent objects or make them independent. Just select the object you want to move and select a different parent object.
Removing Objects
Over time, you might accumulate objects that you no longer need. Here's how you can remove them:
Click
Develop from the left navigation pane.
Click
Objects icon from the right side of the screen.
A slide-out panel will appear where the existing objects will be listed.
If you have 100s of objects use the search bar to quickly search for the objects.
Double click on an existing object you wanted to edit.
You will see the Object details.
Click
Bin icon to delete.
You see a new pop-up screen to confirm deleting the object.
Confirm that you want to delete the object by clicking
Delete.
Note: Remember, you can only remove objects that aren't part of any tasks or test cases. If you remove a parent object, all its child objects will be removed as well.
Viewing Test Cases Before Modifying Objects[SS3]
Before you make changes to an object, it's a good idea to check which test cases will be affected. This can help you understand the impact of your changes. Here's how you can do it:
· Click Develop from the left navigation pane.
· Click Objects icon from the right side of the screen.
· A slide-out panel will appear where the existing objects will be listed.
· In the left pane, find the object you're planning to modify. This could be a parent or child object that's been used in some tasks.
· Right-click on the object, then click on View Test Cases from the context menu.
This will show you a list of all the test cases where the object is used. If you select an object from the list view (right-pane) and choose to edit it, you'll also see a list of impacted tasks. You can then decide whether to proceed with the edits or take some other action based on the potential impact.
Editing an Image Object
Editing an image object is like editing a regular object, but there are a few additional fields:
Image Accuracy: This lets you specify the image pixel accuracy value, which ranges from 1 to 100. For example, if you set the image accuracy value to 10, then it will verify the image object by matching 10% of the image pixels. The default value is 70.
Time out: This lets you specify the maximum time, in seconds, that you want the system to spend searching for the object.
Polling Interval: This lets you specify the polling interval in milliseconds.
Class: This lets you select the desired class.
...
Once completed, click Save to add the object to repository; otherwise, click Discard.
Now, you have two options:
To create a parent object, click Add Object at same level.
To create a child object, find the parent object from the left pane under which you want to add the child. Then, click Add Contained Object button.
Follow the same process for adding an Object.
In case of Child Object, select the Parent from the dropdown.
If you want to continue adding another object right away, check the Create Another checkbox.
Click Save to add the object to repository; otherwise, click Discard to avoid saving in repository.
Remember, you can add an SFDC object using either the SFDC:Label or XPath locator types. And if you're working on a Salesforce project, you can also add web and mobile objects for the associated web and mobile application objects.
Info |
---|
You can create an empty object by not specifying the Locator Type and Locator Value. |
💡Golden Nuggets: Best Practices for Adding Objects
🔧 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!