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


Please Help Members By Posting Answers For Below Questions

How many tabs are available to view your test in a test pane and what are they?

567


What are the different recording modes and how do they work?

622


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1287


Does Low-level recording capture mouse movements?

586


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1680






I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

1731


How many types of actions are there in quicktest professional?

516


For which type of projects the iterative model is not suitable?

1437


Why is action split used by qtp?

564


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1525


What is the quicktest professional (qtp) testing process?

572


how to prepared for first for the first interview?

1801


What is 'sleep' in sync point?

631


What is action split and the purpose of using this in qtp?

537


If you are testing a web application then what will you test in that application?

1544