Question & Answer
Question
How can you change the playback hot keys of IBM Rational Functional Tester (RFT)?
Cause
By default the F11 key stops the playback. The F12 keys pauses the playback. For these functions you can assign other keys both under Windows and Linux.
Answer
Consider the following steps.
- Close RFT and all RFT enabled applications.
- Modify two lines in the file ivory.properties.
#rational.test.ft.script.playback.stop.hotkey=<value>
#rational.test.ft.script.playback.pause.hotkey=<value>
The value of <value> depends on the operating system.
- Re-start RFT and you playback the RFT script again.
In the examples hereafter the F5 key stops the playback.
Microsoft Windows
In a default installation the path to this file is:
C:\Program Files\IBM\SDP\FunctionalTester\bin\
The file contains two lines that determine the hot keys.
#rational.test.ft.script.playback.stop.hotkey=122
#rational.test.ft.script.playback.pause.hotkey=123
The value of which are decimal numbers. On Microsoft Windows the key codes are the so called Virtual-Key Codes in hexadecimal format. For the ivory.properties file you need the value in decimal format. See the table below.
KEY | HEXADECIMAL VALUE | DECIMAL VALUE |
---|---|---|
F1 | 0x70 | 112 |
F2 | 0x71 | 113 |
F3 | 0x72 | 114 |
F4 | 0x73 | 115 |
F5 | 0x74 | 116 |
F6 | 0x75 | 117 |
F7 | 0x76 | 118 |
F8 | 0x77 | 119 |
F9 | 0x78 | 120 |
F10 | 0x79 | 121 |
F11 | 0x7A | 122 |
F12 | 0x7B | 123 |
For example, to assign the F5 key to stop the playback, you change
#rational.test.ft.script.playback.stop.hotkey=122
into
rational.test.ft.script.playback.stop.hotkey=116
NOTE
In RFT .NET 2005 scripting, F11 is also the key to step into functions in debugging mode. In such case you might want to change RFT F11 into another F-key.
In Linux:
In a standard installation the path to ivory.properties is:
/opt/IBM/SDP70/FunctionalTester/bin
The file contains two lines that determine the hot keys.
#rational.test.ft.script.playback.stop.hotkey=0xFFC8
#rational.test.ft.script.playback.pause.hotkey=0xFFC9
You can see the key code definitions in the file usr/include/X11/keysymdef.h. The values are in hexadecimal format.
KEY | HEXADECIMAL VALUE |
---|---|
F1 | 0xFFBE |
F2 | 0xFFBF |
F3 | 0xFFC0 |
F4 | 0xFFC1 |
F5 | 0xFFC2 |
F6 | 0xFFC3 |
F7 | 0xFFC4 |
F8 | 0xFFC5 |
F9 | 0xFFC6 |
F10 | 0xFFC7 |
F11 | 0xFFC8 |
F12 | 0xFFC9 |
For example, if you want to assign the F5 key to stop the playback, you change:
#rational.test.ft.script.playback.stop.hotkey=0xFFC8
into
#rational.test.ft.script.playback.stop.hotkey=0xFFC2
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21316888