ATF – Screenshots Not Captured for Parameterized Test Results

Goku811
Mega Contributor

I have an ATF test with parameterized data. The test runs successfully for all datasets, but screenshots are not captured for each iteration.

With hardcoded values, screenshots work fine. After parameterization, they are missing.

Do screenshots need to be enabled at test level or step level?

Are there any limitations with UI execution or optimized runs for parameterized tests?

Where can we view screenshots for individual dataset iterations in the results?

Any guidance would be appreciated. Thanks!

1 REPLY 1

VaishnaviK43271
Tera Contributor

Hi @Goku811 !!

In ATF, screenshots are controlled at the Test level, not at the step level.

For parameterized (data-driven) tests, ATF treats all dataset iterations as one test execution. Because of this:

  • Screenshots are not captured for each dataset iteration

  • Screenshots are usually taken only for the overall test run or when a failure occurs

There is no OOTB support to capture or view screenshots separately for each dataset iteration.

If Optimized UI execution is enabled, screenshot capture is further limited by design to improve performance.

Where to view screenshots:

Automated Test Framework → Test Results → Open Test Result → Attachments

 

Mark this as Helpful if it clarifies the issue.
Accept the solution if this answers your question.

Regards,
Vaishnavi
Associate Technical Consultant