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
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 |
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 |
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 |
what is a good testcase?
What is the dis advantage of check points in QTP, if any?
What do you do if QTP doesn't recognize object ,what action should be taken
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
Can any suggest me what is exposure testing?
What is the DIFF Between PROJECT AND PRODUCT?When Company will need Product?
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?
from what stage you will start automation in your project
Diff. between keyword driven Data driven testing?
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
How to create a Runtime property for an object in QTP?
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?