Method and system for improving keyboard input in automated testing
AssigneeMicro Focus LLC
InventorsGaoyang Zhou, ChengZhe Xu, Yuxiang Zhang
Life of this patent
Estimating the term…
Abstract
Method and system to improve keyboard input in an automated test environment. The method includes determining a keyboard layout. The method also includes receiving an input, wherein the input comprises a plurality of characters. The method further includes processing the input to determine an input delay between each character of the plurality of characters and entering each character of the plurality of characters with the determined input delay between each character.
Claims20
A method to improve keyboard input in automated testing, the method comprising:
- determining a keyboard layout for a keyboard hardware input device usable by a human user for character-by-character typing of a string of a plurality of characters;
- receiving the string as an input via a copy (ctrl+c) and paste (ctrl+v) operation that results in a simultaneous input of an entirety of the string;
- processing each character of the string, wherein the processing comprises determining an input delay to be added between each character of the string based on a distance between each key associated with each character of the string;
- and
- during the automated testing, entering each character of the string non-simultaneously with the input delay added between each character of the string to mimic the character-by-character typing of each character of the plurality of characters of the string by the human user using the keyboard hardware input device.
A system, comprising:
- a keyboard;
- a processor;
- and
- a memory coupled with and readable by the processor and storing therein a set of instructions which, when executed by the processor, cause the processor to improve keyboard input in automated testing by:
- determining a keyboard layout for a keyboard hardware input device usable by a human user for character-by-character typing of a string of a plurality of characters;
- receiving the string as an input via a copy (ctrl+c) and paste (ctrl+v) operation that results in a simultaneous input of an entirety of the string;
- processing each character of the string, wherein the processing comprises determining an input delay to be added between each character of the string based on a distance between each key associated with each character of the string;
- and
- during the automated testing comprising a device-level replay simulating the character-by-character typing of the string by the human user, entering each character of the plurality of characters of the string non-simultaneously with the input delay added between each character.
A tangible non-transitory computer readable storage medium comprising instructions that when executed cause a machine to:
- determine a keyboard layout for a keyboard hardware input device usable by a human user for keystroke-by-keystroke entry of a string of a plurality of characters;
- receive the string as an input via a copy (ctrl+c) and paste (ctrl+v) operation that results in a simultaneous input of an entirety of the string;
- process each character of the string, wherein when executed to process each character is the string, the instructions cause the machine to determine, based on a distance between each key associated with each character of the string, an input delay to be added between each character of the string;
- and
- during automated testing, enter each character of the plurality of characters of the string with the input delay added between each character to mimic a manual character-by-character entry each character of the plurality of characters of the string by way of the keyboard hardware input device.
Dependencies are inferred from the claim text.