/
Running test listener with SoapUI
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
Related content
Using Java Agents - Running Tests
Using Java Agents - Running Tests
More like this
Using Java Agents - Installing the Coverage Listener as a JVM Java Agent
Using Java Agents - Installing the Coverage Listener as a JVM Java Agent
More like this
Running Tests (Only) using Sealights Maven plugin
Running Tests (Only) using Sealights Maven plugin
More like this
Running Tests with unittest, unittest2, pytest, nose or behave
Running Tests with unittest, unittest2, pytest, nose or behave
More like this
Running Tests (Only) using SeaLights Gradle plugin (JSON file)
Running Tests (Only) using SeaLights Gradle plugin (JSON file)
More like this
Running Tests without a supported framework
Running Tests without a supported framework
More like this