TestBenchConfiguration¶
- class TestBenchConfiguration¶
Returned by
- CreateToolHost(toolHostUrl)¶
Creates a new tool host with the given URL. E.g.:
‘local’
‘tsp:127.0.0.1:5017’
‘tsp:hostname:5017’
- GetFilename()¶
Returns the absolute path to the test bench configuration file. If empty, the file has not been saved yet.
- Returns:
filename with extension
- Return type:
str
- GetToolHosts()¶
Returns a list of all tool hosts belonging to this testbench configuration.
- Returns:
The list of all tool host objects
- Return type:
list[
ToolHost]
- Refresh()¶
Refreshes all hosts, tools and ports in the configuration
- RemoveToolHost(toolHost)¶
Removes the tool host and all configured tools and ports connected to it.
- Parameters:
- toolHost¶
The tool host object to be removed
-
Save(filename=
None)¶ Saves the test bench configuration. Appends file ending if needed.
- Parameters:
- filename : str¶
The file name used for storing the test bench configuration file; Either absolute or relative to the ‘Configuration’ directory. Leave out to save the configuration to its existing file (from a previous call of
Save()or fromConfigurationApi.OpenTestBenchConfiguration())