ExpectationModeOptions

class ExpectationModeOptions
Clone()

Call this method if you want to use API-objects in multiple contexts, e.g. if you want to insert a specific test step in multiple blocks.

Returns:

A copy of this object

Return type:

ExpectationModeOptions

GetMinDuration()

Returns the minimal duration.

Returns:

The minimal duration

Return type:

str

IsCumulated()

Returns True if all successful range should be cumulated and evaluated against the expected minimum duration.

Returns:

True if all successful ranges should be cumulated, else False

Return type:

bool

IsRelative()

Returns True if the value for minimum duration is specified as a relative value given in percent.

Returns:

True if mimimum duration is a relative value, else False

Return type:

bool

SetCumulated(value)

Decides whether all the successful ranges should be cumulated.

Parameters:
value : boolean

True if all the successful range should be cumulated, else False

SetMinDuration(minDuration)

Sets the minimal duration.

Parameters:
minDuration : str

The expression for minimal duration.

SetRelative(value)

Decides whether the value for minimum duration is given as a relative value given in percent.

Parameters:
value : boolean

True if the value for mimimum duration is a relative value, else False