Handling Mobile Actions using Java Appium Framework
Default actions are the ones readily available as part of automation framework in algoQA. Action List provides the list of default actions supported for each of the automation types.
Mobile Default Actions
The following table provides you few of the the Default actions supported for a Mobile Automation using Java Appium Framework.
| UI Element | Description | Example | Default Action |
|---|---|---|---|
| Label | Verifies the breadcrumbs entered by the user as test data in the Custom Value Text box of the Edit Scenario feature.To access the Edit Scenario feature, navigate to the Main Canvas > More options in the Main Menu bar > Select "Edit Scenario." Then, click the Edit icon of a specific step in the Scenario Sequence section. | If you wish to verify the navigation path, such as Knowledge Base/ Article, then pass this breadcrumb in the Custom Value text box in the Scenario Sequence and generate the test cases. | verify breadcrumb |
| Label | Verifies any one value from a list of items or multiple values using underscore (_) symbol passed as test data in the Custom Value Text box of the Edit Scenario feature.To access the Edit Scenario feature, navigate to the Main Canvas > More options in the Main Menu bar > Select "Edit Scenario." Then, click the Edit icon of a specific step in the Scenario Sequence section. | If you choose to verify specific categories or product types available on the Amazon website, such as "Laptops," "Headphones," and "Smartphones."Test Data:To verify one category, you would enter:LaptopsTo verify multiple categories using the underscore (_) symbol, you would enter:Laptops_Headphones_Smartphones | verify one of the value |
| TextBox | Verifies the discount applied on a product, where the discount percentage is passed as a parameter in the percentage format which represents the percentage format during the Node Configuration process. | Original Price of the Product is ₹64,000-. Copy this number using the action copied number which copies the number to clipboard .Offer Price is given as ₹54,000. The iscount Amount is calculated as the difference between the Original Price and the Offer Price:Discount Amount is passed as the parameter in percentage. | verify discount |
| TextBox | Verifies the quantity of the product and discount in percentage as a parameter in the format number_number which represents the percentage. | Original price is copied to the clipboard using copied number action You are verifying both the quantity of the product and the discount percentage using parameters in the format number_percentage numberExample:Let’s say the quantity of the product added to the cart is 3 and the discount percentage is 20%. The parameter would be passed as:Test Data Parameter: 3_20Where:3 represents the quantity of the product.20 represents the discount percentage. | verify quantity and discount percentage |
| page | Closes the current tab | If you choose to close the current tab, then you can use this action. | close tab |
| Page | Closes all the tabs within the application | If you have opened multiple tabs within an application, you can close the main application using cross mark. | close application |
| TextBox Label DropDownList Link | Copies the text on an App and stores it on a clipboard. | Copies the text and stores it on clipboard and displays in the log section of the report generated. You can access the reports in the algoQA script generated folder. | Copied text |
| Link Page Label Image Button | ##### Refresh's the page until the element is visible | After entering your credentials, It refreshes the page for few seconds and loads the login button. | refresh until |
| Page | ##### Verify url of the current page by comparing with parameter(pass expected url as a parameter) | Enter the url in control value while editing node configurations for page. | verify url |
| Label | ##### Verify the content of element is not same as the content of copied text | The content which was available earlier should not be same as what appeared later. For Example: A user logs into Licious M-site and chooses chicken from the site and later it changes to mutton and can be viewed in log message of generated report. | verify changed text |
Was this page helpful?