Skip to content
Sahi Pro Flowcharts is retired. These pages document the last release (v12) and are no longer updated. Go to the current documentation.Flowcharts is retired. Current docs
Get Free Trial
Sahi Pro Flowcharts is retired. These pages document the last release (v12) and are no longer updated. Go to the current documentation.

Positive Validations

Positive Validations are test flows that verify that the application works correctly for specific valid data.

The values we need to check for Positive Validations can be derived from various sources:

  • Requirement documents
  • Validation error messages
  • Prior experience / common sense

In the User Registration case, let us see what validation messages are shown.
Navigate to the registration page manually and click on Submit without entering any value.
The following error messages are seen

Error for Firstname

For Firstname, the message says “First Name must be between 1 and 32 characters!”
As a tester, we need to ensure that the firstname field accepts the following:

  • A string with just 1 character. Eg. “a”. This is the lower boundary value.
  • A string between 1 and 32 characters. Eg. “Mahi”
  • A string with exactly 32 characters. Eg.“thirtytwocharacterlongstringabcd”. This is the higher boundary value.
  1. Click on the Flowchart path node.

  2. Click on Automate.

  3. On the Automate dialog, navigate to Entities tab.

  4. Entity tab shows the Entity’s Attributes on the Left pane and it has more sub-tabs on the Right pane.

  5. Navigate to the Positive Validations tab and select Entity: $user and Attribute firstname.

  6. Type the Input values and comments to define it.

    Positive Value Firstname

  7. Similarly, it can be defined for other attributes too.

  8. Once we are done with setting Input values for Positive validations, click on Save Entity button.

  1. Check for the path settings:
    Click on path tab and select the checkbox for Enable Validations.

    Path Enable Validations

  2. Click on the Run button.

    Run button

  3. Run Settings dialog opens. Select the checkbox Run Positive validations only and deselect others.

  4. Click on Run button.

    Select Run Positive Validation

Check the Report after running/executing the Positive validations :

  1. Click on the Reports button.

    Report button

  2. The Report window will open in a new tab. It will show the Success of flow.

  3. Click on Registration VALIDATION POSITIVE P0

  4. Suite Report will open :

    Suite Report

  5. In the suite report, it can be seen that the same flow has been executed twice with different sets of test data in parallel.
    In the first report, the firstname is given as a and in the second test firstname is thirtytwocharacterlongstringabcd

  6. Click on each to see more details.

    Script Report 1

    Script Report 2

    You can click on Expand All to view details of each attribute.
    Under the expanded Enter $user details keyword, you can see the details of values taken as input for each attribute.

Next: Negative Validations