Defining Output Value Verifications

  1. Select Verification in the Output Data Properties pane to display the (...) button.
  2. Click (...) to open the Verification Wizard.
    • Select No Verification if you do not want the value to be verified.
    • Select NULL verification to verify that the value is either null, by checking the Should be null check box, or not null. This option verifies whether or not a value is present.
    • Select Constant string to verify that the value exactly matches a constant string.
    • Select Reg. expression to verify a string value.
    • Select Range if you are verifying integers or doubles. Then specify a range for the value using the From and To text boxes.
    • Select Variable to verify that the value exactly matches the value of the variable. If the variable is an array you can also define the Array index for the element that should be used for the verification.
  3. Select the Severity of error that should be thrown if the verification fails. The following severity options are available:
    Severity Option
    Success, no error
    No error is thrown.
    An informational message is logged.
    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.
    Error, the simulation is aborted
    An error is thrown and the simulation is aborted.
    A section is inserted into the .NET code where special error handling code can be inserted.
  4. Click OK.