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

Answers were Sorted based on User's Feedback



How can i open 5 multiple browser at once through QTP VB script and i want to login with 5 differe..

Answer / ruby

For i = 1 to 5
SystemUtil.Run "iexplore","www.gmail.com"
Next
For i = 0 to 4
Browser("title:=Google","Creationtime:=" & i).Page("title:=Google").WebEdit("name:=Usname").Set Datatable("Username")
Browser("Title:=Google","Creationtime:=" & i).Page("title:=.*").WebEdit("name:=Pwd").Set Datatable("Password")
Browser("Creationtime:=" & i).Page("title:=.*").WebButton
("name:=Submit").Click
Next

Is This Answer Correct ?    1 Yes 0 No

How can i open 5 multiple browser at once through QTP VB script and i want to login with 5 differe..

Answer / 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

More QTP Interview Questions

what is smart identification in qtp? pls any give details? thanks in advance

3 Answers   IBM,


if the excel sheet specified in script is not there,we get run time error how to handle the error ,please anybody explain me in detail

2 Answers   Quinnox,


what are the attributes of QTP?

3 Answers  


can u tell me website address of VBscript with examples.

2 Answers  


How is test case write?

0 Answers  






how can i replace any text from the qtp script with some anothere text

1 Answers   Livetek,


Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

0 Answers   AppLabs,


Hello Everyone, I have a problem. QTP is capturing no action on a particular page in the application that I am trying to automate. But on the same side its working fine on other pages of the same application. Can someone please help me understand the reason behind this inconsistency.

1 Answers  


w is output value

3 Answers   MBT,


How qtp recognizes the object?

0 Answers  


1)What is the Difference Between WaitTo & Sync?

4 Answers   Wipro,


can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

1 Answers  


Categories