prasannav
6 years agoNew Contributor
Contains assertion passed in SOAPUI tool, but failed executing from java using WsdlTestCaseRunn
I have assertion created in SOAPUI tool to verify content in response as given below and it is passing.
import groovy.json.JsonSlurper
def responseContent = messageExchange.responseContent
assert(responseContent.contains("queue:"))
Now i have exported this project to xml and i am running tests using Java using soapui maven dependency.
WsdlTestCaseRunner
SOAPUI test is failing [[Script Assertion] assert(responseContent.contains("queue:")) | | | false ?%?A@0?S?
if noticed responsecontent is not in readable format when executed from java code. Need help on this as i need to run soaupui tests from java