Intervals

You can specify an interval instead of a single value when you use ActionMode Verify. If you specify an interval, Tricentis Tosca verifies if a value is within the specified range.

Before you specify an interval, note the following:

  • You can only specify an interval for DataTypes Numeric or String.

  • To validate a property with intervals, you can only use the operators == or !=.

You can specify simple and custom intervals.

Simple interval

To specify an interval with equal upper and lower boundaries, use the following syntax:

Syntax:

{INTERVAL[<Base>][<Limit>]}

The verification is successful if the value is within the range <Base> − <Limit> and <Base> + <Limit>.

In this example, you verify if the value of Content is a number between 75 and 125.

To do so, you set the DataType to Numeric and enter {INTERVAL[100][25]} in the Value field.

Simple interval verification

Custom interval

To specify an interval with unique upper and lower boundaries, use the following syntax:

Syntax:

{INTERVAL[<Base>][<LowerBoundary>][<UpperBoundary>]}

The verification is successful if the value is within the range <Base> − <LowerBoundary> and <Base> + <LowerBoundary>.

In this example, you verify if the value of Content is a number between 90 and 150.

To do so, you set the DataType to Numeric and enter {INTERVAL[100][10][50]} in the Value field.

Custom interval verification