MappingItem

class MappingItem

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:

MappingItem

GetAccessType()

Returns a string identifying the mapping item’s type. (such as MODEL, BUS, MEASUREMENT, …)

Returns:

access type

Return type:

str

GetCategory()

Returns the category

Returns:

Category

Return type:

str

GetDescription()

Returns the description

Returns:

Description

Return type:

str

GetDisplayedType()

Returns a “nice” representation of the type as displayed in the “type” column of the mapping panel

Returns:

the displayed mapping type

Return type:

str

GetReferenceName()

Returns the reference name of the mapping.

Returns:

The reference name of the mapping

Return type:

str

GetSubMapping()

Returns contained Mapping or None if item does not support sub-mappings.

Returns:

Mapping with all submappings of the mapping item

Return type:

Mapping

GetSystemIdentifier()

Returns the system identifier providing the currently mapped test quantity

Returns:

system identifier

Return type:

str

GetTargetPath()

Returns the path this mapping item is currently pointing at

Returns:

complete path to the destination test quantity

Return type:

str

GetVariableType()

Returns the type of the target variable or None if target has no type.

Returns:

The type of the target variable. (e.g. VALUE, MATRIX, CURVE, …)

Return type:

str

IsAutogenerated()

Returns whether the mapping item is autogenerated.

Returns:

True, if autogenerated flag is set, else False

Return type:

boolean

SetAutogenerated(value=True)

Sets whether the mapping item is autogenerated.

Parameters:
value : boolean

The new state.

SetCategory(category)

Sets the category

Parameters:
category : str

The new category to be used

SetDescription(description)

Sets the description

Parameters:
description : str

The new description to be used

SetReferenceName(name, updateTestSteps=False)

Sets the reference name of the mapping.

Parameters:
name : str

The reference name of the mapping

updateTestSteps : bool

update all usages of this mapping item. Throws an error if it is used in a global mapping or if it is not yet part of a mapping space.