Skip to main content

Dialog: Custom Conditions for Duration

Function: The dialog contains the configuration, under which conditions a test step is executed, and which time restrictions the conditions are subject to minimum and maximum. If they are not maintained, then the operation is aborted with errors and error handling is executed.

Call: In the test table, in the Duration column, select the _cds_icon_three_dots.png option. Click the Edit button.

Table with conditions which have to be fulfilled for the test step to be executed

One condition is configured for each line. At the beginning of the test step execution, a time stamp is generated which is relevant for all conditions.

Variable

Variable (any data type) which is read

. Scope
  • Global (global variable list)

  • Internal (VAR)

  • Output variable (VAR_OUTPUT)

  • Input/Output variable (VAR_IN_OUT)

  • Property: _visu_icon_object_property.png (PROPERTY)

Example: PLC_PRG.bIsValid

Type

Compare operator

Example: Equal to [e]

Value

Compare value

Example: TRUE

Precision

Permitted deviation of the compare test

Optional

Add

Adds a condition to the table

Remove

Removes the selected condition

Min. time

Max. time

Minimum and maximum duration as TIME/LTIME constants

. Example:
  • T#2s

  • T#10s

. The test step aborts in the following cases:
  • The conditions are fulfilled before reaching the minimum duration.

  • The conditions have not yet been fulfilled after the maximum duration has elapsed.

Min. count

Max. count

Minimum and maximum duration as number of cycles

. Example:
  • Minimum number: 10

  • Maximum number: 100

. The test step aborts in the following cases:
  • The conditions are fulfilled before reaching the minimum number of cycles.

  • The conditions have not yet been fulfilled after the maximum number of cycles.

Failure mode

Error handling if the test step aborts due to the minimum or maximum duration

  • Use standard: The setting of the superordinate test case is applied.

  • Abort test case

  • Abort test case group

  • Abort unit testing

  • Abort test run

OK

Configures the duration for the test step according to the settings and closes the dialog