TestConfiguration¶
- class TestConfiguration¶
Returned by
- ControlUnits¶
Control units configuration
- Returns:
Control units configuration
- Return type:
- Diagnostics¶
Diagnostic entities configuration
- Returns:
Diagnostic entities configuration
- Return type:
- EnvironmentAccess¶
Environment access configuration
- Returns:
Environment access configuration
- Return type:
- GlobalConstants¶
Global constants configuration
- Returns:
Global constants configuration
- Return type:
- MediaAccess¶
Media access configuration
- Returns:
Media access configuration
- Return type:
- Report¶
Report configuration
- Returns:
Report configuration
- 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:
- GetFilename()¶
Returns the absolute path to the test configuration file. If empty, the file has not been saved yet.
- Returns:
filename with extension
- Return type:
str
-
Save(filename=
None, allowCompatibilityFallback=False)¶ Saves the test configuration to a file. Appends file ending if needed.
- Parameters:
- filename : str¶
The file name used for storing the test configuration file; Either absolute or relative to the ‘Configuration’ directory. Leave out to save the configuration to its existing file (previously set with
Save()or fromConfigurationApi.OpenTestConfiguration())- allowCompatibilityFallback : bool¶
If True and a compatibility mode is active, save in the minimum compatible version when needed. If False, compatibility problems raise an exception instead.