Forum Discussion
allegro
12 years agoNew Contributor
Hi guys,
soapui-maven-plugin works Ok for Linux and Windows.
The only thing which is confusing:
if TC fails the code below provides different output for Linux and Windows
The second observation is for SoapUI program itself, for Linux the UI doesn't show JSON body for REST request correctly on "Raw" tab.
The same, there is no JSON body over there after the request has been sent. ( there is no such issue for Windows)
soapui-maven-plugin works Ok for Linux and Windows.
The only thing which is confusing:
if TC fails the code below provides different output for Linux and Windows
for(result in testRunner.getResults()) {
try {
fos = new FileOutputStream(resultDirName + "/" +
testRunner.testCase.testSuite.name + ". " + result.testStep.label + '.txt', true );
pw = new PrintWriter( fos );
result.writeTo( pw ); //<-- for Linux there is no JSON body in output.
pw.close();
fos.close();
}
catch(e) {
log.error("An error occurred: " + e.toString());
}
The second observation is for SoapUI program itself, for Linux the UI doesn't show JSON body for REST request correctly on "Raw" tab.
The same, there is no JSON body over there after the request has been sent. ( there is no such issue for Windows)