Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.32 KB

File metadata and controls

44 lines (30 loc) · 1.32 KB

Addon-Jira

This add-on supports the capbility to skip test if there is an open bug related to it.

How does it work?

In order to connect between the test and Jira bug the user should add tag to the test.
The tag name is @JIRA:{BUG_ID}.
If the Jira tag added befroe the execution the frawork will execute it olny if the Jia bug been closed.

How to use it ?

Install

Add the following dependency to your .pom file
<dependency>
<groupId>com.quantum.addons</groupId>
<artifactId>jira</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

Config

Add your Jira account data to the application.properties
jiraWeb = https://MYJIRA.atlassian.net/
jirauser= myuser
jirapassword = password

Add this listner to the testNG.xml file/
<listener class-name="com.quantum.jiraAPI.jiraListener"/>

Example

@Test(description="CI", groups={"@ci","@JIRA:TEST-2"})
public void testJira() {
getDriver().get("http://nxc.co.il/stab.php");
getDriver().findElement("restet").waitForPresent(30000);
.
The test code
.
.