AWS DevOpsエージェントを使用して、事前設定されたテストプロファイル(テスト設定)に基づいた自動リリーステスト(UI または API)を実行します。 次のような場合に使用: ユーザーが複数ステップのワークフロー(一連の処理手順)を検証したい、機能の動作を確認したい、問題の発生がないか確認したい、または API エンドポイント(データ取得の接続点)をテストしたい場合。 実行キーワード例: 「テストを実行」「UAT(ユーザー受け入れテスト)」「アプリをテスト」「テストプロファイル」「UI テスト」「API テスト」「自動テスト」「回帰テスト(機能劣化の確認)」「QA(品質保証)」「エンドツーエンドテスト(全工程の結合テスト)」「QA エージェントを実行」
Run automated release testing (UI or API) via the AWS DevOps Agent using a pre-configured test profile. Use when the user wants to validate multi-step workflows, verify features, check for regressions, or test API endpoints. Trigger words include run tests, UAT, test my app, test profile, UI test, API test, automated testing, regression test, QA, end-to-end test, run the QA agent.
AgentSpace ルーティング(SigV4 のみ): ツールリストに
list_agent_spacesが存在し、かつ今セッション中にマルチスペースオーケストレーションスキルがまだ呼び出されていない場合は、最初にそのスキルを呼び出して使用するagent_space_idを決定してください。その後、以下のすべてのツール呼び出しにagent_space_idを渡してください。Bearer トークン認証の場合はこの手順は不要です — トークンはすでに特定のスペースにスコープされています。
AWS DevOps Agent のリリーステストエージェントを通じて、クラウド上での自動リリーステストを実行します。 UIテスト(ブラウザベース)および APIテスト(OpenAPI スペックベース)に対応しています。 ターゲット URL、エージェントタイプ、ペルソナ、認証情報を定義した既存のテストプロファイルを使用します。
入力はテストプロファイルです — テストプロファイルにはターゲット URL、エージェントタイプ(UI または API)、テストペルソナ、認証情報がすでに含まれています。URL をユーザーに直接尋ねないでください。URL はテストプロファイル内で定義されています。
ki-12345 のような Knowledge Item ID)ワークフローを開始する前に、以下のパラメーターを必ず収集してください。すべて回答が得られるまでジョブ作成に進まないでください。
どのテストプロファイルを使用するかをユーザーに確認してください。テストプロファイルにはターゲット URL、エージェントタイプ(UI または API)、テストペルソナ、認証情報の設定がすでに含まれているため、これらを個別に収集する必要はありません。
注意: 既存のテストプロファイルは前提条件です。テストプロファイルは AWS DevOps Agent コンソールまたは API を使用して作成するものであり、このツールから作成することはできません。ユーザーがここで作成できるか尋ねた場合は、事前に作成済みである必要があることを伝えてください。
ユーザーがテストの焦点についてまだ言及していない場合は、次のように確認してください:
「特定のテスト要件やフォーカスエリアはありますか?なければ、フルの探索的テストを実行します。」
ユーザーの回答を待ってください。回答があった場合は test_requirement として使用します。不要またはスキップの場合は、そのまま進めてください。
重要: ジョブ作成に進む前に、ユーザーの回答を必ず待つこと。
利用可能な Agent Space を一覧表示します:
aws devops-agent list-agent-spaces --region us-east-1
リストをユーザーに提示し、使用する Agent Space を選択してもらいます。ユーザーが選択するまで次に進まないでください。 選択された agentSpaceId を以降のすべての呼び出しで SPACE_ID として使用します。
以下のツールが利用可能であることを確認します: aws_devops_agent__create_release_testing_job、aws_devops_agent__get_task、aws_devops_agent__list_journal_records、aws_devops_agent__get_release_ui_testing_report、aws_devops_agent__get_release_api_testing_report。
これらのツールは遅延ロード/遅延評価されません — ツールリストに表示されない場合は利用不可です。ToolSearch で検索しないでください。いずれかが不足している場合は、このセクションの残りのステップをスキップし、代わりに以下の「フォールバック(aws-mcp)」パスを使用してください。
aws_devops_agent__create_release_testing_job(
test_profile_id="ki-12345",
webhook_event_message="<任意のテスト要件>"
)
→ {"taskId": "...", "executionId": "...", "status": "started"}
レスポンスから taskId と executionId を記録します。
ステータスが IN_PROGRESS または終了状態に遷移するまで、30 秒ごとに aws_devops_agent__get_task(task_id=TASK_ID) を呼び出します。
IN_PROGRESS になったら、ループで進捗を監視します:
aws_devops_agent__list_journal_records(execution_id=EXEC_ID, order="ASC") を呼び出して新しい検出結果を取得する。next_token を使用して、次回以降のポーリングで新しいレコードのみを取得する。aws_devops_agent__get_task(task_id=TASK_ID) を定期的に確認し、終了状態(COMPLETED、FAILED、CANCELED、TIMED_OUT)になったら停止する。ジョブが終了状態に達したら:
COMPLETED の場合:
テストプロファイルのエージェントタイプ(UI または API)からレポートの種類を判断します。UI プロファイルの場合は aws_devops_agent__get_release_ui_testing_report(execution_id=EXEC_ID) を、API プロファイルの場合は aws_devops_agent__get_release_api_testing_report(execution_id=EXEC_ID) を呼び出します。
レポートの内容を以下の名前の Markdown ファイルに書き込みます:
release-testing-report-<YYYY-MM-DD-HHmmss>.md
ファイルパスを含めて、レポートが保存されたことをユーザーに通知します。
FAILED または TIMED_OUT の場合: エラー情報を提示し、次のステップを提案します。CANCELED の場合: ジョブがキャンセルされ、レポートが利用できないことをユーザーに通知します。aws_devops_agent__cancel_release_testing_job(task_id=TASK_ID)
FAILED に変わった場合は、ワークフローを停止してエラーを報告する。IN_PROGRESS に達しない場合は、cancel_release_testing_job を使用してキャンセルする。429 または ThrottlingException)が発生した場合は、30 秒待ってからリトライする。3 回リトライしても解消しない場合はユーザーに通知する。aws-devops-agent リモートサーバーが利用できない場合は、AWS CLI を直接使用します:
ユーザーに次のように伝えてください: 「リモートサーバーが利用できません — AWS API への直接フォールバックを使用します。」
利用可能な Agent Space を一覧表示します:
aws devops-agent list-agent-spaces --region us-east-1
リストをユーザーに提示し、使用する Agent Space を選択してもらいます。ユーザーが選択するまで次に進まないでください。 選択された agentSpaceId を以降のすべての呼び出しで SPACE_ID として使用します。
aws devops-agent create-backlog-task \
--agent-space-id SPACE_ID \
--task-type RELEASE_TESTING \
--title 'Release Testing' \
--priority MEDIUM \
--description '{\"testProfileId\": \"<PROFILE_ID>\", \"webhookEventMessage\": \"<REQUIREMENT>\"}' \
--region us-east-1
ユーザーがテスト要件を指定した場合は webhookEventMessage に含めます。指定がない場合はフィールドを省略するか空にしてください。
aws devops-agent get-backlog-task \
--agent-space-id SPACE_ID \
--task-id TASK_ID \
--region us-east-1
ステータスが IN_PROGRESS または終了状態(COMPLETED、FAILED、CANCELED、TIMED_OUT)に遷移するまで、30 秒ごとにポーリングします。
IN_PROGRESS になったら、ループで進捗を監視します:
aws devops-agent list-journal-records \
--agent-space-id SPACE_ID \
--execution-id EXEC_ID \
--order ASC \
--region us-east-1
next_token を使用して、次回以降のポーリングで新しいレコードのみを取得する。get-backlog-task を定期的に確認し、終了状態(COMPLETED、FAILED、CANCELED、TIMED_OUT)になったら停止する。ジョブが終了状態に達したら:
COMPLETED の場合:
適切なレコードタイプを使用してレポートを取得します:
--record-type qa_ui_testing_report--record-type qa_api_testing_reportaws devops-agent list-journal-records \
--agent-space-id SPACE_ID \
--execution-id EXEC_ID \
--record-type qa_ui_testing_report \
--order ASC \
--region us-east-1
レポートの内容を以下の名前の Markdown ファイルに書き込みます:
release-testing-report-<YYYY-MM-DD-HHmmss>.md
ファイルパスを含めて、レポートが保存されたことをユーザーに通知します。
FAILED または TIMED_OUT の場合: エラー情報を提示し、次のステップを提案します。CANCELED の場合: ジョブがキャンセルされ、レポートが利用できないことをユーザーに通知します。aws devops-agent update-backlog-task \
--agent-space-id SPACE_ID \
--task-id TASK_ID \
--task-status CANCELED \
--region us-east-1
AgentSpace routing (SigV4 only): If
list_agent_spacesis available in your tool list and the multi-space orchestration skill has NOT been invoked yet this session, invoke it first to determine whichagent_space_idto use. Then passagent_space_idon all tool calls below. For bearer token auth this is unnecessary — the token is already scoped to one space.
Run automated release testing in the cloud via the AWS DevOps Agent's Release Testing Agent. Supports UI testing (browser-based) and API testing (OpenAPI spec-based). Uses pre-existing test profiles that define target URL, agent type, personas, and credentials.
Input is a test profile — the test profile already contains the target URL, agent type (UI or API), test personas, and credentials. Do NOT ask the user for a URL directly; the URL is defined in the test profile.
ki-12345) created from the AWS DevOps Agent consoleBefore starting any workflow, you MUST gather the following parameters. Do NOT proceed to job creation until answered.
Ask the user which test profile to use. The test profile already contains the target URL, agent type (UI or API), test personas, and credentials configuration — these do NOT need to be gathered separately.
Note: A pre-existing test profile is a prerequisite. Test profiles are created using the AWS DevOps Agent console or API, not through this tool. If the user asks whether one can be created here, inform them it must already exist.
If the user has not already mentioned a test focus, ask:
"Do you have a specific test requirement or focus area? If not, I'll run a full exploratory test."
Wait for the user's response. If they provide one, use it as the test_requirement. If they say no or skip, proceed without it.
IMPORTANT: You MUST wait for the user to respond before proceeding to job creation.
List available agent spaces:
aws devops-agent list-agent-spaces --region us-east-1
Present the list to the user and ask which agent space they'd like to use. Do NOT proceed until the user has selected one. Use the selected agentSpaceId as SPACE_ID in all subsequent calls.
Verify that the following tools are available: aws_devops_agent__create_release_testing_job, aws_devops_agent__get_task, aws_devops_agent__list_journal_records, aws_devops_agent__get_release_ui_testing_report, aws_devops_agent__get_release_api_testing_report. These tools are NOT deferred/lazy-loaded — if they do not appear in your tool list, they are unavailable. Do NOT search for them via ToolSearch. If any are missing, skip the remaining steps in this section and use the "Fallback (aws-mcp)" path below instead.
aws_devops_agent__create_release_testing_job(
test_profile_id="ki-12345",
webhook_event_message="<optional test requirement>"
)
→ {"taskId": "...", "executionId": "...", "status": "started"}
Record the taskId and executionId from the response.
Call aws_devops_agent__get_task(task_id=TASK_ID) every 30 seconds until the status transitions to IN_PROGRESS or a terminal state.
Once IN_PROGRESS, poll for progress in a loop:
aws_devops_agent__list_journal_records(execution_id=EXEC_ID, order="ASC") to fetch new findings.next_token from the response to fetch only new records on subsequent polls.aws_devops_agent__get_task(task_id=TASK_ID) periodically — stop when terminal status (COMPLETED, FAILED, CANCELED, TIMED_OUT).Once the job reaches a terminal status:
COMPLETED:
Determine the report type from the test profile's agent type (UI or API). Call aws_devops_agent__get_release_ui_testing_report(execution_id=EXEC_ID) for UI profiles or aws_devops_agent__get_release_api_testing_report(execution_id=EXEC_ID) for API profiles.
Write the report contents to a markdown file:
release-testing-report-<YYYY-MM-DD-HHmmss>.md
Inform the user that the report was saved, including the file path.
FAILED or TIMED_OUT: Present the error information and suggest next steps.CANCELED: Inform the user the job was canceled and no report is available.aws_devops_agent__cancel_release_testing_job(task_id=TASK_ID)
FAILED, stop the workflow and report the error.IN_PROGRESS within 5 minutes, cancel it using cancel_release_testing_job.429 or ThrottlingException), wait 30 seconds before retrying. After 3 retries, inform the user.If the aws-devops-agent remote server is unavailable, use the AWS CLI directly:
Tell the user: "Remote server unavailable — using direct AWS API fallback."
List available agent spaces:
aws devops-agent list-agent-spaces --region us-east-1
Present the list to the user and ask which agent space they'd like to use. Do NOT proceed until the user has selected one. Use the selected agentSpaceId as SPACE_ID in all subsequent calls.
aws devops-agent create-backlog-task \
--agent-space-id SPACE_ID \
--task-type RELEASE_TESTING \
--title 'Release Testing' \
--priority MEDIUM \
--description '{\"testProfileId\": \"<PROFILE_ID>\", \"webhookEventMessage\": \"<REQUIREMENT>\"}' \
--region us-east-1
If the user provided a test requirement, include it as webhookEventMessage. If not, omit the field or leave it empty.
aws devops-agent get-backlog-task \
--agent-space-id SPACE_ID \
--task-id TASK_ID \
--region us-east-1
Poll every 30 seconds until the status transitions to IN_PROGRESS or a terminal state (COMPLETED, FAILED, CANCELED, TIMED_OUT).
Once IN_PROGRESS, poll for progress in a loop:
aws devops-agent list-journal-records \
--agent-space-id SPACE_ID \
--execution-id EXEC_ID \
--order ASC \
--region us-east-1
next_token from the response to fetch only new records on subsequent polls.get-backlog-task periodically — stop when terminal status (COMPLETED, FAILED, CANCELED, TIMED_OUT).Once the job reaches a terminal status:
COMPLETED:
Retrieve the report using the appropriate record type:
--record-type qa_ui_testing_report--record-type qa_api_testing_reportaws devops-agent list-journal-records \
--agent-space-id SPACE_ID \
--execution-id EXEC_ID \
--record-type qa_ui_testing_report \
--order ASC \
--region us-east-1
Write the report contents to a markdown file:
release-testing-report-<YYYY-MM-DD-HHmmss>.md
Inform the user that the report was saved, including the file path.
FAILED or TIMED_OUT: Present the error information and suggest next steps.CANCELED: Inform the user the job was canceled and no report is available.aws devops-agent update-backlog-task \
--agent-space-id SPACE_ID \
--task-id TASK_ID \
--task-status CANCELED \
--region us-east-1
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。