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.

Pfadparameter

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

Header

xi-api-keystringOptional

Anfrage

This endpoint expects an object.
testslist of objectsErforderlich
List of tests to run on the agent
agent_config_overrideobjectOptional
Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.
branch_idstringOptional
ID of the branch to run the tests on. If not provided, the tests will be run on the agent's main branch.
repeat_countintegerOptional1-50Standardwert ist 1
Number of times to run each test. When greater than 1, results are grouped and summarized.

Antwort

Successful Response
idstring
test_runslist of objects
agent_idstringOptional
branch_idstringOptional
version_idstringOptional
ran_against_draftbooleanOptionalStandardwert ist false
created_atintegerOptional
folder_idstringOptional
repeat_countintegerOptionalStandardwert ist 1
bucketing_statusenumOptional

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

Erlaubte Werte:
result_groupslist of objectsOptional

Fehler

422
Agents Run Tests Request Unprocessable Entity Error