How can i open 5 multiple browser at once through QTP VB
script and i want to login with 5 different credentials i
already tried with this code but its entering credentials
only for first browser and am using datatable to
parameterize
Answer Posted / amarendra kothuru
Using Data parameterization, we can do that or in other
purpose also
Method1:
var_RowCount = DataTable.GetSheet("Action1").GetRowCount
For i = 1 to var_RowCount
DataTable.SetCurrentRow(i)
SystemUtil.Run "iexplore","www.abcd.com"
uname = DataTable("Username",dtLocatSheet)
psd = DataTable("Password",dtLocatSheet)
Browser("index:=0").Page("title:=.*").WebEdit
("name:=Usname").Set uname
Browser("index:=0").Page("title:=.*").WebEdit
("name:=Pwd").Set psd
Browser("index:=0").Page("title:=.*").WebButton
("name:=Go").Click
Next
Method2:
For i = 1 to 5
SystemUtil.Run "iexplore","www.abcd.com"
Next
For i = 1 to 5
Browser("index:=" & i).Page("title:=.*").WebEdit
("name:=Usname").Set uname
Browser("index:=" & i).Page("title:=.*").WebEdit
("name:=Pwd").Set psd
Browser("index:=" & i).Page("title:=.*").WebButton
("name:=Go").Click
Next
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Does quicktest professional is unicode compatible?
How many types of recording modes in qtp? Which will be used when?
What is difference between design time and run time data table?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
Write a script to customize the test results in PDF and HTML format.
How does qtp identify objects in the application?
How often were they executed?
give me the code to save all messages of inbox of gmail into a folder and notepad
How to use descriptive programming?
What are the challenges u faced in testing with crm domain? How u overcome with?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com
What is the difference between keyword view and expert view?
How to execute a winrunner script in quicktest professional?
Hi All, How to Compare two strings character by character in QTP