Port¶
- class Port¶
- AUTOSTART_ALWAYS¶
Returns the constant used to specify the autostart option ‘always’: The port will always be started.
- Returns:
The constant
- Return type:
int
- AUTOSTART_CONDITIONAL¶
Returns the constant used to specify the autostart option ‘conditional’: The port will be started when needed.
- Returns:
The constant
- Return type:
int
- PropertySet¶
The properties of this port.
- Returns:
properties of this port
- Return type:
- 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:
- GetAutostart()¶
Returns the autostart mode for this port.
- Returns:
Autostart option of the port.
Port.AUTOSTART_NEVER
- Return type:
int
- GetId()¶
Returns the id of the port.
- Returns:
The id of the port.
- Return type:
str
- GetImplType()¶
Returns the port’s implementation type :return: the implementation type :rtype: str
- GetPortType()¶
Returns the type of the port.
- Returns:
The type of the port.
- Return type:
str
- Refresh()¶
Refreshes the properties of the port
- Rename(newPortId)¶
Changes the id of the port to the given one.
- Parameters:
- newPortId : str¶
The new id to be used.
- Raises:
ApiError – If newPortId could not be set