Forums

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

How to add Test Cases to a Test Run using REST API

Lahiru Wijesinghe February 23, 2019

Hi Guys and Girls,

any one know to add test cases to a Test run using REST API.

 

/LahiruW

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 23, 2019

How are you handling test cases in Jira?

Natively, Jira has issues and those are not test-cases.  Some of us try to rig something up so that certain issues look like test cases, but most of us use Test Management Apps.

So the question is are you using a native setup, or one of the Test Management Apps?

If it's native, then you can just use the standard REST API and look at the issue types you've set up to look like test cases and runs.  If it's one of the Apps, you should check their docs for their REST API (we can't tell you anything without knowing which one it is)

Lahiru Wijesinghe February 25, 2019

Hi @Nic Brough -Adaptavist- ,

Am using /rest/api/2 URL to create / update tests.Hope its the native way.Noiw what i wanted is to add a Test case to a test run.

 

Thanks & Best Rgds

Lahiru

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 25, 2019

We cannot begin to answer that until we know how your tests are being represented in Jira.  We need to know how you have configured your native Jira to do it, or which Test Management App you have.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events