Screenshots - TestlumFramework/Testlum GitHub Wiki

📸 Screenshots in Testlum

Testlum allows capturing screenshots during UI test execution to visually track each test step and simplify debugging.

🛠️ How to Enable Screenshots

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 where scenario.xml is placed.
  • They are also visible inside generated reports for easy step-by-step tracking.

🌟 Advantages of Using Screenshots

  • 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.

🛡️ Error Detection with Screenshots

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.

⚠️ **GitHub.com Fallback** ⚠️