Forum Discussion

tomericcco's avatar
14 years ago

Getting soapUI reports into Jenkins

Hi,
I'm using soapUI (not Pro) in order to test my application's REST API.
I want to generate a Jenkins job that will collect soapUI's report and show it in a nice form.

I found out that I have to use maven-surefire-report-plugin in order to get nice reports.
Right now I can't manage to do so. Here is the contents of the plugin in my pom.xml:


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<outputDirectory>target</outputDirectory>
<reportsDirectories>
<reportsDirectories>target</reportsDirectories>
</reportsDirectories>
</configuration>
</plugin>


And this is the content of maven-soapui-plugin:


<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>4.0.0</version>
<configuration>
<junitReport>true</junitReport>
<projectFile>RestAPIsTests.xml</projectFile>
<host>tlvd60204829a.dhcp.tlv.sap.corp:8080</host>
<outputFolder>target</outputFolder>
<testFailIgnore>true</testFailIgnore>
</configuration>
</plugin>


Can someone find out what is wrong here?

Thanks,
Tommy
  • tomericcco wrote:


    And this is the content of maven-soapui-plugin:


    <plugin>
    <groupId>eviware</groupId>
    <artifactId>maven-soapui-plugin</artifactId>
    <version>4.0.0</version>
    <configuration>
    <junitReport>true</junitReport>
    <projectFile>RestAPIsTests.xml</projectFile>
    <host>tlvd60204829a.dhcp.tlv.sap.corp:8080</host>
    <outputFolder>target</outputFolder>
    <testFailIgnore>true</testFailIgnore>
    </configuration>
    </plugin>



    Please try by changing the target value with the directory path where the reports need to be saved by soapUI and mention the same path in Jenkins to read the reports. i.e. <outputFolder>target</outputFolder> to <outputFolder>C:/soapUI/reports</outputFolder>

    Regards,
    Rohit Shingalapur
    http://rohit-developerscorner.blogspot.com
  • Yep, this solution worked for me. Thank you very much. The reports that I get are very sparse looking though. Just success/fail without any additional detail such as system properties or console output. Am I missing something here?
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    I don't think you missed anything.
    The junit xml file generated by soapui do not contains a lot of information. Check them to confirm this
  • I am noticing the report gives information on Test Suite name, Test Case name, but lacks any information on each "test case step" and "each individual assertion". Is it possible to get this infrormation into the report?