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.

路径参数

agent_idstring必需
The id of an agent. This is returned on agent creation.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
testslist of objects必需
List of tests to run on the agent
agent_config_overrideobject可选
Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.
branch_idstring可选
ID of the branch to run the tests on. If not provided, the tests will be run on the agent's main branch.
repeat_countinteger可选1-50默认为 1
Number of times to run each test. When greater than 1, results are grouped and summarized.

响应

Successful Response
idstring
test_runslist of objects
agent_idstring可选
branch_idstring可选
version_idstring可选
ran_against_draftboolean可选默认为 false
created_atinteger可选
folder_idstring可选
repeat_countinteger可选默认为 1
cancelledboolean可选默认为 false
bucketing_statusenum可选

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

允许的值:
result_groupslist of objects可选

错误

422
Agents Run Tests Request Unprocessable Entity Error