testmo_complete_automation_run
Complete an automation run in Testmo by providing its ID. Optionally auto-set execution time from creation to completion.
Instructions
Mark an automation run as completed.
Args: automation_run_id: The automation run ID to complete. measure_elapsed: Auto-set execution time from creation to completion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_run_id | Yes | ||
| measure_elapsed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- testmo/tools/automation.py:204-222 (handler)Handler function that marks an automation run as completed. Accepts automation_run_id and optional measure_elapsed bool. Sends a POST request to /automation/runs/{automation_run_id}/complete.
@mcp.tool() async def testmo_complete_automation_run( automation_run_id: int, measure_elapsed: bool | None = None, ) -> dict[str, Any]: """Mark an automation run as completed. Args: automation_run_id: The automation run ID to complete. measure_elapsed: Auto-set execution time from creation to completion. """ data: dict[str, Any] = {} if measure_elapsed is not None: data["measure_elapsed"] = measure_elapsed return await _request( "POST", f"/automation/runs/{automation_run_id}/complete", data=data if data else None, ) - testmo/tools/automation.py:204-204 (registration)Registered as a tool via @mcp.tool() decorator from FastMCP (testmo/server.py).
@mcp.tool() - testmo/tools/automation.py:205-208 (schema)Input schema: automation_run_id (int, required), measure_elapsed (bool, optional). Returns dict[str, Any].
async def testmo_complete_automation_run( automation_run_id: int, measure_elapsed: bool | None = None, ) -> dict[str, Any]: