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
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