Verify Text Exist
Last updated
Last updated
This is pre-built Action located under the Table captured from the AUTElement Name. It instructs the Avo Assure Client to verify if the text given in the input is present in the table and save the result in the given output variable.
Input: <text>
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
User testing an online shopping cart system where customers can view their cart and verify the products they have added. The cart is displayed as a table with multiple rows, where each row contains details about a product, including the Product Name, Quantity, Price, and Total for each item in the cart. At the bottom of the table, the "Total Price" for all items is displayed.
User’s task is to verify that a particular product, say "Laptop", exists in the shopping cart, ensuring that the product is correctly added by the user.
Testing Example:
Input: Laptop
Expected Result: The "verifyTextExist" Action needs to check if the text "Laptop" exists within the Product Name column of the shopping cart table.
Output: By using the "verifyTextExist" Action, you can automate the verification process to ensure that specific text, such as a product name, exists in a table. In this case, the test will confirm whether the "Laptop" has been correctly added to the shopping cart by checking the Product Name column and save the status in the {result} Output Variable as True, which can be utilized for display or other purposes.