Import API (1.0.0)

Download OpenAPI specification:Download

Load tests

query Parameters
api_key
required
string

Testomat.io API key of a project, obtained from Settings/Project

Request Body schema: application/json

Import tests payload

framework
string

Name of a testing framework used (jest, cucumber, codeceptjs, etc).

language
string

Name of a programming language used (javascript, php, etc)

noempty
boolean

Remove empty suites after import

no-detach
boolean

Do not mark previously imported tests but missing on this import as detached

structure
boolean

If tests were organized in Testomat.io, re-organize them to match tests in the source code.

sync
boolean

Wait for all the tests to be uploaded and added

required
Array of objects (Test)

Responses

Request samples

Content type
application/json
{
  • "framework": "string",
  • "language": "string",
  • "noempty": true,
  • "no-detach": true,
  • "structure": true,
  • "sync": true,
  • "tests": [
    ]
}

Get test data

Returns the map of previously imported suites and tests to update IDs in the codebase.

query Parameters
api_key
required
string

Testomat.io API key of a project, obtained from Settings/Project

Responses

Response samples

Content type
application/json
{
  • "tests": {
    },
  • "suites": {
    }
}