Forum Discussion

PFrape's avatar
17 years ago

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

  • omatzura's avatar
    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