Adding an Object
- ravi.chandran (Unlicensed)
Owned by ravi.chandran (Unlicensed)
Jul 14, 2021
3 min read
Loading data...
The first step in the automation of manual test cases is adding objects to the object repository.Â
An object repository contains:
- Parent: An object whose class is a page.
- Child: An object present under a page class, which is used in test cases. A child object can also have a set of child objects.
To add objects for a desktop application, refer to Working with Qualitia for Desktop Applications.
Adding a Web or an SFDC ObjectÂ
Perform the following steps to add a web object or an SFDC object for an application under test.Â
- You can create an SFDC object in a Salesforce project only.
- Time Out and Polling Interval do not work for SFDC objects.
- You can add an SFDC object using one of the following locator types:
- SFDC:Label
- XPath
- The Salesforce project also allows you to add web and mobile objects for the associated web and mobile application objects.
To add a web or an SFDC object:
- From the Expand Menu, click Develop.
- Click the Objects tab.
- Do one of the following:
- To create a parent object, click Create Object.
- To create a child object, from the left pane, point to the parent object under which you want to add, click the Create New Object button () as shown in the following figure:
- Enter Object Name and Description.
- Select Class from the drop-down list.
- Select Locator Type and enter its associated Locator Value.
- To use the SmartLocator feature during the execution, select the SmartLocator checkbox.
- (Optional) Enter Time Out in seconds.
- (Optional) Enter Polling Interval in milliseconds.
If you specify Time Out and Polling Interval, Qualitia uses the Explicit Wait mode during the execution by overriding these values specified in the associated execution profile.Â
- (Optional) To continue adding another object, select the Create Another checkbox.
- Click Save.
Adding a Mobile Native Object
Perform the following steps to add a mobile-native object only for mobile application under test.Â
To add Mobile Native Objects:
- From the Expand Menu, click Develop.
- Click the Objects tab.
- Do one of the following:
- To create a parent object, click Create Object.
- To create a child object, from the left page, point to the parent object under which you want to add, click the Create New Object button ()
- From the Technology drop-down list, select Mobile.
- Enter Object Name and Description.
- Select Class from the drop-down list.
- Select Locator Type and enter its associated Locator Value.
- In the Search Class field, enter the class details displayed in the Appium Inspector or UIAutomatorViewer and then click the Search icon. Â
This will automatically select the Qualitia Class of the object. - Do one of the following:
- To add an Android application object, select Android Locator Type and enter its associated Android Locator ValueÂ
- To add an iOS application object, select iOS Locator Type and enter its associated iOS Locator Value.
- (Optional) To continue adding another object, select the Create Another checkbox.
- Click Save.