Path to a file in spec files

83 views
Skip to first unread message

Elena Florko

unread,
Sep 18, 2017, 10:15:14 AM9/18/17
to Galen Framework
Hi,

After a new feature for multiple image comparison was released we started to use Galen for Screenshot regression testing - comparing screenshots of application before and after changes. 
But almost immediately we faced with a problem that in a spec file path to an image on Mac will not work on Windows and vice versa.

For instance this will work on Mac: 
image file ../img/header_*.png, error 0px
But on Windows it fails with error "There are no images found".

And of course this will work on Windows:
image file ..\img\header_*.png, error 0px
But will fails with "illegal/unsupported escape sequence near index 3" on Mac.

File structure is simple. There are two folders located to each other: one with spec files, second with images for comparison.

Please help me to fix this path problem on different platforms.

Thanks!
Reply all
Reply to author
Forward
0 new messages