Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
The first step in the automation of manual test cases is adding objects to the object repository. While creating an object, you need to identify the controls of the application under test for creating objects and gather information about object properties.You add two types of objects; Web and Mobile
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.
Info |
---|
To add objects for a desktop application, refer to Working with Qualitia for Desktop Applications. |
Adding a Web
ObjectsIn order to automate the web application testing, you needObject
Perform the following steps to add the web objects of for the application under test.
To add Web objects:
- From the Expand Menu, click Develop.
- Click the Objects tab.
- The New Object screen appears.
- Select Object Type as Web.
- Search and select Parent Object 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 (Image Added) as shown in the following figure:
Image Added
- 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.
Note |
---|
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. |
Adding Mobile Native Objects
In order to automate the mobile native application testing, you need to add these objects of- (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 Native Objects:
- Click Develop > Objects > New.
The New Object screen appears. - Select Object Type as Mobile Native.
- Select Parent Object under which you want to create these new objects.
- Enter Description.
- 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 (Image Added)
- 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:
- If the object is from Android deviceTo add an Android application object, select Android Locator Type and enter enter its associated Android Locator Value orIf the object is from iOS device
- To add an iOS application object, select iOS Locator Type and enter enter its associated iOS Locator Value
- .
- (Optional) To continue adding another object, select the Create Another checkbox.
- Click Save.