IBM RFT Interview Questions: Q. 41 to 50
Q. 41: How do we create datapools in RFT?
A datapool is a test dataset, a collection of related data records which supplies realistic
data values to the variables in a test script during test script playback.
We can create data for a datapool right from the scratch or we can import existing data into a new datapool from another RFT datapool or from a .csv file.
Following rules are followed while working with datapools:
1) While importing data, we need to import the data into the same RFT project as the test scripts that access the data.
2) While importing data from a TestManager datapool, we need to first associate a RFT project with a Rational project to use the TestManager datapool.
<<<<<< =================== >>>>>>
Q. 42: What type of changes we can do in a datapool?
After we data-drive a test to create a datapool or create an empty datapool, we can edit the records and variables in the datapool.
We can make the following changes to a datapool:
1) Add, remove, move, or edit a record
2) Add, remove, move, or edit a variable
3) Edit datapool values
4) Cut, copy, or paste a cell, a record, or a variable
<<<<<< =================== >>>>>>
Q. 43: How do we replace literal values in a script with datapool references?
We can easily replace literal values in an existing script with datapool references to add realistic data to the script. We can find and replace all literal values, or just the number, string, or Boolean literals with a datapool reference.
We can add a literal value from a script to a datapool. If we do not use an existing datapool variable, the same literal values (the values that were captured when we recorded the test script) are used each time we run the script.
<<<<<< =================== >>>>>>
Q. 44: Which events take place when we run a script?
When we run a script the following events take place:
1) The verification point accesses the data in the datapool creating the expected result from the baseline and the active datapool record.
2) The datapool reference resolves and supplies data to the verification point.
3) The expected result is compared to the actual result.
4) Expected and actual results are recorded in the log. Any deviation from the expected results are logged as a failure in the test log.
<<<<<< =================== >>>>>>
Q. 45: How many types of datapool record selection orders are available in RFT?
Test datapool record selection order determines how a test script accesses the records in the test script’s associated datapool when we play back the test script.
Two types of datapool record selection order are used:
1) Sequential record selection order: Is used to make a test script access records in the datapool in the order that they appear in the datapool. It is the default datapool record selection order.
2) Random record selection order: Is used to make a test script access records in the datapool randomly. It accesses every record in the datapool once.
<<<<<< =================== >>>>>>
Q. 46: What are the environmental prerequisites before playback of scripts?
The state of both the environment and the application-under-test can affect script playback. If the recorded environment and the playback environment are different, playback problems can occur.
Following essential pre requisites need to be ensured before playing back a script:
1) Ensure that the application-under-test is in the same state that it was in when we recorded the script.
2) Ensure that any applications and windows that were open, displayed, or active when we started recording the script must be open, displayed, or active when we start playback.
3) Ensure to restore any relevant network settings, active databases, and system memory to the same state as when the script was recorded.
Multiple open instances of the application-under-test will cause an ambiguous recognition error during the playback.
<<<<<< =================== >>>>>>
Q. 47: What actions are performed when we run a script from RFT?
When we run a script from RFT, it plays back all our recorded actions, like starting an application, the actions we perform in the application, verification points, and stopping the application.
The Playback Monitor starts and provides information as the script plays back. After the script runs, a log file gets displayed.
<<<<<< =================== >>>>>>
Q. 48: What happens when we run a script from TestManager?
When we run a script, TestManager creates a temporary suite, runs the suite, and removes the suite after the run is completed.
We can run a script either from the TestManager Test Scripts window or from the TestManager File menu.
<<<<<< =================== >>>>>>
Q. 49: Out of Test case or test script, which one should be run to generate test case results?
To generate test case results, we should run the test case instead of the script.
When we run a script, the TestManager does not generate test case coverage results – even if the script is associated with a test case.
<<<<<< =================== >>>>>>
Q. 50: What is the process of debugging of scripts in RFT?
We can use the same process to debug a RFT script as we would use to debug other Visual Basic or Java applications.
In Functional Tester- Java Scripting; scripts are recorded in the Java programming language. Debugging these scripts is the same process as debugging a conventional Java application.
In Functional Tester – VB.NET Scripting; scripts are recorded in the Visual Basic programming language. Debugging these scripts is the same process as debugging a conventional Visual Basic application.
Continue to Next Part : Q 51 to 60

An expert on R&D, Online Training and Publishing. He is M.Tech. (Honours) and is a part of the STG team since inception.