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

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

1402


How many scripts did you have?

1699


If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

1743


Explain hybrid framework with advantages and disadvantages?

543


What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?

1795






There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

1626


What are the features and benefits of quick test pro (qtp 8.0)?

601


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1556


Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

656


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

1877


hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

1928


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1491


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1504


How to delete an object from the object repository?

592


How many types of recording modes are there?

597