test_run
Run a .mob test case on a device, with parameter substitution for dynamic inputs.
Instructions
Run a .mob test case on a device. The case_path is relative to the project directory. Pass params to supply values for ${name} substitution in the script.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_dir": "<project_dir>",
"case_path": "<case_path>",
"device_id": "<device_id>"
},
"name": "test_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | Absolute path to the project directory | |
| case_path | Yes | Relative path to the .mob file within the project, e.g. auth/login.mob | |
| device_id | Yes | Device ID to run the test on | |
| params | No | Optional key-value parameters for ${name} substitution in the script |