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 Rational® Functional Tester 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. Rational® Functional Tester 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. Rational® Functional Tester does not
recognize these keys as host aid keys.Example
Tab
causes the host window to change,
the following command will cause problems when the script is played back:TFrame().inputKeys("{TAB}SomeHostCommand{ENTER}");
Separate the command after the first host aid key:TFrame().inputKeys("{TAB}");
TFrame().inputKeys("SomeHostCommand{ENTER}");