Forum Discussion

JanPot's avatar
JanPot
Occasional Contributor
3 years ago
Solved

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 ?

  • 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.

6 Replies

  • JanPot's avatar
    JanPot
    Occasional Contributor

    @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 ?