Test Run API (1.0.0)

Download OpenAPI specification:Download

Create a new (empty) run

Creates a new test run in Testomat.io, which can be used to report the results of multiple tests. Returns a unique ID for the run.

Authorizations:
apiKey
Request Body schema: application/json
title
string

The title of the test run

tags
Array of strings

An array of tags to associate with the test run

env
string

The environment the test run was executed in

group_title
string

Add a run to rungroup matching this group by its title. If rungroup does not exist, it will be created.

parallel
boolean

Whether to create a parallel run

Responses

Request samples

Content type
application/json
{
  • "title": "My Test Run",
  • "env": "production",
  • "group_title": "Release 1.0",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "uid": "string",
  • "url": "string"
}

Update or finish existing run

Updates an existing test run in Testomat.io, which can be used to report the results of multiple tests. Requires a unique ID for the test run.

Authorizations:
apiKey
path Parameters
runId
required
string

The unique ID of the test run

query Parameters
shared_run
required
boolean

Should be 'true' if multiple test executions are running in parallel and need to be reported to the same run

Request Body schema: application/json
status_event
string (RunStatusEvent)
Enum: "pass" "fail" "finish" "pass_parallel" "fail_parallel" "finish_parallel"

The final status of the run. Suffix _parallel and marks that only one part of this run has finished. To finish parallel run, send additional request with status=finish. Set status explicitly with pass or fail statuses or use finish status to calculate final status from test run results.

duration
number

The duration of the run in seconds

create_tests
boolean

Whether to create new tests or update existing ones

tests_count
integer

The total number of tests to be run

passed_count
integer

The number of tests that passed

failed_count
integer

The number of tests that failed

skipped_count
integer

The number of tests that were skipped

Array of objects (TestData)

The details of each test

Responses

Request samples

Content type
application/json
{
  • "status_event": "finish",
  • "duration": 25.5,
  • "tests_count": 10,
  • "passed_count": 8,
  • "failed_count": 2
}

Send test results for a test run

Authorizations:
apiKey
path Parameters
runId
required
string

The ID of the test run to report results for

Request Body schema: application/json

The test data to report

status
string (TestStatus)
Enum: "passed" "failed" "skipped"
rid
string

Unique identifier of test report (if the test is reported several times)

title
string

The title of the test

suite_title
string

The title of the test suite

suite_id
string

The ID of the test suite

test_id
string

The ID of the test

message
string

A message describing the error

stack
string

A stack trace for the error

run_time
number

The time it took to execute the test, in seconds

example
object

An example associated with the test

artifacts
Array of strings

An array of URLs for uploaded artifacts associated with the test

substatus
string

Optional substatus of the test

Array of objects or objects or objects (LinkObject)

An array of link objects that can be assigned to the test case. Supports test links and labels

Array of objects (Step)

The steps taken during the test

code
string

The code executed during the test

meta
object

Additional metadata associated with the test

overwrite
boolean

Whether to overwrite previous status to avoid retry counters. Defaults to false

Responses

Request samples

Content type
application/json
{
  • "title": "Should login successfully",
  • "status": "passed",
  • "suite_title": "Authentication Tests",
  • "test_id": "@Ta0b0c0d0",
  • "run_time": 0.5
}