Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding test to test execution in Jira using Jira rest api programatically in java

Bindhu November 11, 2019

How to add test case or test to Test execution in Jira using Jira rest api programatically in java? I searched in many sites not able to find an answer Can anyone please help me out?

1 answer

0 votes
Derek Fields _RightStar_
Community Champion
November 11, 2019

Jira doesn't not provide test cases or test support out-of-the-box. Are you using an add-on (e.g., Zephyr, XRay, T4J)?

Bindhu November 11, 2019

Hi Derek,

As per my knowledge Jira software has the option to create an issue of type Bug, Test, Test Execution. I want to do it programatically. Do we have any API like Jira Rest Api provided by to create an issue of type Test Execution and adding the test to test execurion?

Derek Fields _RightStar_
Community Champion
November 11, 2019

You can create an Issue with an Issue Type of Test or Bug or Test Execution. These are just issue types and have no built in support for actual testing. They are issue types the way Incident or Story or Task are issue types, with screens and workflows.

That said, there is a REST API to create an issue in Jira. It is different depending on whether you Cloud or Server. You can see the REST documentation at https://developer.atlassian.com/server or https://developer.atlassian.com/cloud depending on which you need.

Princess_Consuella April 15, 2020

Hi Bindhu, I have the same problem as you and I found this documentation very helpful https://confluence.xpand-it.com/display/public/XRAY/Test+Executions+-+REST but still i didn't know how to use it.

It's confusing the request to view the tests of a test execution is the same as the request to add a test set to a test execution. Also where do I put the test key that I want to add to the test execution

Suggest an answer

Log in or Sign up to answer