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
Explain different types of action in qtp?
What are the properties you would use for identifying a browser and page when using descriptive programming?
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?
Can any one send me the QTP Basic Coding Samples?
Is the qtp course will help to create a virtual object?
How many types of status are there?
Where you are storing your script?
What are the disadvantages of recording test cases in qtp?
How you can decide which type of object repository you have to use?
How to record application running on the Virtual machine?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
Is virtual object supported in low level recording mode?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
Can you write a script to check if the folder exists or not?