Skip to content

[🚀 Request] Screenshots should be stored in same way as logs #1819

@pospisilf

Description

@pospisilf

Describe the request

Currently, when tests run is done and any screenshots are captured, they're saved by default in $TMPDIR/test-resources/screenshots as individual files inside this folder. When another run is executed, content of screenshots folder is replaced by screenshots from last run. Logs are stored inside folders with timestamp like 20250327T231952 and I think screenshots should be stored in same way as well.

Usage

Currently, structure after 3 runs of same test (which has VSBrowser.instance.takeScreenshot() function so screenshot is captured every time) has 3 logs folders but only screenshots from last run available.

$TMPDIR/test-resources/settings/logs/20250327T231952/*run1fies*
$TMPDIR/test-resources/settings/logs/20250327T231957/*run2fies*
$TMPDIR/test-resources/settings/logs/20250328T111957/*run3fies*
$TMPDIR/test-resources/screenshots/*run3files*

With saving screenshots from each run into individual folders we have access to all screenshots as well as logs.

$TMPDIR/test-resources/settings/logs/20250327T231952/*run1fies*
$TMPDIR/test-resources/settings/logs/20250327T231957/*run2fies*
$TMPDIR/test-resources/settings/logs/20250328T111957/*run3fies*
$TMPDIR/test-resources/screenshots/20250327T231952/*run1fies*
$TMPDIR/test-resources/screenshots/20250327T231957/*run2fies*
$TMPDIR/test-resources/screenshots/20250328T111957/*run3fies*

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions