Forum Discussion

kamatchipriya's avatar
kamatchipriya
Occasional Contributor
8 years ago

#HTTP_STATE:null in script Assertion

Hi,

i am running my soapui project from a groovy script. but i am getting assertion failure error for some test cases. i posted my error below. anyone can help me to solve this error?

 

assert response.name == context.expand('${POST_CreateAccount#Request#$.name}')
| | | | |
| | | | ""
| | | [#HTTP_STATE:null, httpMethod:com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedPostMethod@4920cf59, ThreadIndex:0, log:org.apache.log4j.Logger@90d0191, httpResponseProperties:[version:v1], requestUri:http://localhost:9010/gunifyprov/v1/accounts, com.eviware.soapui.impl.wsdl.support.assertions.AssertedXPathsContainer:com.eviware.soapui.impl.wsdl.teststeps.RestRequestStepResult@34e1db3b, postMethod:com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedPostMethod@4920cf59, httpClient:com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpClient@3ad7d742, RunCount:0, requestTransport:com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport@30754c3c, httpResponse:com.eviware.soapui.impl.wsdl.submit.transports.http.SinglePartHttpResponse@51ce73fc, wsdlRequest:com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest@64e00ffe, requestContent:{
| | | "domain": "gps.com",
| | | "isDelete": "0",
| | | "isEnabled": "Y",
| | | "name":"Test GP Account",
| | | "ucProviderId": "1",
| | | "createdBy":"1",
| | | "modifiedBy":"1"
| | | }]
| | false
| Test GP Account
[id:576, createdBy:1, modifiedBy:1, name:Test GP Account, domain:gps.com, isDeleted:0, createdDate:2017-08-10T04:22:03.675Z, isEnabled:Y, modifiedDate:2017-08-10T04:22:03.675Z, ucProviderId:1]