Forum Discussion
nmrao
9 years agoCommunity Hero
Two things:
1. It is not mentioned the problem with your script
2. It looks almost right. But, based on the screen shot of the response, it is not clear if the value that you extracted is String or Boolean. May that would be causing.
Try below change and see if that helps :
Change from
if (String.valueOf(responseObject.Successful).equals(false))
To
if ('false' == responseObject.Successful)
yuraku
9 years agoContributor
Thanks for your reply. But it doesn't work for me.
This is my code:
if ('false' == responseObject.Successful){
testRunner.gotoStepByName( "Check Job Status")}
else{
testRunner.gotoStepByName( "Get Job Result")}it still goes to the second step instead of first one.