This add-on supports the capbility to skip test if there is an open bug related to it.
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.
Add the following dependency to your .pom file
<dependency>
<groupId>com.quantum.addons</groupId>
<artifactId>jira</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
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"/>
@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
.
.