qentinelqi / qweb

Keyword driven automation for the web
https://github.com/qentinelqi/qweb
Apache License 2.0
39 stars 17 forks source link

Extremely long test case names break screenshots #93

Closed tkoukkari closed 2 years ago

tkoukkari commented 2 years ago

Describe the bug Extremely long test case names break LogScreenshot functionality, since test name is used in output image name.

To Reproduce Steps to reproduce the behavior:

  1. Create a test case with name longer than 255 characters
  2. Add a step that will fail to force capturing a screenshot
  3. See error

Expected behavior Screenshot of a failing case is saved and added to the log.

Currently it fails, since most OS's only accept filenames to be 255 characters max. QWeb should make sure the output file name will not be longer than that.

tkoukkari commented 2 years ago

Included in 2.0.3