Settings - Dynamic Temporal Expressions

Tricentis Tosca TBox allows you to create date and time expressions dynamically (see chapter "Dynamic date and time expressions"). You can format the results of your date and time expressions and display them in the chosen format.

To define the format of your results, modify the settings at Project->Settings->TBox->Dynamic Temporal Expressions.

You can also format the results in the Value column of the dynamic expression itself or via test configuration parameter (see chapter "Define date and time formats").

Date expressions for the test object

Define date and time formats for the test object if the machine on which you create your tests uses a different format than the system under test.

For instance, if a user enters the expression {DATE[23.05.2016][+3M-1d][]}, but the system under test uses the date format yyyy-MM-dd, the test will fail.

To avoid this, change the default values in the settings. Tricentis Tosca Commander then knows how to interpret the format given by the system under test. Tricentis Tosca Commander will also use the same format to write data and time values to the test object.

The values you enter into the settings must match the syntax in the system under test. You can define the following formats:

Setting

Description

Default value

Target Date format

Date value format of the system under test.

dd.MM.yyyy

Target Time format

Time value format of the system under test.

HH:mm

Target Date Time format

Combined date-time value format of the system under test.

yyyyMMddHHmmss

Tosca date formats

Define a uniform date and time format for Tricentis Tosca Commander if you are creating your tests on different machines and these machines have varying date and time formats.

You can define the following formats:

Setting

Description

Default value

Tosca Date format

Date value format in Tricentis Tosca Commander.

dd.MM.yyyy

Tosca Time format

Time value format in Tricentis Tosca Commander.

HH:mm

Tosca Date Time format

Combined date-time value format in Tricentis Tosca Commander.

yyyyMMddHHmmss