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


Procedure

Ensure that 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. 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. Functional Tester does not recognize these keys as host aid keys.


Example

For example, If 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}");

+

Search Tips   |   Advanced Search