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
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
How many scripts did you have?
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 ?
Explain hybrid framework with advantages and disadvantages?
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?
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?
What are the features and benefits of quick test pro (qtp 8.0)?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
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?
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
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
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
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.
How to delete an object from the object repository?
How many types of recording modes are there?