generateTestFromRecording
Convert browser recording interactions and optional network calls into a complete TWD test file, including mocks, so recorded user flows become runnable automated tests.
Instructions
Generate a complete TWD test file from browser recording data (interactions and optional network calls).
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": {
"interactions": "<interactions>"
},
"name": "generateTestFromRecording"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testName | No | Name for the generated test (defaults to "recorded user flow") | |
| interactions | Yes | Array of user interactions captured from browser | |
| networkCalls | No | Optional array of network requests to mock |