How do you remap the PF keys in IBM Rational Functional Tester Extension for Terminal-based Applications (FTE) to use a certain sequence for functional keys?
Your applications use a customized ANSI terminal, but functional keys are remapped and use the sequence from VT220 terminal type. You want to remap the following sequence, for example.
While sending square brackets, you need to follow the HACL rules. Keep in mind the following points, when you encode the value field.
- BRACKET ENCODING
Host On-Demand supports the ability to process SendKeys macros. Therefore to send a bracket, you need to use all double brackets [[ ]]. FTE translates single open and close brackets [ ] as field boundaries for SendKeys macros.
You can find more information about SendKeys, in the ECLPS class in the Host Access Class Library documentation, ECLReference.html.
- CARAT ENCODING
You can use the carat (^) to send characters that FTE cannot display. Put a ^ in front of any character with a value greater than or equal to A (hex 41,decimal 65) to translate to that value minus hex 40 or decimal 64.
^ A = = hex 01, ^B = = hex 02, and so on.
If you want to get a ^ into the data stream, you use two ^. In other words:
^^ is equal to ^ in the data stream.
- UNICODE ENCODING
You can use Unicode encoding to put displayable and nondisplayable characters into the data stream. Unicode encoding uses the format \uxxxx, where xxxx is two hex bytes. The value for the escape character is \u001b.
If you know the Unicode character, this is the easiest way to remap.
Switch off the NumLock key, otherwise FTE sends a wrong sequence during playback.