Using host aid keys
The most common host aid keys are Enter, and all the
function keys. If the key is captured within curly braces {} in a script,
the key acts as a host aid key.
About this task
Procedure
Ensure that HCL OneTest™ UI pauses
after sending the keystrokes whenever you press keys that cause the host window to change. Most
function keys cause the host window to change. HCL OneTest UI records
these keystrokes as separate commands to ensure that it pauses after sending a function key to the
host.
TFrame().inputKeys("{F12}");
TFrame().inputKeys("{F3}");
TFrame().inputKeys("logoff{ENTER}");
If
your host application uses other keys to cause the host window to change, manually separate pressing
those keys into separate commands before playing back your scripts. HCL OneTest UI does not
recognize these keys as host aid keys.Example
TFrame().inputKeys("{TAB}SomeHostCommand{ENTER}");
Separate the command after the first host aid key:TFrame().inputKeys("{TAB}");
TFrame().inputKeys("SomeHostCommand{ENTER}");