robotframework-imagehorizonlibrary icon indicating copy to clipboard operation
robotframework-imagehorizonlibrary copied to clipboard

When reference image names are automatically normalized so is reference_folder

Open damies13 opened this issue 3 years ago • 1 comments
trafficstars

When reference_image names are automatically normalised so is the reference_folder which should not be the case.

On Windows this is not a problem as Windows ignores case in paths anyway, It however causes the test case to fail on MacOS and Linux (and probably any other *nix)

https://eficode.github.io/robotframework-imagehorizonlibrary/doc/ImageHorizonLibrary.html#Reference%20image%20names

damies13 avatar Mar 01 '22 11:03 damies13

Further Investigation, this line in my robot file

 	Click Image 	Title Bar
  • Windows produces this "D:\a\rfswarm\rfswarm\Tests\Regression\Manager\Images\title_bar" - As expected
  • MacOS produces this "/Users/runner/work/rfswarm/rfswarm/Tests/Regression/Manager/Images/title_bar" - As expected
  • Ubuntu produces this "/home/runner/work/rfswarm/rfswarm/tests/regression/manager/images/title_bar.png" - Not as expected, Notice the entire path has been lower cased

But I haven't found where this is happening in the code, at least we now know it's not happening in MacOS or Windows.

damies13 avatar Mar 01 '22 12:03 damies13