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.
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 |