QuickTest Professional™ - An Automation Tool by Mercury - Questions and Answers

Tuesday, March 06, 2007

QTP Question 27: How to export data present in Datatable to an ".xls" file?

How to export data present in Datatable to an ".xls" file?

DataTable.Export "....xls file name..."

QTP Question 26: How to Import data from a ".xls" file to Data table during Runtime

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"

Wednesday, November 15, 2006

QTP Question 25: How do u create new test sets in Test Director?

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.

Tuesday, September 05, 2006

QTP Question 24: What do you call the window test director - testlab?

What do you call the window test director - testlab?

It’s called "Execution Grid". It is place from where we Run all Manual / Automated Scripts

QTP Question 23: What does it mean when a check point is in red color? What do u do?

What does it mean when a check point is in red color? What do u do?

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

Thursday, August 17, 2006

QTP Question 22: How do you do batch testing in Winrunner & is it possible to do in QTP, if so explain?

How do you do batch testing in Winrunner & is it possible to do in QTP, if so explain?

Batch Testing in WR is nothing but running the whole test set by selecting "Run Testset" from the "Execution Grid”. The same is possible with QTP also. If our test cases are automated then by selecting "Run Testset" all the test scripts can be executed. In this process the Scripts get executed one by one by keeping all the remaining scripts in "Waiting" mode.

Tuesday, August 01, 2006

QTP Question 21: How many ways we can parameterize data in QTP?

How many ways we can parameterize data in QTP?

There are four types of parameters:
Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test.

Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply. In each repetition, or iteration, QuickTest uses a different value from the Data Table.

Environment variable parameters enable you to use variable values from other sources during the run session. These may be values you supply, or values that QuickTest generates for you based on conditions and options you choose.

Random number parameters enable you to insert random numbers as values in your test or component. For example, to check how your application handles small and large ticket orders, you can have QuickTest generate a random number and insert it in a number of tickets edit field.

Wednesday, July 26, 2006

QTP Question 20: What is the Diff between Image check-point and Bit map Check point?

What is the Diff between Image check-point and Bit map Check point?
Image checkpoints enable you to check the properties of a Web image. You can check an area of a Web page or application as a bitmap. While creating a test or component, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. QuickTest captures the specified object as a bitmap, and inserts a checkpoint in the test or component. You can also choose to save only the selected area of the object with your test or component in order to save disk Space For example, suppose you have a Web site that can display a map of a city the user specifies. The map has control keys for zooming. You can record the new map that is displayed after one click on the control key that zooms in the map. Using the bitmap checkpoint, you can check that the map zooms in correctly.

You can create bitmap checkpoints for all supported testing environments (as long as the appropriate add-ins are loaded).
Note: The results of bitmap checkpoints may be affected by factors such as operating system, screen resolution, and color settings.

Monday, July 24, 2006

QTP Question 19: What are Supported Check-Points in QTP?

Tuesday, July 18, 2006

QTP Question 18: What is Object Spy in QTP?

What is Object Spy in QTP?

Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected object’s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.


Index of QTP Questions

  • QTP Question 01: What is QTPro? What is Quick Test Pro? What is Quick Test Professional?
  • QTP Question 02: What's New in QuickTest Professional 8.2?
  • QTP Question 03: Explain QTP Testing process?
  • QTP Question 04: How Does Run time data (Parameterization) is handled in QTP?
  • QTP Question 05: What is keyword view and Expert view in QTP?
  • QTP Question 06: Explain about the Test Fusion Report of QTP?
  • QTP Question 07: To which environments does QTP supports?
  • QTP Question 08: What is QTP or Quick Test Pro?
  • QTP Question 09: Explain the QTP Tool interface
  • QTP Question 10: How QTP recognizes Objects in AUT?
  • QTP Question 11: What are the types of Object Repositorys in QTP?
  • QTP Question 12: Explain the check points in QTP?
  • QTP Question 13: In how many ways we can add check points to an application using QTP?
  • QTP Question 14: How does QTP identifies the object in the application?
  • QTP Question 15: If an application name is changes frequently i.e while recording it has name, in this case how does QTP handles?
  •