Forum Discussion

martinrampton's avatar
martinrampton
Occasional Contributor
6 years ago
Solved

How to I set the value of a test case property from a groovy script

I have a working groovy script that adds 1 day onto a date stored in a property called 'quoteexpirydate'... the script works fine and I can see the result in the log.info window. My question is, how ...
  • jhanzeb1's avatar
    6 years ago

    Hi,

     

    testRunner.testCase.getTestStepByName.setPropertyValue("quoteexpirydate_plus", yourVariableForThis)

     

    I hope this helps