Junit Report Uploader

TestOps Junit Report Uploader

License

License

Categories

Categories

JUnit Unit Testing
GroupId

GroupId

com.katalon.testops
ArtifactId

ArtifactId

junit-report-uploader-plugin
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Junit Report Uploader
TestOps Junit Report Uploader
Project Organization

Project Organization

Katalon, LLC.

Download junit-report-uploader-plugin

How to add to project

<plugin>
    <groupId>com.katalon.testops</groupId>
    <artifactId>junit-report-uploader-plugin</artifactId>
    <version>1.0.2</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.10
org.apache.maven : maven-plugin-api jar 3.6.3
org.apache.maven : maven-core jar 3.6.3
com.katalon.testops : common jar 1.0.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0

Project Modules

There are no modules declared in this project.

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

  1. 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> to surefile's configuration.

  1. Specify testops.apiKey and testops.projectId properties in mvn test command:
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
com.katalon.testops

Katalon Studio

Katalon Studio: Best automated testing tool for Web, Mobile, & API testing. NOTE: Sample projects have been moved to https://github.com/katalon-studio-samples.

Versions

Version
1.0.2
1.0.1-2
1.0.1-1
1.0.1
1.0.0