Running test listener with SoapUI
In order to capture code coverage information from tests run with SoapUI, you need to run it with our test listener as a Java agent. The listener needs to be placed alongside the SoapUI installation and added to the JVP parameter using the -javaagent
parameter together with its required parameters.
Below, two samples of different options to run Sealights Test Listener with SoapUI
Command line
java -classpath <soapui.classpath> -javaagent:/path/to/sl-test-listener.jar -Dsl.tokenFile=/path/to/sltoken.txt -Dsl.buildSessionIdFile=buildSessionId.txt [-Dsl.labId=labID] -Dsl.testStage="Integration Tests" com.eviware.soapui.tools.SoapUITestCaseRunner <tests-configuration>
Maven
As SoapUI is run sometimes with Maven, then this can also be achieved by adding us as a javaagent in the exec-maven-plugin configuration
For example:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<argument>${soapui.classpath}</argument>
<argument>-javaagent:${testlistener.path}</argument>
<argument>-Dsl.log.toConsole=true</argument>
<argument>-Dsl.tokenFile=${tokenfile.path}</argument>
<argument>-Dsl.buildSessionId=${bsid}</argument>
<argument>-Dsl.labId=${labid}</argument>
<argument>-Dsl.testStage=Integration Tests</argument>
<argument>com.eviware.soapui.tools.SoapUITestCaseRunner</argument>
<argument>${tests-configuration}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
Sealights does not integrate with soapui-maven-plugin
See 'Java Command Reference - Installing test listener as Java Agent' for full parameter details