QTP Data Table Having 10 records with 10 to 15 fields(lets
say).now i want to get alternative records from datatable.pls
can any one answer it?

Answers were Sorted based on User's Feedback



QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative reco..

Answer / veeranki naveen goud

set dtsheet1 = datatable.GetSheet(1)
rcount = dtsheet1.GetRowCount
ccount = dtsheet1.GetParameterCount
For i = 1 to rcount step 2
dtsheet1.SetCurrentRow i
For j =1 to ccount
n = dtsheet1.GetParameter(j).ValueByRow
(i)
msgbox n
Next
Next

Is This Answer Correct ?    13 Yes 0 No

QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative reco..

Answer / veeranki naveen goud

set dtsheet1 = datatable.GetSheet(1)
rcount = dtsheet1.GetRowCount
ccount = dtsheet1.GetParameterCount
For i = 1 to rcount step 2
dtsheet1.SetCurrentRow i
For j = 1 to ccount
n = dtsheet1.GetParameter(j).ValueByRow(i)
msgbox n
Next
Next




Regards,
Veeranki Naveen,
Noida.

Is This Answer Correct ?    4 Yes 1 No

QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative reco..

Answer / pushkar1206

datatable.AddSheet"pushkar"
datatable.ImportSheet "C:UserspushkarDesktopBook1.xls","Sheet1","pushkar"
rw=datatable.GetSheet("pushkar").GetRowCount
clm=datatable.GetSheet("pushkar").GetParameterCount
For i=1 to rw step 2
For j=1 to clm
a=datatable.GetSheet("pushkar").GetParameter(j).valuebyrow(i)
msgbox a
Next
Next

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

How u perform exception handling in QTp,what is other name for ths?

2 Answers  


Which environments are supported by hp qtp?

0 Answers  


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

0 Answers  


What is the use of Accessibility check point?

3 Answers  


what is the process to follow between writing the test cases & then atomating it?

1 Answers  






How to change the scripts from Per-Action object repository to shared object repository

1 Answers  


What is LoadRunner?

1 Answers   Crea,


Pls explain me the difference between ........ Description.Create and CreateObject

5 Answers  


what area in a web application cannot be automated.

1 Answers  


how to test a java project throughqtp?while testing a vb project we generally do vb scripting. but while testing java project do we use java script .plz some one can send me the manual for it my email roy_samata@yahoo.com thanks in advance

1 Answers  


Hi friends, In a particular test how many maximum call to new actions we can call?It reusable or normal actions what ever it is .

1 Answers   AppLabs,


Can abody explain me Send keys concept

1 Answers   Cap Gemini,


Categories