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?
Answer Posted / 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 |
Post New Answer View All Answers
Explain the Different types of QTP test assets and their extensions?
can test automation improve test effectiveness?
How you can find length of array in qtp?
Is it possible to change the property value at runtime? How it is possible?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
How does quicktest professional identifies the object in the application?
What is the latest version of qtp?
What does mean by Scope of Automation?n How we defined it?
What is the extension of the qtp local repository?
Can any one send me the QTP Basic Coding Samples?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
What is the diff between image and bitmap check point?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)
How do you do batch testing in wr and is it possible to do in qtp, if so explain?