Typing on the SUT
There are several different methods Eggplant Functional (EPF) can use for typing text on systems under test (SUTs). You can type directly into the SUT in Live Mode, automate keystrokes using the TypeText
command in your script, and even encode text like passwords using the TypeEncodedText
command.
Typing in Live Mode
When you are controlling the SUT through Eggplant Functional most of your keystrokes are automatically sent to the SUT. However, there are a few keystrokes and key combinations that are intercepted by the Eggplant Functional computer before they can be sent to the SUT. (For example, on Mac OS X, Command-Tab changes focus to the next application.)
To send one of these keyboard shortcuts to the SUT, choose the shortcut in the Control menu.
Automating Keystrokes Using the TypeText Command
You can automate keystrokes on the SUT by using the TypeText
command in your script. TypeText
takes any number of the following parameters, separated by commas:
- String: Text in quotation marks, typed literally.
- TypeText Keyword: The name of a non-character key (such as Escape), or key that cannot be identified by a character alone, such as keypad numbers. See the TypeText Keywords for a list of all
TypeText
keywords.
Examples: The TypeText Command
TypeText "Sarah Smith"// Types Sarah Smith on the SUT.
TypeText "Sarah",space,"Smith" // Types Sarah Smith on the SUT.