test-executions Collection
Description
Creates a test execution.
URL
/qcbin/rest/domains/{domain/projects/{project}/test-executions
HTTP Methods
POST: Creates a test execution
Media Type | GET
| PUT
| DELETE
| POST
|
---|---|---|---|---|
application/xml | - | - | - | |
application/json | - | - | - | - |
Header
For the following authentication cookies required for this request, see Sign-in.
- ALM_USER
- LWSSO_COOKIE_KEY
- QCSession
- XSRF-TOKEN
Input
To create a test execution, perform a POST on the test execution collection, pass an XML string that contains at least the required field "external-id".
The "external-type" field only accepts either of the two values: "TestSet" and "TestInstance". If you leave the field empty, then a test execution will be created for a test set.
Here is an example of the request body.
<Entity Type="test-execution"> <Fields> <Field Name="external-id"> <Value>2</Value> </Field> <Field Name="external-type"> <Value>TestSet</Value> </Field> </Fields> </Entity>
Returns
One of the HTTP Return Codes.
An XML string compliant with the Entities Collection Schema.
Examples
Create a Test Execution Example
See Also