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

what is a good testcase?

3 Answers   Wipro,


What is the dis advantage of check points in QTP, if any?

6 Answers   BirlaSoft,


What do you do if QTP doesn't recognize object ,what action should be taken

11 Answers   Lehman Brothers,


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

0 Answers   TCS,


Can any suggest me what is exposure testing?

0 Answers   Value Labs,






What is the DIFF Between PROJECT AND PRODUCT?When Company will need Product?

5 Answers  


Is QTP Object Oriented language or Object Based language? What are the OOPS concepts it will support? Why it wont support all the OOPS concepts?

1 Answers   CTS,


from what stage you will start automation in your project

5 Answers   TCS,


Diff. between keyword driven Data driven testing?

8 Answers   CTS, IBM,


pls tell me how will you write the vb script in QTP for DataDriven test from Excel sheet for multiple userid and password explain with example

6 Answers   Ordain Solutions,


How to create a Runtime property for an object in QTP?

6 Answers  


After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?

6 Answers  


Categories