Tutorial-4 How do we record a script using Rational Functional Tester-RFT
A suggestion of great value:
Before practicing these Tutorials on “Rational Functional Tester – IBM RFT”, it is recommended that you acquire a preliminary working knowledge of using this wonderful tool –“Rational Functional Tester”. This can be easily attained by careful study of the“Frequently Asked Questions � FAQ�s” brought to you by this web site for the first time by Clicking on the following link:
Learn the Basics of RFT through FAQ’s
<<<<<<<< =========== >>>>>>>>
This tutorial describes a method of recording a script in Rational Functional Tester � RFT from IBM.
Step- 1: Setting of the recording options.Click “Window” > “Preferences” to access the RFT options. In the tree hierarchy, click the plus sign (+) on the side of “Functional Tester ” to expand the preferences. Define the desired recording options. Close the preferences after completion.
Step – 2: Click the “Record a Functional Test Script” button or click “File” > “New” > “Functional Test Script Using Recorder”. The “Record a Functional Test Script” dialog box opens.
Step – 3: In the “Record a Functional Test Script” dialog box, select the project to which the new script shall be associated. Provide a name for the new script. The script name should not contain space or special characters like : $ / : & * ? ” < > | # % –
Step – 4: In case it is required to keep the script under source control, Check mark “Add the script to Source Control”. This will add the script to “ClearCase”, however the script shall remain checked out and we are able to make changes in it.
Step – 5:
a) Click “Finish” to open the Recording Monitor & start the recording.
RFT will create a local object map for our script by default.
b) Click “Next” to open the “Select Script Assets page”, In case we wish to use a different test object map, helper superclass, or test datapool.
c) From the “Select Script Assets page”, we can define the datapool record selection order and we can also change the datapool associated with the script.
Step – 6: Upon opening of the Recording Monitor and starting of the recording after Step -5, Click the “Display Help” icon for getting information on the toolbar buttons and regarding operation of the monitor.
Step – 7: Click the “Start Application” button on the “Recording” toolbar to start the test application. Perform the desired actions on the running application.
Step – 8:
a) For recording a verification point, identify the object in the application.
b) Click anywhere in the application window or the dialog box.
c) Click the “Insert Verification Point or Action Command” button.
Step – 9: Click the “Insert Script Support Commands” button for inserting any special features into the script. Features can be a call script command, log entry, timer, script delay command, or comment etc.
Step – 10: Close the application, if we want closing of the application to be part of the script.
Step – 11: Click the “Stop Recording” button to finish the recording.
This process writes the script and object map into the project directory. RFT window gets restored and the recorded script gets displayed.