generate_java_junit5
Generates a Java JUnit 5 test class from your recorded browser session, choosing TestFly or standalone Selenium with ChromeDriver setup/teardown.
Instructions
Generate a Java JUnit 5 test class from the current browser session. framework='testfly' (default) emits a TestFly test (extends BaseJUnit5Test, framework-managed driver, open(), accessibility-first locators and web-first assertThat assertions). framework='junit5' 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_junit5"
}
}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 |