cancel
Showing results for 
Search instead for 
Did you mean: 

initialize properties

Highlighted
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
Highlighted
Super Contributor

Re: initialize properties

Hi!

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

regards!

/Ole
eviware.com
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Filtering data retrieved from a DataSource

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors