TESTARtool / TESTAR_dev

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

Allow customization of click/paste and replace text action #377

Open ferpasri opened 1 year ago

ferpasri commented 1 year ago

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:

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.