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 is qtpro? What is a quick test professional?
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
What is qtpro?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
What is an optional step in qtp ?
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
How do you perform Regreession Testing?
How qtp identifies objects?
What are private functions in QTP? How they can be called from the function library?
How many types of recording facility are available in quicktest professional (qtp)?
How do you know the location Id of an object if you know its index id?
What the differences are and best practical application of Object Repository?
Explain the difference between check point and output value?