Solved
Forum Discussion
jhanzeb1
6 years agoFrequent Contributor
Hi,
testRunner.testCase.getTestStepByName.setPropertyValue("quoteexpirydate_plus", yourVariableForThis)
I hope this helps
- martinrampton6 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
- 10 months agoMussieG