cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate Single Page report when running TestCaseRunner from maven plugin

Occasional Contributor

How to generate Single Page report when running TestCaseRunner from maven plugin

I have a question regarding the TestCaseRunner:
I was running TestCases with testrunner.bat giving these parameters: -R"JUnit-Style HTML Report" -F"Single Page (Print)"
This was producing a single HTML file containg all information needed. This single HTML file I could then easily send via email.
Now I switched from running testrunner.bat to running the TestCaseRunner from soapui-pro-maven-plugin with following parameters:

   <build>
      <plugins>            
         <plugin>
    <groupId>com.smartbear.soapui</groupId>
    <artifactId>soapui-pro-maven-plugin</artifactId>
    <version>5.1.2</version>
            <executions>
                <execution>
                  <id>SOAPUITestSuite_AIO</id>
                  <goals>
                     <goal>test</goal>
                  </goals>
                  <phase>test</phase>           
               </execution>
            </executions>                       
            <configuration>
               <projectFile>../ITSM-TestSuite-soapui-project.xml</projectFile>
    <testSuite>TestSuite-Incident-AIO</testSuite>
    <testCase>TestCase-Incident-AIO-Location</testCase>
                   <outputFolder>${basedir}/../reports</outputFolder>
<reportName>JUnit-Style HTML Report</reportName>
<reportFormat>Single Page (Print)</reportFormat>
            </configuration>
         </plugin>   
      </plugins>
   </build>          

But unfortunately this won’t generate the single HTML file but the frame based multi-page report in HTML, which I’m not able to send via email as easily.

Could you please check and let me know how to create the single-page HTML report when running TestCases from soapui-pro-maven-plugin.

Many thanks in advance.

12 REPLIES 12
Super Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

Tags (2)
Super Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

And about the "the frame based multi-page report in HTML" it is always generated by soapui.

See https://github.com/redfish4ktc/maven-soapui-extension-plugin/issues/45 for alternative

Occasional Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

Thanks for the clarification.

 

So the Single Page Report won't work anymore then?

Super Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

Hi

the report should be generated if you add the following in your soapui plugin configuration (taken from: http://forum.soapui.org/viewtopic.php?f=2&t=3142&p=11355)

 

<soapuiProperties>
      <property>
        <name>soapui.home</name>
        <value>/home/robert/eviware/soapUI-Pro-3.5-beta2/bin</value> <- here goes where you installed sopaui plus bin dir
      </property>
</soapuiProperties>

 

Occasional Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

Hi

 

Yes a report is generated.

But this report consists of multiple files. I don't want multiple files.

What I want is 1 (one) single html file which includes everything (styles, script, data).

Super Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

Hi,

when I said "the report should be generated" i meant the single page junit html report

 

have you tried to modify the plugin configuration?  have you tried with another report name/format?

Occasional Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

Hi,

 

I tried to play around with the plugin configuration. I tried reportName=Project Report and reportFormat=PDF, which again generated the multi page HTML report.

 

POM:

 

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
 
   <name>SOAPUI TestSuite SLA</name>
   <groupId>test</groupId>
   <artifactId>soapui.testsuite.test</artifactId>
   <version>1.0-SNAPSHOT</version>
   <packaging>jar</packaging>
   <description>Continuous soapUI test integration</description>

   <build>
      <plugins>            
         <plugin>
            <groupId>com.smartbear.soapui</groupId>
            <artifactId>soapui-pro-maven-plugin</artifactId>
            <version>5.1.2</version>
            <executions>
                <execution>
                  <goals>
                     <goal>test</goal>
                  </goals>
                  <phase>test</phase>           
               </execution>
            </executions>                       
            <configuration>
               <projectFile>../ITSM-TestSuite-soapui-project.xml</projectFile>
               <testSuite>TestSuite-Incident-AIO</testSuite>
               <testCase>TestCase-Incident-AIO-Location</testCase>
               <outputFolder>${basedir}/../reports</outputFolder>
               <!--outputFolder>${basedir}/../reports</outputFolder-->
               <!--reportName>JUnit-Style HTML Report</reportName>
               <reportFormat>Single Page (Print)</reportFormat-->
               <reportName>Project Report</reportName>
               <reportFormat>PDF</reportFormat>
                <junitReport>true</junitReport>
               <!--projectProperties>
               </projectProperties-->
    <soapuiProperties>
      <property>
        <name>soapui.properties</name>
        <value>soapui.properties</value>
      </property>
      <property>
        <name>soapui.home</name>
        <value>D:/Admin/Tools/SoapUI-Pro-5.1.2/bin</value>
      </property>
      <property>
        <name>soapui.ext.libraries</name>
        <value>D:/Admin/Tools/SoapUI-Pro-5.1.2/bin/ext</value>
      </property>
      <property>
        <name>soapui.ext.listeners</name>
        <value>D:/Admin/Tools/SoapUI-Pro-5.1.2/bin/listeners</value>
      </property>
      <property>
        <name>soapui.ext.actions</name>
        <value>D:/Admin/Tools/SoapUI-Pro-5.1.2/bin/actions</value>
      </property>
    </soapuiProperties>
            </configuration>
         </plugin>   
    </plugins>
      </build>
      
</project>

 

Console log:

 

[INFO] --- soapui-pro-maven-plugin:5.1.2:test (default) @ soapui.testsuite.test ---

SoapUI Pro 5.1.2 Maven2 TestCase Runner
Setting soapui.ext.libraries value D:/Admin/Tools/SoapUI-Pro-5.1.2/bin/ext
Setting soapui.properties value soapui.properties
Setting soapui.ext.listeners value D:/Admin/Tools/SoapUI-Pro-5.1.2/bin/listeners
Setting soapui.home value D:/Admin/Tools/SoapUI-Pro-5.1.2/bin
Setting soapui.ext.actions value D:/Admin/Tools/SoapUI-Pro-5.1.2/bin/actions
10:57:38,385 INFO  [SoapUI] Adding [D:\Admin\Tools\SoapUI-Pro-5.1.2\bin\ext\ojdbc6.jar] to extensions classpath
10:57:38,386 INFO  [DefaultSoapUICore] Creating new settings at [C:\Windows\system32\config\systemprofile\soapui-settings.xml]

10:57:41,257 WARN  [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [D:\Admin\Tools\ITSM-TestSuite\pom\scripts]
10:57:41,259 INFO  [DefaultSoapUICore] Adding listeners from [D:\Admin\Tools\SoapUI-Pro-5.1.2\bin\listeners\demo-listeners.xml]

10:57:43,350 INFO  [WsdlProject] Loaded project from [file:/D:/Admin/Tools/ITSM-TestSuite/pom/../ITSM-TestSuite-soapui-project.xml]
10:57:43,645 WARN  [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [D:\Admin\Tools\ITSM-TestSuite\pom\scripts]

10:57:45,871 INFO  [SoapUIProTestCaseRunner] Running SoapUI tests in project [FROX_Test]

10:57:45,984 INFO  [SoapUIProTestCaseRunner] Running TestCase [TestCase-Incident-AIO-Location]

...

...

...

10:58:08,686 INFO  [SoapUIProTestCaseRunner] Finished running SoapUI testcase [TestCase-Incident-AIO-Location], time taken: 21166ms, status: FINISHED
10:58:08,686 INFO  [SoapUIProTestCaseRunner] TestCase [TestCase-Incident-AIO-Location] finished with status [FINISHED] in 21166ms

10:58:09,584 INFO  [SoapUIProTestCaseRunner] Created report at file:/D:/Admin/Tools/ITSM-TestSuite/pom/../reports/index.html

Super Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

Strange

I do not have a working soapui, so I cannot test it right now

but I am sure it works on previous versions (4.6.x and maybe 5.0)

Occasional Contributor

Re: How to generate Single Page report when running TestCaseRunner from maven plugin

Yes its very strange.

But I got an official statement from support:

 

>>Yes, because Single page report is not available for TestRunner and maven. It is only available for UI. We have a feature request SOAP-629.<<

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors