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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different types of action in qtp?

649


What are the properties you would use for identifying a browser and page when using descriptive programming?

715


Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

1613


Can any one send me the QTP Basic Coding Samples?

1712


Is the qtp course will help to create a virtual object?

1612






How many types of status are there?

681


Where you are storing your script?

723


What are the disadvantages of recording test cases in qtp?

680


How you can decide which type of object repository you have to use?

785


How to record application running on the Virtual machine?

736


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1687


Is virtual object supported in low level recording mode?

715


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

1493


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

678


Can you write a script to check if the folder exists or not?

601