StringListExpectation

class StringListExpectation

Returned by

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:

StringListExpectation

GetCaseSensitive()

Returns whether the comparison should be case-sensitive.

Returns:

True if case-sensitive, else False.

Return type:

boolean

GetExpressionList()

Returns the list of expressions if set, otherwise an empty list. Currently only KeywordValueExpression are supported!

Returns:

The list of expressions

Return type:

list[KeywordValueExpression]

GetStringList()

Returns the list of strings if set, otherwise an empty list.

Returns:

The list of strings

Return type:

list[str]

GetStringListVariableName()

Returns the variable that stores the list of strings if set else None.

Returns:

The variable name

Return type:

str

SetCaseSensitive(caseSensitive)

Sets whether the comparison should be case-sensitive.

Parameters:
caseSensitive : boolean

True if case-sensitive, else False.

SetExpressionList(exprList)

Sets the expectations expression. Currently only KeywordValueExpression are supported!

Parameters:
exprList

The list of expressions

SetStringList(stringList)

Sets the list of strings the actual value has to be contained in.

Parameters:
stringList : list[str]

The list of strings

SetStringListVariableName(variableName)

Sets the variable that stores the list of strings the actual value has to be contained in.

Parameters:
variableName : str

Name of the variable