3.2.1 Adding Object Groups
Last updated
Last updated
To add any object (Section, UI Element, Product Element, API) you need to move to studio dash board
To add any object (Section, UI Element, Product Element, API) you need to move to studio dash board
To add any object or component you need to navigate to studio dash board
To add any object or component you need to navigate to studio dash board
Create a UI Element.
Click on the plus icon in objects.
2. Click on the UI Element link
3.You need fill the Below details
i. Select the section name
ii. Enter UI element name
iii. Select Element type
iv. Enter label name
v. Select locator type
vi. Enter the locator path
vii. Select wait time
viii. Enter wait value
4. After fill up the form click on Save button. The page should appear as also shown in the screenshot below
Create a product element
Click on the plus icon in objects.
2. Click on the Add Product Element link
3. You need fill the Below details
i. Select the section name
ii. Enter product element name
iii. Label name
iv. Select product element type
v. Data type
vi. Enter sequence
vii. UI element linking was not mandatory if you want you can select the UI Elements.
viii. Link the UI element in UI Input Element Name, UI View Element Name, UI Error Element Name
4. After fill up the form click on Save button. The page should appear as also shown in the screenshot below.
API
Go to the Studio dashboard.
Click on the plus icon (+) in object.
3. Click on the Add API link.
4. You need fill the below details
i. Enter API Name
ii. API Description
iii. Select the section name
iv. Type
v. Http method
vi. Enter the API request URL.
5. After fill up the form click on Save button. The page should appear as also shown in the screenshot below.
6. Click on the eye icon to select the deployment
7. Select the deployment
8. Click on the request headers tab to add the request headers of an API.
9. Enter the header name in property name and enter header value in property value.
10. Click on the request template tab to add the request of an API.
11. XI. Select your request template format and then enter the API request.
12. After fill up the form click on Save button. And then click on Test button.
13. XIII. You will see the status of the API test.
14. XIV. Click on the Test Log Messages tab. Here completed details log is displayed.
15. Click on the Response Body tab. Here response of an API is displayed.
API Parameterization
API parameterization is nothing but without interrupt the actual request template we can replace the key values in request.
Below is the syntax for the parameterization.
Syntax: ${Product Element}
3. Below screen shows the parameterized request template. We created the product elements with name and job.
4. Click on the Default Parameter tab you can find the two buttons, Extract Param with refresh and Extract Params.
5. Click on the Extract Param button you get the all parameterized fileds.
6. Fill the all the fileds then click on Save button and then Click on Test button.
7. Now you can get response based on the data you are provided in the default parameters.
Data Extraction
Data Extraction is exacting the particular data from response body.
In the API response we may get huge response. It was difficult check the particular value in huge response. So, data extraction is extracting the particular values from the response.
Click on the Response Schema tab and then click on New link.
4. Here you can see the two options Advanced and Design.
i. Click on the Design.
5. Enter the Schema Name and Matched string.
Matched string: Any String in the whole response data.
Enter the JSON path in response filed, select the data type and select the product element.
3. After fill the all the details click on the save button Then click on the Test button.
4. Click on the Response Data tab.
5. You can find the extracted data. Below screen shows the extracted data.
Data Assertion
I. Data assertion nothing but validating the extracted data.
Click on the response schema tab. You will see the previously added response schema
Update the schema with assert operation and assert data.
4. IV. In the above case we gave the comparison data statically we can also parameterize the assert data to dynamic data
5. To do the dynamic data you need to follow the QATTS parameterized syntax as we used in request template
6. Syntax: ${ProductElementName}.
7. Click on Save button and then click on Test button
8. Click on the Assert Result tab. You can see status of every object.
Create a Query
On the studio dash board, Click on the plus icon in component.
2. Click on Add Query button link.
3. You need to fill the Query Name, Description, Alias Name and Query and then Click on Next button.
4. Click on the Save button.
5. The Query should be created successfully for you and Created query displayed in the query component.
Create a Smarty
On the studio dash board, Click on the plus icon in component.
2. Click on Add Smarty link.
3. You need to fill the Smarty Name, Description and select the smarty type and click on Save button.
4. The Smarty should be created successfully for you and Created Smarty displayed in the Smarty component.