If i entered 2 columns and 4 rows inputs in DDT Like Mango
fruit, Banana Fruit, Brinjal Veget, Carrot Veget.. . My Q
is How to get the 2nd column value for corresponding 1
column input in 3rd row ie, ( i need to get "veget" in
messge box @ run time
Answer Posted / saff
i= inputbox "enter ur string" # say brinjal
r=datatable.getrowcount #get row count
for i=1 to r #loop till the end of the row
datatable.setcurrentrow(i)
aa=datatable.(a ,dtglobalsheet) # column 1 value into aa
if instr(aa,i,1)=1 #compare the strings
bb=datatable(b,dtglobalsheet)
msgbox bb
exit
else
i=i+1
next
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
Explain the concept of object repository & how qtp recognizes objects?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
What are the types of data tables in qtp?
What is the difference between analog and low level recording?
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
Limitations in QTP?
what are the utilities and drivers
How to modify object property in qtp ?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
What do you to script when objects are removed from application?