TESTARtool / TESTAR_dev

TESTAR, automated testing through the Graphical User Interface
http://www.testar.org
BSD 3-Clause "New" or "Revised" License
34 stars 22 forks source link

Maximum Path Length Limitation affects TESTAR output files #362

Open ferpasri opened 1 year ago

ferpasri commented 1 year ago

Windows Documentation

https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation

Windows Issue

Windows truncates the name of TESTAR output files when TESTAR is executed in a system location with an ApplicationName and ApplicationVersion value settings that exceed the limit of 260 characters.

Original Screenshot name visualized in the output folder

C:\Users\Username\Documents\GitHub\TESTAR_dev\testar\target\install\testar\bin\output\2023-06-23_09h04m32s_desktop_calculator_random_action_selector_1.0.0\scrshots\2023-06-23_09h04m32s_desktop_calculator_random_action_selector_1.0.0_sequence_1\SCC6h0xwk3ec1456764826.png

image

Truncated Screenshot name inspected with Windows properties

C:\Users\Username\Documents\GitHub\TESTAR~1\testar\target\install\testar\bin\output\2023-0~1.0\scrshots\2023-0~1.0_S\SCC6h0xwk3ec1456764826.png

image

Effect caused by this truncation

The HTML report of TESTAR expects to find the complete file path name without truncations, which provokes the screenshot not to be visualized.

image