Re-run a test run

This endpoint re-runs a test run with the given test run id. Provide the test run id value in the test run object that was returned from your previous request, and TestOps will re-run the test run.

📘

You can only re-run test runs that were originally scheduled with the TestOps scheduler interface.

Request

This request uses the POST method, which is used to initiate a re-run of a previous test run or execution via the specified resource.

For basic authorization, replace this with your actual username and password (or API key) in the header request in the username:password or username:api_key format. Your user creds are combined to form a Base64 encoded string.

The request data is provided as a JSON object. You need to provide the following required query parameters:

  • id: the alphanumeric ID of the test run.

Response

If authorized, the API response provides information about the new execution or re-run request.

Refer to the following table about the response body's parameters:

PropertyTypeDescription
statusstringStatus of the test run: PASSED, FAILED ERROR, INCOMPLETE, RUNNING, SKIPPED NOT_RUN.
idintegerThe unique identifier of the new test run or execution.
projectProject objectThe project object associated with the test run.
webUrlstringThe URL of of test run detail page.

Try it!

  1. Enter the test run ID below.
  2. Select the language in Language.
  3. Enter your user name or API credentials.
  4. Review your API call and click Try it!
Language
Credentials
Basic
base64
:
Click Try It! to start a request and see the response here!