Katalon TestOps JUnit Plugin
This is the Maven plugin to automatically upload JUnit reports to Katalon TestOps.
Please refer to https://github.com/katalon-studio-samples/junit-report-uploader-sample for a sample project.
Usage
- Add the following plugins to build configuration in
pom.xml:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>com.katalon.testops</groupId>
<artifactId>junit-report-uploader-plugin</artifactId>
<version>1.0.1-2</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>junit-uploader</goal>
</goals>
<configuration>
<apiKey>${testops.apiKey}</apiKey>
<projectId>${testops.projectId}</apiKey>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Don't forget to include
<testFailureIgnore>true</testFailureIgnore>tosurefile's configuration.
- Specify
testops.apiKeyandtestops.projectIdproperties inmvn testcommand:
mvn test -Dtestops.apiKey=<Your Katalon TestOps API Key> -Dtestops.projectId=<Katalon TestOps Project Id>
Configuration
The plugin can be configured by adding the <configuration> tag in pom.xml:
<plugin>
<groupId>com.katalon.testops</groupId>
<artifactId>junit-report-uploader-plugin</artifactId>
<version>1.0.1-1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>junit-uploader</goal>
</goals>
<configuration>
<apiKey>${testops.apiKey}</apiKey>
<projectId>${testops.projectId}</apiKey>
</configuration>
</execution>
</executions>
</plugin>
Supported options:
| Mandatory Option | Description |
|---|---|
| apiKey | The API Key used to authenticate and upload reports to the Katalon TestOps. Learn more. |
| projectId | The project ID of the Katalon TestOps Project to submit the JUnit reports to. |
| Optional Option | Description |
|---|---|
| serverUrl | For TestOps on-premises |
| isSilent | Do not stop the mvn command upon uploading failure |
| proxyExceptionList | |
| proxyOption | NO_PROXY, USE_SYSTEM, MANUAL_CONFIG |
| proxyServerAddress | |
| proxyServerPort | |
| proxyServerType | HTTP, HTTPS, SOCKS |
| proxyUsername | |
| proxyPassword | |
| reportPath |