IBM Support

How to change the playback hot keys

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.

  1. Close RFT and all RFT enabled applications.

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

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



    KEYHEXADECIMAL VALUEDECIMAL VALUE
    F10x70112
    F20x71113
    F30x72114
    F40x73115
    F50x74116
    F60x75117
    F70x76118
    F80x77119
    F90x78120
    F100x79121
    F110x7A122
    F120x7B123

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.



    KEYHEXADECIMAL VALUE
    F10xFFBE
    F20xFFBF
    F30xFFC0
    F40xFFC1
    F50xFFC2
    F60xFFC3
    F70xFFC4
    F80xFFC5
    F90xFFC6
    F100xFFC7
    F110xFFC8
    F120xFFC9

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

[{"Product":{"code":"SSJMXE","label":"IBM Rational Functional Tester"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Playback","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.1;7.0.1.1;7.0.1.2;8.0;7.0.1.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21316888