How to compare values and perform arithmetic operations?

  1. Edit a test case and select COMPARE command from the step wizard
  2. In the COMPARE form displayed, select the type of values being compared by choosing a value from "Select Comparison Type"
  3. Select the operator of choice from the dropdown
  4. Select the LHS (Left Hand Side) and RHS (Right Hand Side) value sources
  5. 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
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.