Web ActionsVerify Discount

Verify Discount

applied to a product or service based on a given discount percentage. For example, if a product is originally priced at $100 and a 20% discount is applied, the final price should be $80. The "verify discount" action would check that the displayed price after the discount matches the expected price based on the discount percentage provided as a parameter. Refer to adding a parameter section.

Scenario: Verifying a discount on a product

Given the product is priced at $100 When a 20% discount is applied Then the final price should be $80

Supported UI element is a TextBox.

Adding a Parameter

While adding nodes in the node configuration process, you can add parameters.

If you have already created the project, navigate to the Projects and select the appropriate project. Click on the required node and it will navigate to Test Design, you can view associated feature and the UI element. In this window, you can add the parameters and click Save.