Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

TestNG Result - exclude test cases being cretaed on JIRA with other annotations than @Test


Environment: JIRA +Xray

Automation code: Java + TestNG

In the automation code I have a class with multiple methods with different TestNG annotations. i.e. @test, @AfterSuite,@BeforeSuite.

When testng-result is generated its showing result for all methods irrespective of the annotation. And when exported the result using REST API to JIRA,  new test cases are created for each method i.e. for beforeSuite, AfterSuite etc.

Question: Is there a way to control the export to create new Generic test cases on JIRA only with annotation as test in the automation code and exclude creating test cases for other methods.

Below is sample code:

@BeforeSuite <-- want result of this in testng-results.xls, but don't want new test case to be created in JIRA--!>
public void setUp_Xray() throws Exception {


@AfterSuite <-- want result of this in testng-results.xls, but don't want new test case to be created in JIRA--!>
public void tearDown_Xray() throws Exception {

@Xray(labels = "To be created New :XRay Test1")
public static void SumOfTwoIntegers_Xray()

int addition= SimpleCalc.sum(10, 5);
System.out.println("Sum of a and b is : "+ addition);
System.out.println("Test to be crated automatically : ");


@Xray(test = "XRAYAJ-3", labels = "Existing XRay Test")
public static void DivisionOfTwoIntegers_XRay()

int divide= SimpleCalc.divide(10, 5);
System.out.println("divide of a and b is : "+ divide);


1 comment

José Domingues [Xray]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 14, 2018

Hi Akshay,

At the moment this is not supported, but we have the following Story:

After this is implemented, Tests with the is-config flag set to "true" will be ignored.


Best regards,

Xpand Add-ons Team


Log in or Sign up to comment
AUG Leaders

Atlassian Community Events