Tuesday, February 11, 2014

QTP Interview Questions and Answers



QTP Interview Questions and Answers

Q. 1: Tell me briefly about QTP?

If you are going for a position related to QTP, you could expect this as the first question in the interview. The first step on the part of an interviewer is to make you comfortable with a basic question.

Hence try to remember maximum portion from the following content that should be presented to the interviewer if situation arises.

QTP is a graphical interface record-playback automation tool. It is able to work with any web, Java or windows client application. QTP enables you to test standard web objects and ActiveX controls. In addition to these environments, QTP also enables you to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic applications and .NET framework applications...

QTP is Mercury Interactive Functional Testing Tool.

Mercury QTP provides the industry's best solution for functional test and regression test automation - addressing every major software application and environment. This next-generation automated testing solution deploys the concept of Keyword-driven testing to radically simplify test creation and maintenance. Unique to QTP’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.

QTP enables you to test standard Windows applications, Web objects, ActiveX controls, and Visual Basic applications. You can also acquire additional QTP add-ins for a number of special environments (such as Java, Oracle, SAP Solutions, .NET Windows and Web Forms, Siebel, PeopleSoft, Web services, and terminal emulator applications).

<<<<<< =================== >>>>>>

Q. 2: What’s the basic concept of QTP?

QTP is based on two concepts like:

a) Recording

b) Playback

<<<<<< =================== >>>>>>

Q. 3: Which scripting language used by QTP?

QTP uses VB scripting.

<<<<<< =================== >>>>>>

Q. 4: How many types of recording facility are available in QTP?

QTP provides three types of recording methods like:

a) Context Recording (Normal)

b) Analog Recording

c) Low Level Recording

<<<<<< =================== >>>>>>

Q. 5: How many types of Parameters are available in QTP?

QTP provides three types of Parameters like:

a) Method Argument

b) Data Driven

c) Dynamic

<<<<<< =================== >>>>>>

Q. 6: What’s the testing process in QTP?

QTP testing process consist of seven steps like:

1) Preparing to recording
2) Recording
3) Enhancing your script
4) Debugging
5) Run
6) Analyze
7) Report Defects etc.

<<<<<< =================== >>>>>>

Q. 7: How to Start recording using QTP?

Choose Test > Record or click the Record button.

When the Record and Run Settings dialog box opens, to do this;

1) In the Web tab, select Open the following browser when a record or run session begins.

2) In the Windows Applications tab, confirm that Record and run on these applications (opened on session start) is selected, and that there are no applications listed.

<<<<<< =================== >>>>>>

Q. 8: How to insert checkpoints to an image to check enable property in QTP?

Answer - 1: If all images are like push button than you can check the property enabled or disabled.

If you are not able to find that property than go to object repository for that object and click on add remove to add the available properties to that object.

And if you take it as image than you need to check visible or invisible property, there are no enable or disable properties for the image object.

Answer - 2: The Image Checkpoint does not have any property to verify the enable/disable property.

Important aspects that needs to be checked are:

a) Find out form the Developer if he is showing different images for activating/deactivating i.e. grayed out image. That is the only way a developer can show deactivate/activate if he is using an "image". Else he might be using a button having a headsup with an image.

b) If it is a button used to display with the headsup as an image you would need to use the object Properties as a checkpoint.

<<<<<< =================== >>>>>>

Q. 9: How to save your test using QTP?

Select File > Save or click the Save button.

The Save dialog box opens to the Tests folder.

Create a folder which you want to save to, select it, and click Open.

Type your test name in the File name field.

Confirm that Save Active Screen files is selected.

Click Save.

Your test name is displayed in the title bar of the main QTP window.

<<<<<< =================== >>>>>>

Q. 10: How to Run a Test using QTP?

Step-1: Start QTP and open your test.

If QTP is not already open, choose Start > Programs > QuickTest Professional > QuickTest Professional.

# If the Welcome window opens, click Open Existing.

# If QTP opens without displaying the Welcome window, choose File > Open or click the Open button.

In the Open Test dialog box, locate and select your test, then click Open.

Step-2: Confirm that all images are saved to the test results.

QTP allows you to determine when to save images to the test results.

Choose Tools > Options and select the Run tab. In the Save step screen capture to test results option, select Always.

Click OK to close the Options dialog box.

Step-3: Start running your test.

Click Run or choose Test > Run. The Run dialog box opens.

Select New run results folder.

Accept the default results folder name.

Click OK to close the Run dialog box.

Rehearsal of QTP in 1 Hr: Interview Questions 11 – 20

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. 11: How to open a new test using QTP?

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.

<<<<<< =================== >>>>>>

Q. 12: 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.

<<<<<< =================== >>>>>>

Q. 13: What is the extension of script and object repository files?

Object Repository : .tsr , Script : .mts, Excel : Default.xls

<<<<<< =================== >>>>>>

Q. 14: How to suppress warnings from the "Test results page"?

From the Test results Viewer "Tools > Filters > Warnings"...must be "Unchecked".

<<<<<< =================== >>>>>>

Q. 15: When we try to use test run option "Run from Step", the browser is not launching automatically why?

This is default behavior.

<<<<<< =================== >>>>>>

No comments:

Post a Comment