Forum Discussion
sinnes_1
16 years agoOccasional Contributor
I believe you can do this with a "Properties" step.
Set one up called "Properties"
At the start of your script:
def properties = testRunner.testCase.getTestStepByName("Properties");
long startTime = properties .getPropertyValue( "startTime" );
.... code
properties.setPropertyValue("startTime", starTime.toString());
If you leave the actual property blank, it will come up as null the first time around.
Hope that helps!
Set one up called "Properties"
At the start of your script:
def properties = testRunner.testCase.getTestStepByName("Properties");
long startTime = properties .getPropertyValue( "startTime" );
.... code
properties.setPropertyValue("startTime", starTime.toString());
If you leave the actual property blank, it will come up as null the first time around.
Hope that helps!