QTP 11 Interview Questions

90.Give me an example where you have used a COM interface in your QTP project?
COM interface appears in the scenario of front end and back end. for eg:if you r using oracle as back end and front end as VB or any language then for better compatibility we will go for an interface. of which COM will be one among those interfaces. Create object creates handle to the instance of the specified object so that we program can use the methods on the specified object. It is used for implementing Automation(as defined by Microsoft).
91.Explain in brief about the QTP Automation Object Model.
Essentially all configuration and run functionality provided via the Quick Test interface is in some way represented in the Quick Test automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in Quick Test have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the Quick Test automation object model, along with standard programming elements such as loops and conditional statements to design your program.
1.If QTP is not currently open:
Choose Start > Programs > QuickTest Professional > QuickTest Professional.
If the Welcome window opens, click Blank Test.
Otherwise, choose File > New, or click the New button.
A blank test opens.
2.If QTP is already open:
Check which add-ins are loaded by selecting Help > About QuickTest Professional.
If the Web Add-in is not loaded, you must exit and restart QTP.
When the Add-in Manager opens, select the Web Add-in, and clear all other add-ins.
Choose File > New, or click the New button.
A blank test opens.
92.How to do load testing for web based Application?
1) Recording a scenario in QTP of web based application.
2) Make 100 copies of that scenario and run the test (scenario run for 100 times)
3) In that case, do the load of application on server.
4) The basic logic of running the copy 100 times is to create same scenario as if 100 users were working.
93.What is the extension of script and object repository files?
Object Repository :
.tsr , Script
.mts, Excel
Default.xls
94.How to suppress warnings from the "Test results page"?
From the Test results Viewer "Tools > Filters > Warnings"...must be "Unchecked".
95.When we try to use test run option "Run from Step", the browser is not launching automatically why?
This is default behavior.
96.What's the role of Checkpoints in QTP?
  • A checkpoint verifies that expected information is displayed in your application while the test is running. Checkpoint is basically a point in the test, which validates for truthfulness of a specific thing in the AUT.
  • There are different types of checkpoints depending on the type of data that needs to be tested in the AUT.
  • It can be text, image/bitmap, attributes, XML etc....
97.What types of checkpoints are offered by QTP?
There are 10 types of checkpoints you can insert in QTP:
1) Standard Checkpoint checks the property value of an object in your application or Web page. The standard checkpoint checks a variety of objects such as buttons, radio buttons, combo boxes, lists, etc.
2) Image Checkpoint checks the value of an image in your application or Web page. For example, you can check that a selected image’s source file is correct.
3) Bitmap Checkpoint checks an area of your Web page or application as a bitmap.
4) Table Checkpoint checks information within a table. For example, suppose your application or Web site contains a table listing all available flights from one place to another. You can add a table checkpoint to check that the time of the first flight in the table is correct.
5) Text Checkpoint checks that a text string is displayed in the appropriate place in your application or on a Web page.
6) Text Area Checkpoint checks that a text string is displayed within a defined area in a Windows application, according to specified criteria.
7) Accessibility Checkpoint identifies areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines.
8) Page Checkpoint checks the characteristics of a Web page. For example, you can check how long a Web page takes to load or whether a Web page contains broken links.
9) Database Checkpoint checks the contents of a database accessed by your application.
10) XML Checkpoint checks the data content of XML documents in XML files or XML documents in Web pages and frames.
98.How to add a standard checkpoint in your test?
1) Start QTP and open your test.In the Open Test dialog box, locate and select your test, then click Open.
2) Save the test as Checkpoint.Select File > Save As. Save the test as Checkpoint.
3) Confirm that the Active Screen option is enabled.If you do not see the Active Screen at the bottom of the QTP window, click the Active Screen button, or choose View > Active Screen.
4) Locate the page where you want to add a standard checkpoint.5) Create a standard checkpoint.In the Active Screen, right-click element in your application and choose Insert Standard Checkpoint.
6) Save the test.
99.How to add a page checkpoint to your test?
The page checkpoint checks that the number of links and images in the page when you run your test is the same as when you recorded your test.
1) Locate the page where you want to add a page checkpoint.
2) Create a page checkpoint.
Right-click anywhere in the Active Screen, and choose Insert Standard Checkpoint.
The Object Selection - Checkpoint Properties dialog box opens.
Note that this dialog box may include different elements, depending on where you click in the Active Screen.
3) Save the test.
100.How run time data (Parameterization) is handled in QTP?
You can enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage.
Data can be typed in or imported from databases, spreadsheets, or text files.
101.How Does Run time data (Parameterization) is handled in QTP?
You can then enter test data into the Data Table, an integrated Spreadsheet with the full functionality of Excel, to manipulate data Sets and create multiple test iterations, without programming, to Expand test case coverage. Data can be typed in or imported from Databases, spreadsheets, or text files.
102.What is keyword view and Expert view in QTP?
Quick Test’s Keyword Driven approach, test automation experts Have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View.
Advanced testers can view and edit their tests in the Expert View, which reveals the underlying industry-standard VBScript that Quick Test Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View.
103.Explain about the Test Fusion Report of QTP?
Once a tester has run a test, a TestFusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining TestFusion reports with QuickTest Professional, you can share reports across an entire QA and development team.
104.To which environments does a QTP support?
QuickTest Professional supports functional testing of all enterprise environments, including Windows, Web, NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, mainframe terminal emulators, and Web services.
105.Explain the QTP Tool interface.
It contains the following key elements:
- Title bar, displaying the name of the currently open test
- Menu bar, displaying menus of QuickTest commands
- File toolbar, containing buttons to assist you in managing tests
- Test toolbar, containing buttons used while creating and maintaining tests
- Debug toolbar, containing buttons used while debugging tests.
Note: The Debug toolbar is not displayed when you open QuickTest for the first time. You can display the Debug toolbar by choosing View > Toolbars > Debug.
- Action toolbar, containing buttons and a list of actions, enabling you to view the details of an individual action or the entire test flow.
Note: The Action toolbar is not displayed when you open QuickTest for the first time. You can display the Action toolbar by choosing View > Toolbars > Action. If you insert a reusable or external action in a test, the Action toolbar is displayed automatically.
- Test pane, containing two tabs to view your test-the Tree View and the Expert View Test Details pane, containing the Active Screen.
- Data Table, containing two tabs, Global and Action, to assist you in parameterizing your test Debug Viewer pane, containing three tabs to assist you in debugging your test-Watch Expressions, Variables, and Command. (The Debug Viewer pane can be opened only when a test run pauses at a breakpoint.)
- Status bar, displaying the status of the test.
106.How QTP recognizes Objects in AUT?
QuickTest stores the definitions for application objects in a file called the Object Repository. As you record your test, QuickTest will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name (determined automatically by QuickTest), and will contain a set of properties (type, name, etc) that uniquely identify each object.
Each line in the QuickTest script will contain a reference to the object that you interacted with, a call to the appropriate method (set, click, check) and any parameters for that method (such as the value for a call to the set method). The references to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties.
107.What are the types of Object Repository’s in QTP?
QuickTest has two types of object repositories for storing object information: shared object repositories and action object repositories. You can choose which type of object repository you want to use as the default type for new tests, and you can change the default as necessary for each new test.
The object repository per-action mode is the default setting. In this mode, QuickTest automatically creates an object repository file for each action in your test so that you can create and run tests without creating, choosing, or modifying object repository files. However, if you do modify values in an action object repository, your changes do not have any effect on other actions. Therefore, if the same test object exists in more than one action and you modify an object's property values in one action, you may need to make the same change in every action (and any test) containing the object.
108.Explain the check points in QTP?
A checkpoint verifies that expected information is displayed in a Application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP.
- A page checkpoint checks the characteristics of a Application.
- A text checkpoint checks that a text string is displayed in the appropriate place on a   Application.
- An object checkpoint (Standard) checks the values of an object on a Application.
- An image checkpoint checks the values of an image on a Application.
- A table checkpoint checks information within a table on a Application.
- An Accessibility checkpoint checks the web page for Section 508 compliance.
- An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application.
- Adatabase checkpoint checks the contents of databases accessed by your web site.
FabGreen Technologies,Madivala-
Fabgreentech.com

No comments:

Post a Comment