Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Driven Issue
#1
Not Solved
Hi All,

I have one question. Suppose I have a screen which has a Username , Password , Ok Button.
I have an Excel sheet with 50 Username and Passwords.

I have to data drive it, and each values in the text boz itself.
Like if i data drive the frist one , i have to see the values inside the text boxes.

Can anyone help me out , if i get code thats great [ coz Ankur has said we should be sending code ]

Thanks in advance.....
Reply
#2
Not Solved
i monor correction....i meant [ coz Ankur has said we should NOT be sending code ]
Reply
#3
Not Solved
Use datatable.Import("c:\user.xls") 'this is path for your xls file which 'contain user name and password.
And in your code
Code:
browser("browser").Page("page").wededit("...").set "UserName" 'here

'write the column name which contain user id. same for password.
Hope this will help.
Reply
#4
Not Solved
Hi Karanth ,
Just check with the sample given below:
Code:
datatable.Import("c:\user.xls")
rcount=datatable.getrowcount
for i=1 to rcount
datatable.setcurrentrow(i)
systemutil.run "your appl url path"
browser("browser").Page("page").wededit("...").set datatable("uname",dtglobalsheet)
browser("browser").Page("page").wededit("...").set datatable("pwd",dtglobalsheet)
browser("browser").Page("page").wededit("...").WebButton("OK").Click

browser("browser").Page("page").close
Next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Data Driven Concept s.tambi 1 3,027 04-23-2015, 03:00 PM
Last Post: s.tambi
  Need an Excel Driven web Program - Ready to Pay as well mayajain 0 1,816 04-22-2015, 05:21 PM
Last Post: mayajain
  QTP Global Data Sheet Issue KapilArora 2 2,740 04-26-2012, 05:00 PM
Last Post: Ankesh
  Branching in Keyword driven... vIns 2 3,240 12-23-2011, 06:56 AM
Last Post: vIns
  "Keyword-Driven framework" suresz449 0 2,995 08-26-2011, 11:00 AM
Last Post: suresz449

Forum Jump:


Users browsing this thread: 1 Guest(s)