Forum Discussion

mpw83's avatar
mpw83
Contributor
6 years ago
Solved

Process two different property values and set the results in another test case property

I have two test case level properties,  'Amount' and 'Interest'  I want to add the values of these two properties and set the answer to another property called 'Payment'  ${#TestCase#Amount} ->  ...
  • jsheph01's avatar
    6 years ago

    You can use the script below as the property value for payment. You should be able to use that for an assertion as well, it just depends on what type of assertion you are doing.

     

    ${=import java.lang.Integer;def Payment = ${#TestCase#Amount} + ${#TestCase#Interest} }