Forum Discussion
mgroen2
Super Contributor
Hi groovyguy,
first of all, sorry for the late reply.
Could you please assist me?
I have created an entry "Groovy script". Inside that I copied your script.
Then, when I press run, I get an error (see screenshot):
Radford
6 years agoSuper Contributor
You reference a test step in the line:
def propertiesStep = context.testCase.testSteps['Properties']
But looking at your test case in the navigator panel, you do not have a test step called "Properties", thus the above line returns null.
For your code to work you will need to create a properties test step called "Properties", and I think you may also have to pre-create your properties "yesterday" & "tomorrow" (Not 100% sure off the top of my head, give it a try both with and without).
Related Content
Recent Discussions
- 4 days agominhng