Forum Discussion

kamatchipriya's avatar
kamatchipriya
Occasional Contributor
8 years ago

Contains Asserion failed when running from script

Hi,

 I am new to soapui. i am running my project with all test suites and test cases within a single groovy script. Inside my test steps i have contains assertion in that i am checking my request parameters are equal to response for post api method.

 

"name":"${POST_CreateAccount#Request#$name}" i am getting this error when i am trying to run my test cases using groovy script.ERROR:An error occurred [Invalid JSON String], see error log for details.

 

But if i run my project without using scripts the assertions are getting passed. can anyone pls help me to resolve this issue?

  • nmrao's avatar
    nmrao
    Champion Level 3
    Please show the raw response for the review. And also specify what do you want to assert.