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
By using QTP can we record any log files written by the application which is in execution?
Key word driven framework
How many tabs are available in debug viewer pane?
What is the extension of the qtp local repository?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
What are the different attributes used with regular expression?
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
Explain different recording modes?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.
What is the basic concept of qtp?
Give the syntax to load function at run time.
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement