API for Configurations¶
Part of the Object based program API.
- class ConfigurationApi¶
API to access configuration files
Returned by
- ReportFilterApi¶
Returns the ReportFilterApi namespace.
- Returns:
ReportFilterApi namespace
- Return type:
- CreateTestBenchConfiguration()¶
Creates new test bench configuration.
- Returns:
New empty test bench configuration
- Return type:
- CreateTestConfiguration()¶
Creates a new test configuration.
- Returns:
New empty test configuration
- Return type:
- GetChangesForTestBenchConfigurations(oldTestBenchConfig, newTestBenchConfig)¶
Get the changes that exist between two given test bench configurations.
- GetChangesForTestConfigurations(oldTestConfig, newTestConfig)¶
Get the changes that exist between two given test configurations.
- OpenTestBenchConfiguration(filename)¶
Opens an existing test bench configuration (*.tbc).
- Parameters:
- filename : str¶
File name of the test bench configuration file (*.tbc); Either absolute or relative to the ‘Configuration’ directory
- Returns:
Loaded test bench configuration
- Return type:
- Raises:
ApiError – If the test bench configuration file (*.tbc) does not exist.
- OpenTestConfiguration(filename)¶
Opens an existing test configuration.
- Parameters:
- filename : str¶
File name of the test configuration file (*.tcf); Either absolute or relative to the ‘Configuration’ directory
- Returns:
Loaded test configuration
- Return type:
- Raises:
ApiError – If the test configuration file (*.tcf) does not exist.
-
SearchTestBenchConfigurations(searchCriteria, useExtendedMode=
False)¶ Searches the current workspace and library workspaces for Testbenchconfigurations matching the given search criteria.
- Parameters:
- searchCriteria : str¶
The search criteria expressed in the ecu.test filter syntax. See section “Handling” => “Filter” of the ecu.test User Documentation.
- useExtendedMode : boolean¶
If True, extended search strings are enabled. The default is False, meaning each word in the searchCriteria will be enclosed by wildcards and mapped to the filename. (e.g. “hello world” => “Name = ‘*hello*’ and Name = ‘*world*’”)
- Returns:
All matching Testbenchconfigurations. If no file matches, an emtpy list is returned.
- Return type:
list[
TestBenchConfiguration]- Raises:
ApiError – If the searchCriteria has an illegal syntax.
-
SearchTestConfigurations(searchCriteria, useExtendedMode=
False)¶ Searches the current workspace and library workspaces for Testconfigurations matching the given search criteria.
- Parameters:
- searchCriteria : str¶
The search criteria expressed in the ecu.test filter syntax. See section “Handling” => “Filter” of the ecu.test User Documentation.
- useExtendedMode : boolean¶
If True, extended search strings are enabled. The default is False, meaning each word in the searchCriteria will be enclosed by wildcards and mapped to the filename. (e.g. “hello world” => “Name = ‘*hello*’ and Name = ‘*world*’”)
- Returns:
All matching Testconfigurations. If no file matches, an emtpy list is returned.
- Return type:
list[
TestConfiguration]- Raises:
ApiError – If the searchCriteria has an illegal syntax.