Forum Discussion
jhanzeb1
7 years agoFrequent Contributor
Hi,
testRunner.testCase.getTestStepByName.setPropertyValue("quoteexpirydate_plus", yourVariableForThis)
I hope this helps
- martinrampton7 years agoOccasional Contributor
Thanks, eventual working code looks like this:
use(groovy.time.TimeCategory) {
def quoteexpirydate = context.expand ( '${#TestCase#quoteexpirydate}' )
def formated_quoteexpirydate = Date.parse("yyyy-MM-dd", quoteexpirydate)
def onedayfromexpirydate = formated_quoteexpirydate + 1.day
def testCaseProperty = testRunner.testCase.setPropertyValue("quoteexpirydate_plus", onedayfromexpirydate.format("yyyy-MM-dd"))
}
Related Content
- 2 years ago
- 2 years ago
- 8 years ago