AllExpectation¶
- class AllExpectation¶
Represents an expectation on all elements for complex data types. All sub elements of must fulfill the expectation for this expectation to be fulfilled.
The expectation is specified as a Boolean expression in Python syntax. The special identifier “value” refers to the actual value of each element.
- 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:
- GetExpectation()¶
Returns the expectation object.
- Returns:
The expectation object
- Return type:
- GetExpectationExpression()¶
Returns the expectation expression.
- Returns:
The expression
- Return type:
str
- SetExpectation(expectationObject)¶
Sets the expectation object.
- Parameters:
- expectationObject¶
The expectation object
- SetExpectationExpression(expression)¶
Sets the expectation expression.
- Parameters:
- expression : str¶
The expression