IP Library Granted Patent US 12693952
Granted Patent B2
US 12693952 · App. 18/234,821 · Granted Jul 28, 2026

Method and system for improving keyboard input in automated testing

Inventors: Gaoyang Zhou (Shanghai, CN); ChengZhe Xu (Shanghai, CN); Yuxiang Zhang (Shanghai, CN)
Assignee: Micro Focus LLC
G06F11/26G06F3/04886G06F11/2733G06F11/3041G06F11/3668G06F11/3696G06F11/3698
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12693952
App. No.
18/234,821
Granted
Jul 28, 2026
Kind
B2
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.

Claims (35)

1 . 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.

2 . The method of claim 1 , wherein the distance between each key of the determined keyboard layout is measured using concentric circles.

3 . The method of claim 2 , wherein each concentric circle that is between a key and a next key adds additional time to the input delay between those keys.

4 . The method of claim 1 , wherein determining the keyboard layout comprises determining a location of a keyboard and selecting a layout based on the determined location of the keyboard.

5 . The method of claim 1 , further comprising selecting an input model for determining the input delay based on the determined keyboard layout.

6 . The method of claim 1 , wherein determining the input delay to be added between each character of the plurality of characters of the string comprises applying a keyboard model anthropomorphic algorithm.

7 . The method of claim 1 , wherein the automated testing further comprises Unified Functional Testing Device Replay.

8 . The method of claim 1 , wherein the entering comprises simulating the character-by-character typing of the string by the human user by artificially adding the determined input delay between of each character of the plurality of characters of the string.

9 . The method of claim 1 , wherein the input delay provides for simulating the input received via the ctrl+c and paste ctrl+v operation as the simultaneous input of the entirety of the string as instead receiving each character of the plurality of characters of the string via the character-by-character typing by the human user.

10 . 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.

11 . The system of claim 10 , wherein the distance between each key of the determined keyboard layout is measured using concentric circles.

12 . The system of claim 11 , wherein each concentric circle that is between a key and a next key adds additional time to the input delay between those keys.

13 . The system of claim 10 , wherein determining the keyboard layout comprises determining a location of the keyboard and selecting a layout based on the determined location of the keyboard.

14 . The system of claim 10 , wherein when executed by the processor, the set of instructions further cause the processor to improve keyboard input in automated testing by selecting an input model for determining the input delay based on the determined keyboard layout.

15 . 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.

16 . The tangible non-transitory computer readable storage medium of claim 15 , wherein the distance between each key of the determined keyboard layout is measured using concentric circles.

17 . The tangible non-transitory computer readable storage medium of claim 16 , wherein each concentric circle that is between a key and a next key adds additional time to the input delay between those keys.

18 . The tangible non-transitory computer readable storage medium of claim 15 , wherein when executed to determine the keyboard layout, the instructions cause the machine to determine a location of a keyboard and select a layout based on the determined location of the keyboard.

19 . The tangible non-transitory computer readable storage medium of claim 15 , wherein when executed, the instructions further cause the machine to select an input model for the determination of the input delay.

20 . The tangible non-transitory computer readable storage medium of claim 19 , wherein when executed to select the input model, the instructions cause the machine to select the input model based on the determined keyboard layout.