IBM RFT Interview Questions: Q. 61 to 70
Q. 61: What is the criteria to assign a recognition score to objects in RFT?
RFT uses a criteria to assign a recognition score to objects in the application under test. For example, if the object exactly matches the recognition properties in the test object map, its score is 0. If the object has one property with a weight of 100 that does not match, its score is 10,000. If the object has two properties that do not match, its score is 20,000, and so on. The higher the recognition score, the less exact the match.
We can enter our own values to set thresholds for recognition scores, such as the maximum acceptable recognition score, last chance recognition score, ambiguous recognition scores difference threshold, and warn if accepted score is greater than some predefined value.
During the playback, the recognition scores for a test object’s recognition properties get added and the total is compared with the thresholds set in the ScriptAssure Page.
<<<<<< =================== >>>>>>
Q. 62: How can we use ScriptAssure feature of RFT more effectively?
Following best practices can help us to effectively use the ScriptAssure feature of RFT:
1) Whenever we want the script to play back faster and with fewer warnings, set the thresholds high. The recognition is less fussy but more prone to error.
2) If recognition is weak, examine the test object map. If the application has changed permanently, update the test object map to reflect the change. In an internationalization situation, change the label of the test object, not its accessible name.
3) If the application has a dynamic object or if several versions of the application are slightly different, correct versions of an object, replace the recognition property with a regular expression. We can also use a numeric range to accept more than one value of a property.
4) If it is late in the development cycle and we are doing maintenance, verify that the scripts work and have the best possible recognition by setting the warning level to High. We will receive warnings about possible problem areas, and if we do, fix the map.
<<<<<< =================== >>>>>>
Q. 63: How does ambiguous object recognition takes place during testing by RFT?
Ambiguous recognition occurs when RFT can not uniquely identify an object in the system-under-test. This commonly happens when RFT cannot differentiate between an instance of the application under test started by a script playback and an instance of the same application inadvertently left open previous to script playback.
Ambiguous recognition will cause script playback failure unless the duplicate application is closed.
Thus if RFT finds more than one instance of the application under test during the playback of a script the Ambiguous Recognition window will open allowing you to close the duplicate instance and resume playback.
<<<<<< =================== >>>>>>
Q. 64: How can we prevent ambiguous recognition in RFT?
Ambiguous recognition takes place when residual windows are left open from a previous playback of a test script.
Following actions can handle this problem:
1) Close the last action recorded in the test script in the application under test.
2) If script playback fails, close all windows opened by script playback before replaying the script.
<<<<<< =================== >>>>>>
Q. 65: How to deal with ambiguous recognition in RFT?
If the Ambiguous Recognition window opens correct the situation and restart playback.
The Ambiguous Recognition window opens and playback pauses.
1) Minimize open windows until the Ambiguous Recognition window is visible.
2) Find and close the duplicate application instance using the information in the Ambiguous Recognition window.
3) Click OK in the Ambiguous Recognition window to resume the playback.
<<<<<< =================== >>>>>>
Q. 66: How can we view the results after the playback of script in RFT?
After playback of script finishes, we can view the results in the log.
These results include all logged events, like verification point failures, script exceptions, object recognition warnings, and any additional playback information.
We can view The RFT logs in Functional Tester or in the Test Log window of TestManager, by setting the logging preferences.
<<<<<< =================== >>>>>>
Q. 67: What are the types of logs available to view the script playback results in RFT?
Following types of RFT logs are available to view the playback results of our scripts.
All these logs contain the same information but in following different formats:
1) Text Format: Displays a log in ASCII format in the Functional Tester script window.
2) HTML Format: Displays a log in HTML format in our default browser.
3) TestManager Logs: Displays RFT log information in the Test Log window of TestManager. We need to associate a Functional Tester project with the current Rational project to display and manage logs in TestManager.
4) TPTP: Displays a log using TPTP in the Functional Tester script window.
<<<<<< =================== >>>>>>
Q. 68: What is the use of logging page in RFT?
Logging page is used in RFT to set log and comparator options, like preventing the script launch wizard from displaying on playback, displaying the log viewer after playback, and displaying a message before overwriting an existing log.
Logging page is helpful to indicate the type of log generated after the script playback.
<<<<<< =================== >>>>>>
Q. 69: What are the options available in the logging page?
The Logging page contains the following options:
1) Don’t show script launch wizard option: Prevents the script launch wizard from displaying each time we play back a script.
2) Display log viewer after script playback option: When selected, displays the log after we play back a script. If the log type is TestManager, the Test Log window of TestManager displays the log. If the log type is HTML, the log opens in the default browser. If Text, the log opens in the Script Window of RFT.
3) Prompt before overwriting an existing log option: When selected, prompts us before we overwrite a log.
4) Log a screen snapshot when playback fails option: When selected, takes a screen snapshot at the time of the failure and stores it in the log. Clear checkbox to save storage space (172 KB per snapshot). This option is not supported in TestManager log type.
<<<<<< =================== >>>>>>
Q. 70: What is the use of Test Log window of TestManager in RFT?
Test Log window of TestManager is useful for the following functions:
1) Viewing of test results.
2) Filtering of log data.
3) Opening the script, which generates a log event in the appropriate script development tool. For example, if we create a RFT script and run it from TestManager, when we click a log event, RFT opens the script.
4) Analyzing the results of a log in the RFT Verification Point Comparator.
5) Submitting a defect for a failed test case or for a failed log event. The log fills in build, configuration, and script information in the Rational ClearQuest defect form.
6) Previewing or printing of data displayed in the active log in the Test Log window.
Continue to Next Part : Q 71 to 80
An expert on R&D, Online Training and Publishing. He is M.Tech. (Honours) and is a part of the STG team since inception.