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.

Parámetros de ruta

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

Encabezados

xi-api-keystringOpcional

Solicitud

This endpoint expects an object.
testslist of objectsRequerido
List of tests to run on the agent
agent_config_overrideobjectOpcional
Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.
branch_idstringOpcional
ID of the branch to run the tests on. If not provided, the tests will be run on the agent's main branch.
repeat_countintegerOpcional1-50Valor predeterminado: 1
Number of times to run each test. When greater than 1, results are grouped and summarized.

Respuesta

Successful Response
idstring
test_runslist of objects
agent_idstringOpcional
branch_idstringOpcional
version_idstringOpcional
ran_against_draftbooleanOpcionalValor predeterminado: false
created_atintegerOpcional
folder_idstringOpcional
repeat_countintegerOpcionalValor predeterminado: 1
bucketing_statusenumOpcional

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

Valores permitidos:
result_groupslist of objectsOpcional

Errores

422
Agents Run Tests Request Unprocessable Entity Error