Git Product home page Git Product logo

tm4j-hooks's Introduction

tm4j-hooks Download

Adapter for test execution results exports to Test Management for Jira (TM4J) Server.
API documentation: Test Management for Jira Server API (v1)

TestNG 6.x and 7.x

testng.xml

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="TM4J Test Suite" verbose="1" >

    <parameter name="tm4jProjectKey" value="AQA"/>
    
    <listeners>
        <listener class-name="com.github.letsrokk.tm4j.testng.TM4JTestResultListerner"/>
    </listeners>
    
    <test name="Example Test" >
        <classes>
            <class name="com.github.letsrokk.tm4j.tests.ConfigurationExampleTest" />
        </classes>
    </test>

</suite>

TM4J Test Case ID annotations for tests

Test methods should be either annotated by @TestCase("PROJECT-T1") or @TmsLink("PROJECT-T1") (provided by Allure Framework)

package com.github.letsrokk.tm4j.tests;

import com.github.letsrokk.tm4j.annotation.TestCase;
import org.testng.annotations.Test;

@Test(singleThreaded = true)
public class ConfigurationExampleTest {

    @TestCase("AQA-T1")
    @Test
    public void testExecutionWithPassStatusTest() {
       // do nothing
    }

}

Parameters

Jira URL, username and token can be set in one of 2 ways:

  • as System Property variable on test run
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version${maven-surefire-plugin.version}</version>
    <configuration>
        <testFailureIgnore>true</testFailureIgnore>
        <systemPropertyVariables>
            <TM4J_JIRA_URL>https://jira.example.org</ZAPI_JIRA_URL>
            <TM4J_JIRA_USERNAME>jirausername</ZAPI_JIRA_USERNAME>
            <TM4J_JIRA_PASSWORD>jirapassword</ZAPI_JIRA_PASSWORD>
        </systemPropertyVariables>
    </configuration>
</plugin>
  • or as Environment variables
export TM4J_JIRA_URL=https://jira.example.com/
export TM4J_JIRA_USERNAME=jirausername
export TM4J_JIRA_PASSWORD=jirapassword

Selecting Jira Project Version for Test Cycle

TBD

Examples

Test Cycle screen

tm4j-hooks's People

Contributors

letsrokk avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.