Screenshots - TestlumFramework/Testlum GitHub Wiki
Testlum allows capturing screenshots during UI test execution to visually track each test step and simplify debugging.
You can configure screenshot capturing via the ui.xml
file:
<takeScreenshots enabled="true"/>
- When enabled, screenshots are automatically captured after each UI action.
- Screenshots are saved into a
screenshots
folder in the same folder wherescenario.xml
is placed. - They are also visible inside generated reports for easy step-by-step tracking.
- Capturing screenshots without opening the browser window (headless execution).
- Capturing screenshots even inside Docker containers.
- Automatic generation in the scenario's folder structure.
- Capturing screenshots on exceptions to visually detect errors.
Testlum enhances debugging by capturing the exact step where an error occurs.
The <screenshotsLogging>
feature ensures that exceptions are visually traceable, especially across different browser configurations.