I have a login page like username, password and login. I
have to pass the 50 user names and 50 passwords but
how can i test this page with out using parameters?
Answers were Sorted based on User's Feedback
UserName="user1,user2,,,,,,user50"
Password="pass1,pass2,,,,,,pass50"
arrUserName=Split(UserName,",")
arrPassword=Split("password,",")
For i=0 to 50
systemutil.run "iexplore.exe","gmail.com"
Browser("index:=0").page("index:=0").WebEdit("name:=username").set arrUserName(i)
Browser("index:=0").page("index:=0").WebEdit("name:=password").set arrPassword(i)
Browser("index:=0").page("index:=0").Webbutton("name:=login").click
Browser("index:=0").page("index:=0").close
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / venkat qtp
window(login).winedit("agent name").set datatable("username",1)
window("login").wineidt("password").set datatable("password",1)
window("login").winbutton("ok").click
here
edit on datatable name
username password
venkat mercury
sita mercury
lakshmi mercury
rani mercury
ramu mercury
krishna mercury
ravi mercury
..........
| Is This Answer Correct ? | 2 Yes | 5 No |
Could you please any body help me.for example in web table in the first row and first column there are 3 links like l1,l2,l3 having indexes 0,1,2 but second time links will change their order like l2,l3,l1 and indexes also changed how can we handle this situvation with script....
write the regular expression for date format of mm/dd/yy?
10 Answers CTS, HCL,
If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?
Read excel using qtp descriptive programing
Hello everyone, I am trying to parametrize a script. Its clear to me that, we use data table to enter various text data. but if I want to change the radiobutton (e.g. if for first iteration I selected radio button 'A' and for second iteration I want to use 'B' radio button for second iteration) then how can I make it happen. I have tried to define the question but still if not clear plz tell me. Thanks everyone
Whenever we use GETROPROPERTY function.
Where should we turn Smart Identification ON in QTP?
What u say as experience(Interview) "TELL ME ABOUT UR SELf"? As a Fresher(interview) What u Say?
pls guys understand this is question CAREFULLY,,, interviwer asks can u write test case for ATM m/c..i told, insert card enter pw...like this,,but interviwer not happy with that...ur not going to atm center? in ur office system ur testing ATM M/c...why ..how to test? what is the process?
How to test the mandatory fields in QTP?
Write script to fetch the data from global sheet where row number is 3 and parameter is "text"
3 Answers Accenture, Thomson Reuters,
suppose u have two send buttons(same width,height,font) on an application write a descriptive programming