Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The method for transferring data from Excel to QTP is as follows:

  1. Open your Excel file containing the data you want to use in QTP.
  2. Select the data you want to transfer and copy it to the clipboard.
  3. Open QTP and navigate to the Test Data pane.
  4. Click on the Add DataTable button and select the Excel file you want to use.
  5. In the DataTable pane, click on the first cell under the column where you want to paste the data.
  6. Paste the data you copied from Excel into the cell.
  7. Repeat steps 5-6 for each row of data you want to transfer.
  8. Save the DataTable and use it in your QTP script to access the data.

Alternatively, you can use the Data Driver Wizard in QTP to create a connection to your Excel file and automatically transfer the data into your test script.