- Edit a test case and select COMPARE command from the step wizard
- In the COMPARE form displayed, select the type of values being compared by choosing a value from "Select Comparison Type"
- Select the operator of choice from the dropdown
- Select the LHS (Left Hand Side) and RHS (Right Hand Side) value sources
- To do arithmetic operations, write an arithmetic operation in the value area, such as: @item_price * (1+ ${template.tax_amount} * 0.01)
- template in the above arithmetic operation is the name of the data template
- tax_amount in the above arithmetic operation is a field name for the data template
- item_price is a variable defined through SET_VAR command
- * is for multiplication and + is for addition
How to compare values and perform arithmetic operations?
Have more questions? Submit a request
Comments
Please sign in to leave a comment.