Expression Evaluation

The folder TBox Automation Tools->Expression Evaluation in the Standard subset contains the Module TBox Evaluation Tool.

This Module allows you to perform comparisons. The results of these comparisons are either TRUE or FALSE.

The Module TBox Evaluation Tool has the following ModuleAttribute:

ModuleAttribute

Description

Expression

Define your expression and use ActionMode Verify.

You can use all dynamic expressions that are supported by Engines 3.0. If your expressions contain special characters, you need to escape them as described in chapter "Special characters".

Specify values that Tricentis Tosca should handle as strings between single quotation marks '.

You can specify more than one expression within a TestStep.

The TestStep in this example performs the following actions:

  • The first Expression verifies whether buffer A contains a value greater than 100.

  • The second Expression verifies whether buffer A contains a value that is greater than 100 and less than 200.

  • The third Expression verifies whether the value of the buffer CurrentMonth is NOT May.

Evaluate several expressions

The TBox Evaluation Tool Module uses the NCalc library. For information on additional functionality for the Module, see the NCalc documentation or search the Tricentis Knowledge Base.