Debug Test Failure¶
QaaS Logs¶
QaaS includes a configurable logger that can output logs to the console or to a file. The log level can be adjusted using the -l flag, or the entire logging configuration can be overridden using the -g flag.
For more information about the logger, refer to the Logger documentation.
QaaS Act/Assert Commands¶
QaaS provides two specialized commands to help debug test failures:
act: Runs only theactphase of the test, which includes DataSources and Sessions. The output is stored in an external storage location.assert: Runs only theassertphase of the test, which includes DataSources and Assertions. It retrieves required data from the same external storage.
Both commands use the configuration defined in the Storages section to access the external storage.
These commands are particularly useful for:
- Debugging assertion configurations
- Using QaaS solely as a data injector for testing or validation
Usage Examples¶
To run only the act phase and store output in a specified directory:
To run only the assert phase using previously stored data:
This workflow allows you to isolate and inspect each phase of the test independently, making it easier to identify and resolve issues.