Page MenuHomePhabricator

Add timestamp to screenshot file name
Closed, ResolvedPublic

Description

When debugging, it's useful to have screenshots from multiple test runs. At the moment, file name is created only with test suite name and test name. For example: User-should-be-able-to-create-account.png. When a new test (suite) is executed, screenshots from the previous one are overwritten.

Videos add timestamps to file names. For example: User--should-be-able-to-create-account--CHROME--04-20-2021--18-02-55-840.mp4. That makes it possible to have videos from multiple test runs.

Screenshot code is in two places.

https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/tests/selenium/wdio-mediawiki/index.js#15
https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/tests/selenium/wdio.conf.js#10

See also https://gerrit.wikimedia.org/r/c/mediawiki/core/+/682665/1#message-1887baa8ebeec89261b4a58ad31a91e90c25b76c

Event Timeline

zeljkofilipin renamed this task from Add timestamp to screenshots to Add timestamp to screenshot file name.Apr 26 2021, 2:05 PM

Change 682665 had a related patch set uploaded (by Zfilipin; author: Zfilipin):

[mediawiki/core@master] selenium: Add timestamp to screenshot file name

https://gerrit.wikimedia.org/r/682665

Change 682665 merged by jenkins-bot:

[mediawiki/core@master] selenium: Add timestamp to screenshot file name

https://gerrit.wikimedia.org/r/682665