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 in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
how to post xml data from QTP scripts to any application?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
How to record application running on the Virtual machine?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
What are the different types of recovery operation?
What is test object?
I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object
What is the extension of the qtp local repository?
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
Brief the process of testing with UFT?