Using a keyboard shortcut to record an application instance
If you want to capture only the actions that you perform on a specific application instance during the recording of a test script, you can use a keyboard shortcut to enable that application instance to be recorded. The recording monitor then captures only the actions that you perform on the application that you enabled by using the keyboard shortcut.
Procedure
-
Go to HCL OneTest™ UI.
in The Type StartApp key combination field is enabled by default. The default keyboard shortcut to enable an application instance to be recorded is left Ctrl+ right Shift. You can change the default keyboard shortcut by completing the following steps:
- Clear the Use default check box for the Type StartApp key combination field.
- Enter a keyboard shortcut in the Type StartApp key
combination field.Important:You can use only the following keyboard shortcuts to enable an application instance to be recorded when you record a test script:
- Left Ctrl + right Shift
- Left Ctrl + any alphabet key
- Click Apply.
You have modified the default keyboard shortcut. You must use this keyboard shortcut to enable an application instance to be recorded.
- Select the Functional Test perspective.
-
Click the Record a Functional Test Script
icon from the HCL OneTest™ UI toolbar.
The Record an IBM Rational Functional Tester script dialog box is displayed.
-
Complete the fields to record a test script and click
Finish.
The recording monitor window opens.
-
Click the instance of the application that you want to record and then press
the keyboard shortcut that you created.
The application is enabled to be recorded, and the following message is displayed in the recording monitor:
<application name> application added successfully
The recording of the test script captures only the actions that you perform on the enabled application instance. All actions that you perform on any other application instances are not captured.