Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHello,
I don't see anything that looks wrong with your script. The NullPointerException suggests that the value of targetStep is null, meaning that testRunner.testCase.getTestStepByName( "Properties" ) is returning null. Please double check to make sure that there is a TestStep in the same TestCase as the Groovy TestStep with the name "Properties" (capitalization matters). You can add the following line to your code to verify that you get a TestStep before you try to transfer the properties:
Regards,
Dain
eviware.com
I don't see anything that looks wrong with your script. The NullPointerException suggests that the value of targetStep is null, meaning that testRunner.testCase.getTestStepByName( "Properties" ) is returning null. Please double check to make sure that there is a TestStep in the same TestCase as the Groovy TestStep with the name "Properties" (capitalization matters). You can add the following line to your code to verify that you get a TestStep before you try to transfer the properties:
//Insert this after targetStep = testRunner.testCase.getTestStepByName( "Properties" )
log.info("targetStep is "+targetStep)
//Should print something like: Tue Mar 23 13:11:18 CET 2010:INFO:targetStep is com.eviware.soapui.impl.wsdl.teststeps.WsdlPropertiesTestStep@1de57c
Regards,
Dain
eviware.com