Rehearsal of QTP in 1 Hr: Interview Questions 61 – 70
While appearing in an interview for a position on HP QuickTest Professional, do a quick rehearsal of your knowledge on this tool.
Here is a collection of 180 short questions, QTP Managers commonly use while interviewing new aspirants for their organization.
The entire rehearsal of these questions can take less than an hour.
Set of Ten Questions
Q. 61: How do you create new test sets in Test Director?
Login to Test Director.
Click on “Test Lab” tab.
Select the Desired folder under which we need to Create the Test Set. (Test Sets can be grouped as per module.)
Click
on “New Test Set or Ctrl+N” Icon to create a Test Set.
<<<<<< =================== >>>>>>
Q. 62: Explain the concept of object repository and how QTP recognizes objects?
Object Repository: displays a tree of all objects in the current component or in the current action or entire test (depending on the object repository mode you selected).
We can view or modify the test object description of any test object in the repository or to add new objects to the repository.
QTP learns the default property values and determines in which test object class it fits. If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description.
If no assistive properties are available, then it adds a special Ordianl identifier such as objects location on the page or in the source code.
<<<<<< =================== >>>>>>
Q. 63: What are the properties you would use for identifying a browser and page when using Descriptive Programming?
“name” would be another property apart from “title” that we can use.
OR
We can also use the property “micClass”.
For example: Browser(“micClass:=browser”).page(“micClass:=page”)….
<<<<<< =================== >>>>>>
Q. 64: I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?
You can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad ” (i.e., where the notepad.exe is stored in the system) in the “Windows Applications Tab” of the “Record and Run Settings window.
<<<<<< =================== >>>>>>
Q. 65: If an application name is changed frequently i.e. while recording it has name, in this case how does QTP handle it?
QTP handles those situations using ?Regular Expressions?. …
<<<<<< =================== >>>>>>
Q. 66: How does QTP identify the objects in the application?
QTP identifies the object in the application by LogicalName and Class.
For example: The Edit box is identified by Logical Name: PSOPTIONS_BSE_TIME20 Class: WebEdit …
<<<<<< =================== >>>>>>
Q. 67: IF we use batch testing, the result shown for last action only. Then how can I get result for every action.
You can click on the icon in the tree view to view the result of every action
<<<<<< =================== >>>>>>
Q. 68: How do we draw a brief comparison of WinRunner & QTP?
Although it is quite difficult to remember so much of the tabulated data as given below, however you can just glance through the contents & present the maximum out of it as per the memory in the event such a question is asked.
Environment Coverage Comparison:
Common environments shared by both WinRunner and QTP:
Web-Related Environments | IE, Netscape, AOL |
JDK, Java Foundation Classes, AWT | |
Symantec Visual Caf� | |
ActiveX Controls | |
ERP/CRM | Oracle: Jinitiator, 11i, NCA |
Custom Client Server | Windows |
C++/C | |
Visual Basic | |
Operating Systems | Windows 98, 2000, NT, ME, XP |
Legacy | 3270, 5250 Emulators |
VT100 |
Environments WinRunner Only:
Custom Client/Server | PowerBuilder |
Forte | |
Delphi | |
Centura | |
Stingray | |
SmallTalk | |
ERP/CRM | Baan |
PeopleSoft Windows | |
Siebel 5, 6 GUI Clients | |
Oracle GUI Forms |
Environments QTP Only:
ERP/CRM | SAP |
Siebel 7.x | |
PeopleSoft 8.x | |
.Net | WinForms |
WebForms | |
.Net controls | |
Web Services | XML, HTTP |
WSDL, SOAP | |
J2EE, .Net | |
Multimedia | RealAudio/Video |
Flash |
Feature Comparison:
Common features found in both WinRunner and QTP:
Record/Replay | ODBC & Excel Connectivity |
Code Editor & Debugger | Recovery Manager |
Shared Object Repository | Rapid Object Import |
Numerous Checkpoints | Analog |
Script & Function Libraries |
Environments for WinRunner Only:
Function Generator | Database Integration |
Run Wizard | TSL |
MDI |
Environments for QTP Only:
ActiveScreen | TestGuard |
Tree View | ScriptFusion |
Data Table | VBScript |
Function Generator | Run Wizard |
<<<<<< =================== >>>>>>
Q. 69: How to Import data from a “.xls” file to Data table during Runtime.
Datatable.Import “…XLS file name…”
DataTable.ImportSheet(FileName, SheetSource, SheetDest)
DataTable.ImportSheet “C:name.xls” ,1 ,”name”
<<<<<< =================== >>>>>>
Q. 70: How to export data present in Datatable to an “.xls” file?
DataTable.Export “….xls file name…”
Continue to Next Set of QTP Rehearsal Questions 71 – 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.