Alex_
9 years agoNew Contributor
Set current date from setup script
Hi!
Please help.
I need send request with date parameter = current date
I create parameter "today" and write setup script: testRunner.testCase.setPropertyValue("today", new Date().format("yyyy-MM-dd'T'hh:mm:ss'Z'"))
But when I check script I get error: org.mozilla.javascript.EcmaError: TypeError: Cannot find function format in object Fri Dec 16 2016 00:06:36 GMT+0400.
Please help me understand what I do wrong. thanks in advance all