Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titlePOST /rest/raven/1.0/api/testplan/{testPlanKey}/testexecution
Panel
borderColor#ccc
borderStylesolid

Associate test executions with the test plan. Return error messages, if there are any.

Request

PATH PARAMETERS
parametertypedescription

testPlanKey

String

- key of the test plan.

Example
addTestsToPlanBoolean

- option to associate or not the test execution tests to the test plan. If this option is empty in the JSON file, the config in the Xray miscellaneous will be used.

Code Block
titleExample Input
{
	"addTestsToPlan": false,
	"add": [
		"CALC-14",
		"CALC-29"
	],
	"remove": [
		"CALC-15",
		"CALC-50"
	]
}
Tip
titleExample Request
curl -H "Content-Type: application/json" -X POST -u admin:admin --data @example.json http://yourserver//rest/raven/1.0/api/testplan/TEST-123/testexecution

Responses

200 OK : text/plain : Successful. Returns error messages if there are any.

Code Block
titleExample Output
["Issue with key CALC-29 not found or is not of type Test Execution"]

400 BAD_REQUEST : text/plain : Returns the error.

401 UNAUTHORIZED : text/plain : The Xray for JIRA license is not valid.

500  INTERNAL SERVER ERROR : text/plain : An internal error occurred associating the test executions.

...