Generating tests via system administration
Available only in Verne 2020015 onwards
Verne provides the capability to auto-generate step definitions from configured forms. This is a great time-saver especially if the form has been configured as it allows quick generation of test step definitions to be pasted in the applicable scenario.
The test recorder records the users actions in the browser as the form elements are interacted with and generates step definitions for the scenario.
The capability to do this is in the service transaction inspector. Users can auto-generate test step definitions by selecting the objects on the screen and doing a right click and opening service transaction inspector and clicking the Hercules(Gen) tab. Tests can also be auto-generated at an individual form component level or at a form level.

Generation of test at a individual form component level
User has entered/selected a value
This applies to an user entering text in a text box or selecting an option in a dropdown selector or selecting an option for a radio button ,etc. Once the user has updated the details for the individual form component they can
- Select the component on the screen,
- Right-click
- Select option Open in Svc Txn Inspector
- Click on Hercules(Gen) (when the System Administration has opened)


User has not entered/selected a value
Without entering/selecting any value right-click and select option Open in Svc Txn Inspector and click on Hercules(Gen). Examples of test steps automatically generated include validating values for dropdown/radio button, validating default selection for fields, etc

Generate by using examples
To aid the development team the auto-generation also provides additional example test steps that might apply to a form element. As a word of caution the examples are generic enough to be reused but also might need tweaking to suit the project so please cross-check against the requirements. (Example: some projects might have their own error messages in which case we recommend to override the example messages)

Generation of tests at a form level
Test steps can also be generated at a form level using the recursive generation option as show in the screenshot below. This will create tests for a full form or a parent element. In the example below tests are are generated for Full name (which is composed of multiple fields – First name, Middle name and Last name)

This can be used as part of test activity of checking for mandatory fields. Not entering/selecting any values on the form and clicking Continue/Next and then generating tests recursively for the form.
Levels
Associates allow form element identification and selection when same label shown on the screen is used for multiple form elements. The Hercules generator provides capability to create different levels of associate as required.


