Class BrowserlessJavaTestGenerator
java.lang.Object
com.vaadin.copilot.testrecordergenerator.browserless.BrowserlessJavaTestGenerator
- All Implemented Interfaces:
RecordedTestGenerator
Generates a Vaadin Browserless test from a recorded scenario.
Every recorded target carries a BrowserlessTargetDescriptor that was
resolved against the live server-side UI while recording. Steps that have no
Browserless equivalent are written as Copilot comments in the generated test,
so that nothing is dropped silently.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPrefix of the comments generated for unsupported steps. -
Constructor Summary
ConstructorsConstructorDescriptionBrowserlessJavaTestGenerator(TestRecorderScenario scenario, BrowserlessGenerationOptions options) Creates a generator. -
Method Summary
-
Field Details
-
TODO_PREFIX
Prefix of the comments generated for unsupported steps.- See Also:
-
-
Constructor Details
-
BrowserlessJavaTestGenerator
public BrowserlessJavaTestGenerator(TestRecorderScenario scenario, BrowserlessGenerationOptions options) Creates a generator.- Parameters:
scenario- the recorded scenariooptions- project specific options
-
-
Method Details
-
generate
Description copied from interface:RecordedTestGeneratorGenerates the test and writes it to the project.- Specified by:
generatein interfaceRecordedTestGenerator- Returns:
- information about the generated test
- Throws:
IOException- if the test file cannot be read or written
-