generate_java_testng
Turn recorded browser sessions into ready-to-run Java TestNG tests, choosing TestFly or raw Selenium frameworks to eliminate boilerplate and produce maintainable, accessible locator-based assertions.
Instructions
Generate a Java TestNG test class from the current browser session. framework='testfly' (default) emits a TestFly test (extends BaseTest, framework-managed driver, open(), accessibility-first getByRole/getByLabel/getByTestId/find locators and web-first assertThat assertions — no driver lifecycle boilerplate). framework='testng' emits standalone raw Selenium with a ChromeDriver setUp/tearDown.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_java_testng"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | No | Output flavor. Use 'testfly' (default) inside a TestFly project. | testfly |
| test_name | No | RecordedFlowTest | |
| package_name | No | com.tests.selenium |