comet.test¶
The comet.test module provides test handling functionality
Methods¶
- comet.test.getDefinitionFile() str ¶
Return the path to the currently connected test pool definition file.
- Returns:
The path to the current test pool file.
- Return type:
- Available:
InDesign®
- CScript:
- comet.test.getDefaultDefinitionFile() str ¶
Return the path to the default test pool definition file.
- Returns:
The path to the default test pool file.
- Return type:
- Available:
InDesign®
- CScript:
- comet.test.connect(path: str) None ¶
Connect to a test definition file.
- Parameters:
path (str) – The full path to the definition file to connect to.
- Return type:
None
- Raises:
CometError – On internal error.
TypeError – When parameter types are invalid.
ValueError – When parameter path is empty.
- Available:
InDesign®
- CScript:
- comet.test.disconnect() None ¶
Disconnect from the current test definition file.
- Return type:
None
- Available:
InDesign®
- CScript:
- comet.test.execute(path: str) None ¶
Execution of Comet tests. Proof data must first be generated for the tests that are to be executed.
- Parameters:
path (str) – Specifies the path in the test hierarchy. If the path points to a domain, all tests below it will be executed.
- Return type:
None
- Raises:
CometError – On internal error.
- Available:
InDesign®
- CScript:
- comet.test.createProofs(path: str) None ¶
Proof creation for comet tests. Any existing proof data will be overwritten.
- Parameters:
path (str) – Specifies the path in the test hierarchy. If the path points to a domain, proof data for all tests below will be created.
- Return type:
None
- Raises:
CometError – On internal error.
- Available:
InDesign®
- CScript:
- comet.test.deleteProofs(path: str) None ¶
Proof deletion for comet tests.
- Parameters:
path (str) – Specifies the path in the test hierarchy. If the path points to a domain, proof data for all tests below will be deleted.
- Return type:
None
- Raises:
CometError – On internal error.
- Available:
InDesign®
- CScript:
- comet.test.deleteResults(path: str) None ¶
Result deletion for comet tests.
- Parameters:
path (str) – Specifies the path in the test hierarchy. If the path points to a domain, proof data for all tests below will be deleted.
- Return type:
None
- Raises:
CometError – On internal error.
- Available:
InDesign®
- CScript:
- comet.test.assertion(success: bool = True, message: str = '') None ¶
Set the assertion error state of the currently running assert test.
- Parameters:
- Return type:
None
- Raises:
CometError – On internal error.
- Available:
InDesign®
- CScript: