Defining Output Value Verifications

  1. Select Verification in the Output Data Properties pane to display the (...) button.
  2. Click (...) to open the Verification Wizard.
    1. Select Range if you are verifying integers or doubles. Then specify a range for the value using the From and To text boxes.
  3. Select one of the following:
    • Click No Verification if you do not want the value to be verified.
    • Click Verification with NULL or variable to verify one of the following:
      • Check the Should be null check box, to verify that the value is NULL.
      • The value is not NULL. This option verifies whether or not a value is present.
      • Verify that the value exactly matches the value of an existing variable, a public member of a variable, or an element of an array.If the variable is an array you can also define the Array index for the element that should be used for the verification.
    • Click Constant Value to verify that the value exactly matches a constant string.
    • Click Regular expression to verify against a string value.
    • Click Range if you are verifying that a numeric value is within a specified range. Then specify a range for the value using the From and To text boxes.
  4. Select the Severity of error that should be thrown if the verification fails. The following severity options are available:
    • Success, no error

      No error is thrown

    • Informational

      An informational message is logged

    • Warning

      A warning is thrown

    • Error, simulation continues

      An error is thrown, but the simulation continues

    • Error, the active test case is aborted

      An error is thrown, the simulation continues, however the active test case is aborted. This is a transaction exit severity in Silk Performer

    • Error, the simulation is aborted

      An error is thrown and the simulation is aborted

    • Custom

      A section is inserted into the .NET code where special error handling code can be inserted

  5. Click OK.