Forum Discussion
nmrao
9 years agoCommunity Hero
Thank you for the response.
Looks like you did not run the step and the response could be null. Hence you are not able to parse it with JsonSlurper.
First execute the step.
Looks like you did not run the step and the response could be null. Hence you are not able to parse it with JsonSlurper.
First execute the step.
Shashavali
9 years agoContributor
Thanks for the reply.
I think the below lines will execute the test case. I can see the response value in the HTTP Log
def tc =testSuite.getTestCaseByName( "VerifyPOSTAuthApi_Returns200OK" )
def properties = new com.eviware.soapui.support.types.StringToObjectMap ()
tc.run(properties, false)
- nmrao9 years agoCommunity HeroShashavali,
change below statement from:
def response = context.expand( '$VerifyPOSTAuthApi_Returns200OK#Response}' )
to:
def response = context.expand( '${VerifyPOSTAuthApi_Returns200OK#Response}' )
and see if that helps.