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.

Parametry ścieżki

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

Nagłówki

xi-api-keystringOpcjonalny

Żądanie

This endpoint expects an object.
testslist of objectsWymagany
List of tests to run on the agent
agent_config_overrideobjectOpcjonalny
Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.
branch_idstringOpcjonalny
ID of the branch to run the tests on. If not provided, the tests will be run on the agent's main branch.
repeat_countintegerOpcjonalny1-50Domyślnie 1
Number of times to run each test. When greater than 1, results are grouped and summarized.

Odpowiedź

Successful Response
idstring
test_runslist of objects
agent_idstringOpcjonalny
branch_idstringOpcjonalny
version_idstringOpcjonalny
ran_against_draftbooleanOpcjonalnyDomyślnie false
created_atintegerOpcjonalny
folder_idstringOpcjonalny
repeat_countintegerOpcjonalnyDomyślnie 1
cancelledbooleanOpcjonalnyDomyślnie false
bucketing_statusenumOpcjonalny

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

Dozwolone wartości:
result_groupslist of objectsOpcjonalny

Błędy

422
Agents Run Tests Request Unprocessable Entity Error