ContributionsMost RecentMost LikesSolutionsRe: set soapUI 5.7.0 log files using maven Thanks to JHunt and nmrao, I finally found a solution, with the help of those 2 persons: 1- Copied the soapui-log4j.xml for SoapUI 5.7.0 GUI to a folder of my choice. 2- Added 2 parameters to the maven call: -Dsoapui.logroot=results -Dsoapui.log4j.config=ext/soapui-log4j.xml So now it takes the correct log4j and the logs are placed in the results folder. Re: set soapUI 5.7.0 log files using maven @JHunt, Thanks, I will try that, I'm just wondering, since the VM on which soapUI is run from maven doesn't have SoapUI installed, should I create the soapui-log4j.xml file in a 'fake' %SOAPUI_HOME%/bin ? Re: set soapUI 5.7.0 log files using maven nmrao, Thanks, I will try that, I'm just wondering, since the VM on which soapUI is run from maven doesn't have SoapUI installed, should I create the soapui-log4j.xml file in a 'fake' %SOAPUI_HOME%/bin ? set soapUI 5.7.0 log files using maven We recently switch version of soapUI from 5.5.0 to 5.7.0 for running automated scripts using maven. With 5.5.0, we could find the soapUI log files (soapui-errors.log, global-groovy.log and soapui.log) in the same folder where the tests were run. Now with 5.7.0, those files are created under the "C:\Users\[username]\.soapuios\logs" This is really not what we want, we have many scripts running in parallel and those logs can sometimes be really hard to read. We tried this solution in the maven pom file, but it does not seems to work: ... <properties> <thx.environment>AWSQA</thx.environment> <project.directory>QA/soapui/thxqa-sts/</project.directory> </properties> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.7.0</version> <configuration> <junitReport>true</junitReport> <exportAll>true</exportAll> <testFailIgnore>true</testFailIgnore> <soapuiProperties> <property> <name>soapui.logroot</name> <value>${project.directory}/soapui-logs/</value> </property> </soapuiProperties> </configuration> ... Anyone has a way to set back the log files like they were with soapui-maven 5.5.0 ? SolvedRe: How to know if a groovy step PASSED or FAILED ? Thanks very much, it is just too super ! I first did it in Test case TearDown, and it worked wonderfully... After when I changed it for TestSuite, it was even better :-) Much appreciated help. How to know if a groovy step PASSED or FAILED ? Hi, I have some test cases with REST and Groovy steps, sometimes the Groovy steps fails (a red star icon). At the end of the test cases, I have a groovy script that creates a report with the passed or failed test. For the REST services it goes well, I can check if the assertions passed or failed with something like: "testStep.getAssertionAt(j).getStatus().toString()". But so far, I can't find a way to check the status of a previously ran Groovy steps. Those test case are made to run at night, and I would like to just have to look at the report in the morning. Actually, I found a way, which is not very 'nice', with the testStep.getIcon(), if it finishes with 'failed_groovy_step.png' it means that the test failed... But there is surely a better way to know the status of a groovy script ? Thanks for help. Jan SolvedRe: getProperty("rawRequest") does not return the 'real' request sent The only thing I get is an Information pop-up with Script-result: [] :smileysad: I don't know if this helps, but "log.info testRunner" returns: INFO:com.eviware.soapui.impl.wsdl.panels.support.MockTestRunner@443cad2a Re: getProperty("rawRequest") does not return the 'real' request sent Hi Karel, thank you very much for your help. I tried to apply your last solution, but I can't kind a get to understand it... Would you be so helpful and tell me how I could use testRunner.getResults() collection in the context of my example ? Regards, Jan Re: getProperty("rawRequest") does not return the 'real' request sent Thanks Karel, This is finally what I did, but I cannot get it out of my head that this is a bug :-) Why say that the getProperty returns the value of the rawRequest when it is not ? Regards, Jan getProperty("rawRequest") does not return the 'real' request sent I'm using a REST request (POST) that look like this: <ns1:Bundle> <ns1:id value="${=UUID.randomUUID().toString()}"/> <ns1:timestamp value="${=new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSS-05:00").format(new Date())}"/> </ns1:Bundle> When I click on the Raw from the Test Step I see this: <ns1:Bundle> <ns1:id value="bd1fc767-6edb-43fd-9482-c265492e1004"/> <ns1:timestamp value="2017-02-17T12:04:19.0915-05:00"/> </ns1:Bundle> I need those two values for another message, but whatever method I use for instance this Groovy: def rawReq = testRunner.testCase.testSteps['test'].testRequest.response.requestContent def rawReq2 = testRunner.testCase.testSteps['test'].getProperty("rawRequest").getValue() log.info rawReq log.info rawReq2 I always get another UUID and another timestamp than the one in the 'real' raw message that was sent ! <ns1:Bundle> <ns1:id value="2345d4a6-306f-4f7b-95c8-c3c3e93b90ad"/> <ns1:timestamp value="2017-02-17T12:04:19.0953-05:00"/> </ns1:Bundle> What is the problem ? It looks like the parameter are re-evaluate when running the Groovy script... Does anyone have a solution ? Thanks Jan Potters Solved