Example 2: check form (Java)

The Genero Ghost Client Java template to check form name and title.

check_form.java

!! Validates the current form name and title
!! This check is enabled if --check-all or --check-form parameter is used.
!!
!! Parameters:
!!  . formName  : The name of the current form
!!  . formTitle : The title of the current form
!!
        /* Ensure the form name is: $(formName) */
        ScenarioChecks.checkFormName(client, "$(formName)");
        /* Ensure the form title is: $(formTitle) */
        ScenarioChecks.checkFormTitle(client, "$(formTitle)");