TESTAR currently relies on the Ctrl + A key combination to select all the text in the System Under Test (SUT) when the user intends to replace the existing text. However, this combination is not always supported as expected for some specific SUT and OS languages or non-Windows OS:
On a Windows system with Spanish language settings and using Notepad as the SUT, pressing Ctrl + A tries to save the text as a file instead of selecting all.
MacOS does not use Ctrl as a key, leading to inconsistencies in the key combination behavior.
Posible solution:
Implement a setting ConfigTag or customizable method protocol that enables users to customize the key combination or choose alternative methods for the text selection and replacement action, considering variations in keyboard shortcuts for different operating systems and language settings.
Description:
TESTAR currently relies on the
Ctrl + A
key combination to select all the text in the System Under Test (SUT) when the user intends to replace the existing text. However, this combination is not always supported as expected for some specific SUT and OS languages or non-Windows OS:On a Windows system with Spanish language settings and using Notepad as the SUT, pressing Ctrl + A tries to save the text as a file instead of selecting all.
MacOS does not use Ctrl as a key, leading to inconsistencies in the key combination behavior.
Involved classes:
https://github.com/TESTARtool/TESTAR_dev/blob/e978aed623ecb068dba755402065a1b278ae3469/core/src/org/testar/monkey/alayer/actions/StdActionCompiler.java#L280-L285
https://github.com/TESTARtool/TESTAR_dev/blob/e978aed623ecb068dba755402065a1b278ae3469/core/src/org/testar/monkey/alayer/actions/StdActionCompiler.java#L340-L345
Posible solution: Implement a setting
ConfigTag
or customizable method protocol that enables users to customize the key combination or choose alternative methods for the text selection and replacement action, considering variations in keyboard shortcuts for different operating systems and language settings.