QTP Interview tips to remember
QTP is an open source test automation framework. It is keyword-driven framework which is application independent and performs most of the possible actions and verifications on an object. Hence, the code for a single object can be used across myriad applications known as polymorphism. In this approach the entire script is developed with keywords. Script is developed in a spreadsheet to be interpreted by another main driver script, which then uses the function library to execute this script completely.The QTP Settings can be used to perform the test settings that are needed for keyword driven Scripting.
Here are some of the best QTP Interview tips to Remember :
1) How Does Run time data (Parameterization) is handled in QTP?
A) 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.
2) What is keyword view and Expert view in QTP?
A) 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.
3) Explain about the Test Fusion Report of QTP?
A) 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.
4) To which environments does a QTP support?
A) 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.
5) What is QTP?
A) QuickTest is a graphical interface record-playback automation tool. It is able to work with any web, java or windows client application. Quick Test enables you to test standard web objects and ActiveX controls. In addition to these environments, QuickTest Professional also enables you to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic 6 applications and .NET framework applications.
6) In how many ways we can add check points to an application using QTP. A) We can add checkpoints while recording the application or we can add after recording is completed using Active screen
7) How does QTP identifies the object in the application?
A) QTP identifies the object in the application by Logical Name and Class.
8) If an application name is changes frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handles?
A) QTP handles those situations using “Regular Expressions”.
9) What is Parameterizing Tests?
A) When you test your application, you may want to check how it performs the same operations with multiple sets of data. For example, suppose you want to check how your application responds to ten separate sets of data. You could record ten separate tests, each with its own set of data. Alternatively, you can create a parameterized test that runs ten times: each time the test runs, it uses a different set of data.
10) What does it mean when a check point is in red color? what do u do?
A) A red color indicates failure. Here we analyze the cause for failure whether it is a Script Issue or Environment Issue or a Application issue.
11) What do you call the window test director – testlab?
A) “Execution Grid”. It is place from where we Run all Manual / Automated Scripts.
12) How do u do batch testing in WR & is it possible to do in QTP, if so explain?
A) You can use Test Batch Runner to run several tests in succession. The results for each test are stored in their default location.
Using Test Batch Runner, you can set up a list of tests and save the list as an .mtb file, so that you can easily run the same batch of tests again, at another time. You can also choose to include or exclude a test in your batch list from running during a batch run.
13) How to export data present in Datatable to an “.xls” file?
A) DataTable.Export “….xls file name…”
14) How to export QTP results to an “.xls” file?
A) By default it creates an “XML” file and displays the results.
15) What scripting language is QTP of?
A) VB Script.