I am using excel sheet to export data to QTP but it
selects just one row of data from excel sheel how to import
all rows of excel sheet to QTP during runtime
Answer Posted / chivukula.kumar
datatable.Import("E:\Programming Samples\QTP
Samples\OrderNumbers.xls")
colcount = datatable.GetSheet(k).GetParametercount
rowcount = datatable.GetSheet(K).GetParametercount
shtcount = datatable.Getsheetcount
for i = 1 to rowcount step 1
for j = 1 to colcount step 1
for k = 1 to shtcount step 1
datatable.setcurrentrow(i)
val =datatable.Getsheet(k).GetParameter(j).ValuebyRow(i)
next
next
next
Note : the above script for entire workbook values we can
get .
next
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the steps involved in the recovery scenario wizard?
How you can make an action as re-usable action?
How do you test DLL files using automation Tool QTP?
What is synchronization point in QTP?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
What is the difference between Keyword Driven test and Data Driven test?
Explain the concept of object repository and how quicktest professional recognises objects?
How many scripts did you have?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
How to customize qtp?
How to connect to a database?
When to use shared and local object repository?
How to record application running on the Virtual machine?