Goal
Understand the different options to support testing in Verne.
- Service Transaction Repository
- Service Transaction Inspector
- Test Recorder
- Generate static tests
- Generate dynamic tests
- Recursive generation
- Use the examples
Starting code
Start tag: lesson/10-testing-only
Access to System Administration
To access the system administration console users must be logged with an internal user. In our case we are going to login using support user (sysadmin@fostermoore.com/Registry01)

Once in the application we need to open Dev Menu> System administration

Test Recorder
The test recorder information can be found at Test recorder
Service Transaction Repository
The service transaction repository will help to identify the records that are already recorded on the database. For example, all recorded heroes with their details can be found if a user searches
Application heroes Collection heroes Domain Hero

Service Transaction Inspector
The service transaction inspector provides access to the attributes on the screen by clicking on each item type on the tree. To access to the inspector right-click over any item on the screen and select Open in SVc Inspector

Once on the service transaction inspector click each of the items on the tree to obtain more information

Most of the information you can find in the service transaction inspector is related to attributes associated with the particular element that is selected. For example mandatory/optional, location on the code, hidden/visible,etc.
Users can generate tests via system administration by selecting the objects on the screen selecting right click and open in service transaction inspector and clicking the Hercules(Gen) tab.

There are 4 types of tests users can generate
- By enter the details on the field selected and select the HERCULES(GEN) tab. This will generate the test with the details entered
- By not entering details on the field selected and select the HERCULES(GEN) tab. This will generate default tests if available
- By using the examples. This will populate examples is available
- Recursive generation. This will generate all tests based on a form, parent element
Generate by enter details
Generate by enter details is basically based on the action of enter details, select an option on dropdown, radio button ,etc. Once the user enters the details they can select the element on the screen right-click and select option Open in Svc Txn Inspector and click on Hercules(Gen)

Generate by not enter details
Generate by not enter details is basically based on the action of read predefined validations for dropowns, radio button ,etc. Right-click and select option Open in Svc Txn Inspector and click on Hercules(Gen). Below an example for an empty field that contains error messages. The same generation will happen for other types of fields.

Generate by using examples
This option is used when one single scenario generated might not be enough users can check the Hercules(examples). The examples are generic enough to be reused. In some cases projects might have their own error messages so in this case we recommend to override the example messages.

Recursive generation
The recursive generation will create tests for a full form or a parent element. In the example below are generating tests for Full name

Levels
The Hercules generator provides additional functionality to create different levels of associate when required. Associates might be required if the same label is showing on the screen for the same element.


