grasshopper7 / extentreports-cucumber7-adapter

Cucumber-JVM 7 Adapter for Extent Framework
https://ghchirp.online/3196/
MIT License
17 stars 7 forks source link

Add leading zeros to screenshot counter #29

Closed NielsGnodde closed 4 months ago

NielsGnodde commented 12 months ago

In some use cases the screenshots are browsed directly using image viewers without using the generated report file.

Some operating systems (e.g. Microsoft Windows) order files by lexicographical order causing the screenshots to be displayed in the incorrect order.

Adding leading zeros to the screenshot counter causes the screenshots to be ordered correctly. Using 4 leading zeros as padding ensures that the screenshots are ordered correctly for at least the first 9999 screenshots.

Closes: #28