Attributes

class Attributes

API to access attributes

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:

Attributes

GetNames()

Returns the names of all attributes available

Returns:

List of attribute names

Return type:

list[str]

GetNamesAndValues()

Returns all attributes with their values.

Returns:

Dictionary of attributes with values

Return type:

dict[str, str]

GetValue(name)

Returns the value of the attribute of the provided name

Parameters:
name : str

Name of attribute

Returns:

Value of attribute

Return type:

str

SetValue(name, value)

Sets the value of an attribute with the provided name.

Parameters:
name : str

Name of attribute

value : str

Value of attribute