Reorder test cases in a test suite

PUT https://{{host}}/test-management/v3/functional/test-suites/:testSuiteId/test-cases/order

Reorders functional test cases in a test suite. The order of test cases applies when running a test for stateful test suites. You need to provide target order for all test cases included in a test suite. To check the current order of test cases, run the Get a test suite with child objects operation.

Request Params

KeyDatatypeRequiredDescription
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Request Body

{"0"=>{"order"=>1, "testCaseId"=>302}, "1"=>{"order"=>2, "testCaseId"=>301}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

[{"order":1,"testCaseId":302},{"order":2,"testCaseId":301}]