Maven plugin to create test runs on Testrails

Simple Maven plugin to create and close test runs on Testrail (http://www.gurock.com/testrail)

License

License

Categories

Categories

IDE Development Tools Maven Build Tools
GroupId

GroupId

io.github.martinschneider
ArtifactId

ArtifactId

testrail-maven-plugin
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven plugin to create test runs on Testrails
Simple Maven plugin to create and close test runs on Testrail (http://www.gurock.com/testrail)
Source Code Management

Source Code Management

https://github.com/martinschneider/testrail-maven-plugin

Download testrail-maven-plugin

How to add to project

<plugin>
    <groupId>io.github.martinschneider</groupId>
    <artifactId>testrail-maven-plugin</artifactId>
    <version>1.1</version>
</plugin>

Dependencies

compile (8)

Group / Artifact Type Version
com.codepine.api : testrail-api-java-client jar 2.0.0
org.slf4j : slf4j-api jar 1.7.25
org.slf4j : slf4j-log4j12 jar 1.7.25
org.apache.maven : maven-plugin-api jar 3.5.3
org.apache.maven : maven-project jar 3.0-alpha-2
javax.xml.bind : jaxb-api jar 2.2.11
com.sun.xml.bind : jaxb-core jar 2.2.11
com.sun.xml.bind : jaxb-impl jar 2.2.11

provided (1)

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

Project Modules

There are no modules declared in this project.

Build status Buy me a coffee

testrail-maven-plugin

This plugin allows creating and closing testruns on a Testrail project. It can be used as a wrapper around the execution of automated tests which will update the created testrun.

Configuration

<?xml version="1.0" encoding="UTF-8"?>
<build>
  <plugins>
    <plugin>
      <groupId>io.github.martinschneider</groupId>
      <artifactId>testrail-maven-plugin</artifactId>
      <version>1.1</version>
      <configuration>
        <url>http://demo.testrail.io</url>
        <username>user</username>
        <password>pw</password>
      </configuration>
      <executions>
        <execution>
          <id>testrail-create</id>
          <phase>initialize</phase>
          <goals>
            <goal>create-run</goal>
          </goals>
          <configuration>
            <projectId>${projectId}</projectId>
            <suiteId>${suiteId}</suiteId>
            <planId>${planId}</planId>
            <testRunName>${testRunName}</testRunName>
          </configuration>
        </execution>
        <execution>
          <id>testrail-close</id>
          <phase>verify</phase>
          <goals>
            <goal>complete-run</goal>
          </goals>
          <configuration>
            <runId>${runId}</runId>
          </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

Usage

mvn verify -DprojectId=1 -DsuiteId=2

This will create a testrun (in the project with id 1 under the test suite with id 2) and set its id as a parameter for subsequent Maven plugins (in the initialize phase of the Maven lifecycle). For example, you can use this to update the test run with the results of your test executions (in the test phase). Finally (in the verify phase), the test run is closed.

Contact

Martin Schneider, [email protected]

Buy me a coffee

Versions

Version
1.1
1.0