Automation Test Case REST API

Test case creation

Path: {jira_base_url}/rest/tm/1.0/automation/testcase

POST

Creates a copy of Test Case from the Library in selected Test Run(id was returned by /rest/tm/1.0/automation/testrun)

Acceptable request representations : application/json

Request example:

{

"projectKey":"TST",

"testRunId":7,

"originalTestCaseKey":"TST-7",

"preserveFolderStructure":"true"

"executionStatus":"ERR",

"executionMessage":"Error processing test for ..."

}

Response representations : application/json

Succesfull response code 201

Response example :

{

"testCaseKey":"TST-10",

"testCaseId":10009

}

Error response codes 403,412,500

Response example :

{

"errorMessage":"Test Run with id 12 wasn't create as Automation Test Run"

}