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



I have a login page like username, password and login. I have to pass the 50 user names and 50 pass..

Answer / dinesh1433

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

I have a login page like username, password and login. I have to pass the 50 user names and 50 pass..

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

Post New Answer

More QTP Interview Questions

How to call the userdefined functions to script? If i am stored 'add()' function in Library functions folder. i want to cal that function in my script.

4 Answers  


What are test settings and global settings?

0 Answers  


HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif

7 Answers   Xavient,


how qtp identify two objects having same name, supose objects are in same page also with same name,specify spl feature.

5 Answers   IGT, Microsoft,


how to make connection to a remote mysql database in qtp any one can please provid eme deatail steps.

1 Answers  






How do we do DOM programming in QTP.Could you explain with an example. If possible please provide some material or link related to DOM Programming.

0 Answers  


What are the main attributes of test automation?

3 Answers  


How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

0 Answers   TCS,


What is difference between Recording time object identification and Run time (Execution) time.

0 Answers   Tech Mahindra,


How to export data in excelsheet to qtp without using datatable.

4 Answers  


What is the meaning Work bench?

0 Answers  


Hi all. Could anyone tell me the difference between an Action and a Function in QTP. Thanks in advance and Merry Christmas.

3 Answers   IBM,


Categories