Run tests on agent

Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.

Paramètres de chemin

agent_idstringRequis
The id of an agent. This is returned on agent creation.

En-têtes

xi-api-keystringOptionnel

Requête

This endpoint expects an object.
testslist of objectsRequis
List of tests to run on the agent
agent_config_overrideobjectOptionnel
Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.
branch_idstringOptionnel
ID of the branch to run the tests on. If not provided, the tests will be run on the agent's main branch.
repeat_countintegerOptionnel1-50Par défaut 1
Number of times to run each test. When greater than 1, results are grouped and summarized.

Réponse

Successful Response
idstring
test_runslist of objects
agent_idstringOptionnel
branch_idstringOptionnel
version_idstringOptionnel
ran_against_draftbooleanOptionnelPar défaut false
created_atintegerOptionnel
folder_idstringOptionnel
repeat_countintegerOptionnelPar défaut 1
cancelledbooleanOptionnelPar défaut false
bucketing_statusenumOptionnel

None when repeat_count==1 (no bucketing). Otherwise tracks bucketing lifecycle.

Valeurs autorisées:
result_groupslist of objectsOptionnel

Erreurs

422
Agents Run Tests Request Unprocessable Entity Error