Ask a Question

initialize properties

PFrape
Not applicable

initialize properties

when i try to access empty properties with groovy script i get a null pointer error and groovy fails - what is the easiest way of initializing a bunch of properties to say "null"

def targetStep = testRunner.testCase.getTestStepByName( "Props" );
def timestamp = targetStep.getPropertyValue("timestamp");
1 REPLY 1
omatzura
Super Contributor

Hi!

is this the latest snapshot or the 1.7.5 release? (this should have been fixed by now..)

regards!

/Ole
eviware.com
cancel
Showing results for 
Search instead for 
Did you mean: