Running Parallel Test on One Machine with Multiple instance of Firefox

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Running Parallel Test on One Machine with Multiple instance of Firefox

Nivrutti
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

⇜Krishnan Mahadevan⇝

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <[hidden email]> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLmRL5GNj%2BuR%3DXrOgwq2%2B%3Dn%2BKxEpRjYOD7krtO%2BX%2BDcwEg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

robbiewinston-2
In reply to this post by Nivrutti
Grid does not make your tests parallel.  You have to run your tests in parallel in order to take advantage of Grid.  

How you run tests in parallel depends on the test framework you use

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/232bfc61-fc0b-4106-9b7d-0d3664784daf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

Vikram
In reply to this post by ⇜Krishnan Mahadevan⇝
Hi Krishnan,

Thanks for the detailed blog.   Still I've few questions unanswered

  Single Machine

  1.  your blog solution can be used to certify a website on multiple browsers right ?

  2.  can't Grid be used for this purpose ?  

  3. when to go for Grid approach vs solution given in your blog ?

  4.  can I use this method to divide test cases and run them on multiple instances of same browser ?  e.g. total 90 cases , 30 each running on chrome1 , chrome 2 and chrome 3

  Multiple Machine

  1. if  single machine is powerful enough to support X number of test cases run simultaneously on 3 different browsers , then when to go for multiple machine approach ?


  Please share your good practices wrt parallel / distributed

   Thanks in advance.

Regards,
Vikram


On Friday, August 2, 2013 8:08:43 PM UTC+5:30, Krishnan wrote:

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J">new...@...> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J">seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

⇜Krishnan Mahadevan⇝
Answers inline

Thanks and Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


From: Vikram <[hidden email]>
Reply-To: <[hidden email]>
Date: Thursday, 26 September 2013 4:23 PM
To: <[hidden email]>
Subject: Re: [selenium-users] Running Parallel Test on One Machine with Multiple instance of Firefox

Hi Krishnan,

Thanks for the detailed blog.   Still I've few questions unanswered

  Single Machine

  1.  your blog solution can be used to certify a website on multiple browsers right ?

>>>> It was more aimed at showing you the approach on how to achieve parallelism. But yes, you should be able to leverage it for multiple browsers.


  2.  can't Grid be used for this purpose ?  
>>>> Parallelism is something that your TestRunner would be giving you [ Junit (or) TestNG]. Grid is merely a remote execution environment. But yes, you can very well alter the samples in that post to leverage RemoteWebDriver as well.


  3. when to go for Grid approach vs solution given in your blog ?

>>>> Like I said before you can choose either Grid (RemoteWebDriver) (or) the other WebDriver flavours. Parallel executions don't have anything to do with this [ Except for IE wherein I guess concurrent IE executions on a local machine are known to cause un-predictable behaviour ]


  4.  can I use this method to divide test cases and run them on multiple instances of same browser ?  e.g. total 90 cases , 30 each running on chrome1 , chrome 2 and chrome 3
>>> And what would you achieve by doing this ? Not sure what exactly are you trying to solve here.


  Multiple Machine

  1. if  single machine is powerful enough to support X number of test cases run simultaneously on 3 different browsers , then when to go for multiple machine approach ?
>>> You would normally resort to a multiple machine approach when you involve IE in the picture. IE AFAIK is only 1 browser per machine mode unlike the rest of the browsers  [ chrome and firefox]. That being said, I have seen FF start behaving weirdly when the number of FF concurrent tests hits above 15. So I normally keep the per machine FF instance count to 15.



  Please share your good practices wrt parallel / distributed

   Thanks in advance.

Regards,
Vikram


On Friday, August 2, 2013 8:08:43 PM UTC+5:30, Krishnan wrote:

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J">new...@...> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J">seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CE6AE625.12259%25krishnan.mahadevan1978%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

Vikram
Hi Krishnan,

sorry for late reply.

Thanks a ton for detailed clarifications.

Regards,
Vikram

On Friday, September 27, 2013 7:42:00 AM UTC+5:30, Krishnan wrote:
Answers inline

Thanks and Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


From: Vikram <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J">vikra...@...>
Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J">seleniu...@googlegroups.com>
Date: Thursday, 26 September 2013 4:23 PM
To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J">seleniu...@googlegroups.com>
Subject: Re: [selenium-users] Running Parallel Test on One Machine with Multiple instance of Firefox

Hi Krishnan,

Thanks for the detailed blog.   Still I've few questions unanswered

  Single Machine

  1.  your blog solution can be used to certify a website on multiple browsers right ?

>>>> It was more aimed at showing you the approach on how to achieve parallelism. But yes, you should be able to leverage it for multiple browsers.


  2.  can't Grid be used for this purpose ?  
>>>> Parallelism is something that your TestRunner would be giving you [ Junit (or) TestNG]. Grid is merely a remote execution environment. But yes, you can very well alter the samples in that post to leverage RemoteWebDriver as well.


  3. when to go for Grid approach vs solution given in your blog ?

>>>> Like I said before you can choose either Grid (RemoteWebDriver) (or) the other WebDriver flavours. Parallel executions don't have anything to do with this [ Except for IE wherein I guess concurrent IE executions on a local machine are known to cause un-predictable behaviour ]


  4.  can I use this method to divide test cases and run them on multiple instances of same browser ?  e.g. total 90 cases , 30 each running on chrome1 , chrome 2 and chrome 3
>>> And what would you achieve by doing this ? Not sure what exactly are you trying to solve here.


  Multiple Machine

  1. if  single machine is powerful enough to support X number of test cases run simultaneously on 3 different browsers , then when to go for multiple machine approach ?
>>> You would normally resort to a multiple machine approach when you involve IE in the picture. IE AFAIK is only 1 browser per machine mode unlike the rest of the browsers  [ chrome and firefox]. That being said, I have seen FF start behaving weirdly when the number of FF concurrent tests hits above 15. So I normally keep the per machine FF instance count to 15.



  Please share your good practices wrt parallel / distributed

   Thanks in advance.

Regards,
Vikram


On Friday, August 2, 2013 8:08:43 PM UTC+5:30, Krishnan wrote:

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <[hidden email]> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox.
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J">seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/15eedbbd-5f03-40db-b1c9-9a3be4a28c4d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

Harsh
Hello

On a bit old thread - can you experts please clarify if the 'concurrent IE on same m/c causing unpredictable behavior' - note is still valid?



On Thursday, October 3, 2013 9:19:08 PM UTC+8, Vikram wrote:
Hi Krishnan,

sorry for late reply.

Thanks a ton for detailed clarifications.

Regards,
Vikram

On Friday, September 27, 2013 7:42:00 AM UTC+5:30, Krishnan wrote:
Answers inline

Thanks and Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


From: Vikram <[hidden email]>
Reply-To: <[hidden email]>
Date: Thursday, 26 September 2013 4:23 PM
To: <[hidden email]>
Subject: Re: [selenium-users] Running Parallel Test on One Machine with Multiple instance of Firefox

Hi Krishnan,

Thanks for the detailed blog.   Still I've few questions unanswered

  Single Machine

  1.  your blog solution can be used to certify a website on multiple browsers right ?

>>>> It was more aimed at showing you the approach on how to achieve parallelism. But yes, you should be able to leverage it for multiple browsers.


  2.  can't Grid be used for this purpose ?  
>>>> Parallelism is something that your TestRunner would be giving you [ Junit (or) TestNG]. Grid is merely a remote execution environment. But yes, you can very well alter the samples in that post to leverage RemoteWebDriver as well.


  3. when to go for Grid approach vs solution given in your blog ?

>>>> Like I said before you can choose either Grid (RemoteWebDriver) (or) the other WebDriver flavours. Parallel executions don't have anything to do with this [ Except for IE wherein I guess concurrent IE executions on a local machine are known to cause un-predictable behaviour ]


  4.  can I use this method to divide test cases and run them on multiple instances of same browser ?  e.g. total 90 cases , 30 each running on chrome1 , chrome 2 and chrome 3
>>> And what would you achieve by doing this ? Not sure what exactly are you trying to solve here.


  Multiple Machine

  1. if  single machine is powerful enough to support X number of test cases run simultaneously on 3 different browsers , then when to go for multiple machine approach ?
>>> You would normally resort to a multiple machine approach when you involve IE in the picture. IE AFAIK is only 1 browser per machine mode unlike the rest of the browsers  [ chrome and firefox]. That being said, I have seen FF start behaving weirdly when the number of FF concurrent tests hits above 15. So I normally keep the per machine FF instance count to 15.



  Please share your good practices wrt parallel / distributed

   Thanks in advance.

Regards,
Vikram


On Friday, August 2, 2013 8:08:43 PM UTC+5:30, Krishnan wrote:
Can you please take a look at this blog post of mine : <a href="http://rationaleemotions.wordpress.com/2013/07/31/parallel-webdriver-executions-using-testng/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Frationaleemotions.wordpress.com%2F2013%2F07%2F31%2Fparallel-webdriver-executions-using-testng%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGJwghurqUD6EET1BI9Wkus-PdgiA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Frationaleemotions.wordpress.com%2F2013%2F07%2F31%2Fparallel-webdriver-executions-using-testng%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGJwghurqUD6EET1BI9Wkus-PdgiA';return true;">http://rationaleemotions.wordpress.com/2013/07/31/parallel-webdriver-executions-using-testng/


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ';return true;">http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <[hidden email]> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub <a href="http://localhost:4444/grid/register" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\46sa\75D\46sntz\0751\46usg\75AFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\46sa\75D\46sntz\0751\46usg\75AFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ';return true;">http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub <a href="http://localhost:4444/grid/register" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\46sa\75D\46sntz\0751\46usg\75AFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\46sa\75D\46sntz\0751\46usg\75AFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ';return true;">http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

<a title="(still under work) A specification of DesiredCapabilities and their content when used in JsonWireProtocol" href="https://code.google.com/p/selenium/wiki/DesiredCapabilities" style="color:rgb(0,0,204)" target="_blank" onmousedown="this.href='https://code.google.com/p/selenium/wiki/DesiredCapabilities';return true;" onclick="this.href='https://code.google.com/p/selenium/wiki/DesiredCapabilities';return true;">DesiredCapabilities capability = <a title="(still under work) A specification of DesiredCapabilities and their content when used in JsonWireProtocol" href="https://code.google.com/p/selenium/wiki/DesiredCapabilities" style="color:rgb(0,0,204)" target="_blank" onmousedown="this.href='https://code.google.com/p/selenium/wiki/DesiredCapabilities';return true;" onclick="this.href='https://code.google.com/p/selenium/wiki/DesiredCapabilities';return true;">DesiredCapabilities.firefox();
WebDriver driver = new <a title="Information about the RemoteWebDriver" href="https://code.google.com/p/selenium/wiki/RemoteWebDriver" style="color:rgb(0,0,204)" target="_blank" onmousedown="this.href='https://code.google.com/p/selenium/wiki/RemoteWebDriver';return true;" onclick="this.href='https://code.google.com/p/selenium/wiki/RemoteWebDriver';return true;">RemoteWebDriver(new URL("<a href="http://localhost:4444/wd/hub" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A4444%2Fwd%2Fhub\46sa\75D\46sntz\0751\46usg\75AFQjCNGL7ghOGmWpqo93CZkfCgX3jjpVBg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A4444%2Fwd%2Fhub\46sa\75D\46sntz\0751\46usg\75AFQjCNGL7ghOGmWpqo93CZkfCgX3jjpVBg';return true;">http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("<a href="http://www.google.co.in/?gws_rd=cr%22);" rel="nofollow" style="color:rgb(0,0,204)" target="_blank" onmousedown="this.href='http://www.google.co.in/?gws_rd\75cr%22);';return true;" onclick="this.href='http://www.google.co.in/?gws_rd\75cr%22);';return true;">http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox.
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com';return true;">https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com';return true;">https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/898cf90d-0907-4cb9-b52e-6f3f8b2faea4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

⇜Krishnan Mahadevan⇝

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/


On Fri, May 23, 2014 at 6:38 PM, Harsh <[hidden email]> wrote:
Hello

On a bit old thread - can you experts please clarify if the 'concurrent IE on same m/c causing unpredictable behavior' - note is still valid?



On Thursday, October 3, 2013 9:19:08 PM UTC+8, Vikram wrote:
Hi Krishnan,

sorry for late reply.

Thanks a ton for detailed clarifications.

Regards,
Vikram

On Friday, September 27, 2013 7:42:00 AM UTC+5:30, Krishnan wrote:
Answers inline

Thanks and Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


From: Vikram <[hidden email]>
Reply-To: <[hidden email]>
Date: Thursday, 26 September 2013 4:23 PM
To: <[hidden email]>
Subject: Re: [selenium-users] Running Parallel Test on One Machine with Multiple instance of Firefox

Hi Krishnan,

Thanks for the detailed blog.   Still I've few questions unanswered

  Single Machine

  1.  your blog solution can be used to certify a website on multiple browsers right ?

>>>> It was more aimed at showing you the approach on how to achieve parallelism. But yes, you should be able to leverage it for multiple browsers.


  2.  can't Grid be used for this purpose ?  
>>>> Parallelism is something that your TestRunner would be giving you [ Junit (or) TestNG]. Grid is merely a remote execution environment. But yes, you can very well alter the samples in that post to leverage RemoteWebDriver as well.


  3. when to go for Grid approach vs solution given in your blog ?

>>>> Like I said before you can choose either Grid (RemoteWebDriver) (or) the other WebDriver flavours. Parallel executions don't have anything to do with this [ Except for IE wherein I guess concurrent IE executions on a local machine are known to cause un-predictable behaviour ]


  4.  can I use this method to divide test cases and run them on multiple instances of same browser ?  e.g. total 90 cases , 30 each running on chrome1 , chrome 2 and chrome 3
>>> And what would you achieve by doing this ? Not sure what exactly are you trying to solve here.


  Multiple Machine

  1. if  single machine is powerful enough to support X number of test cases run simultaneously on 3 different browsers , then when to go for multiple machine approach ?
>>> You would normally resort to a multiple machine approach when you involve IE in the picture. IE AFAIK is only 1 browser per machine mode unlike the rest of the browsers  [ chrome and firefox]. That being said, I have seen FF start behaving weirdly when the number of FF concurrent tests hits above 15. So I normally keep the per machine FF instance count to 15.



  Please share your good practices wrt parallel / distributed

   Thanks in advance.

Regards,
Vikram


On Friday, August 2, 2013 8:08:43 PM UTC+5:30, Krishnan wrote:

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <[hidden email]> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox.
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/898cf90d-0907-4cb9-b52e-6f3f8b2faea4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLk%3DXmHk2fU0MunQXy81edEQ5adL4zMt%2BjeSsS5RuFLuKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

ASHUTOSH KUMAR
In reply to this post by ⇜Krishnan Mahadevan⇝
Hello Krishnan,
                    I want to login on naukri.com using multiple user and search for large no of data by people's email id, address etc. I have data  loaded on phpmyadmin, and i want to take a fraction of this data for every user id and search on naukri.com. What should i do other than selenium grid??
Please reply ASAP..

On Friday, September 27, 2013 at 7:42:00 AM UTC+5:30, Krishnan wrote:
Answers inline

Thanks and Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


From: Vikram <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vikra...@...>
Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Date: Thursday, 26 September 2013 4:23 PM
To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Subject: Re: [selenium-users] Running Parallel Test on One Machine with Multiple instance of Firefox

Hi Krishnan,

Thanks for the detailed blog.   Still I've few questions unanswered

  Single Machine

  1.  your blog solution can be used to certify a website on multiple browsers right ?

>>>> It was more aimed at showing you the approach on how to achieve parallelism. But yes, you should be able to leverage it for multiple browsers.


  2.  can't Grid be used for this purpose ?  
>>>> Parallelism is something that your TestRunner would be giving you [ Junit (or) TestNG]. Grid is merely a remote execution environment. But yes, you can very well alter the samples in that post to leverage RemoteWebDriver as well.


  3. when to go for Grid approach vs solution given in your blog ?

>>>> Like I said before you can choose either Grid (RemoteWebDriver) (or) the other WebDriver flavours. Parallel executions don't have anything to do with this [ Except for IE wherein I guess concurrent IE executions on a local machine are known to cause un-predictable behaviour ]


  4.  can I use this method to divide test cases and run them on multiple instances of same browser ?  e.g. total 90 cases , 30 each running on chrome1 , chrome 2 and chrome 3
>>> And what would you achieve by doing this ? Not sure what exactly are you trying to solve here.


  Multiple Machine

  1. if  single machine is powerful enough to support X number of test cases run simultaneously on 3 different browsers , then when to go for multiple machine approach ?
>>> You would normally resort to a multiple machine approach when you involve IE in the picture. IE AFAIK is only 1 browser per machine mode unlike the rest of the browsers  [ chrome and firefox]. That being said, I have seen FF start behaving weirdly when the number of FF concurrent tests hits above 15. So I normally keep the per machine FF instance count to 15.



  Please share your good practices wrt parallel / distributed

   Thanks in advance.

Regards,
Vikram


On Friday, August 2, 2013 8:08:43 PM UTC+5:30, Krishnan wrote:
Can you please take a look at this blog post of mine : <a href="http://rationaleemotions.wordpress.com/2013/07/31/parallel-webdriver-executions-using-testng/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F2013%2F07%2F31%2Fparallel-webdriver-executions-using-testng%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJwghurqUD6EET1BI9Wkus-PdgiA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F2013%2F07%2F31%2Fparallel-webdriver-executions-using-testng%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJwghurqUD6EET1BI9Wkus-PdgiA&#39;;return true;">http://rationaleemotions.wordpress.com/2013/07/31/parallel-webdriver-executions-using-testng/


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <[hidden email]> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub <a href="http://localhost:4444/grid/register" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;">http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub <a href="http://localhost:4444/grid/register" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;">http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

<a title="(still under work) A specification of DesiredCapabilities and their content when used in JsonWireProtocol" href="https://code.google.com/p/selenium/wiki/DesiredCapabilities" style="color:rgb(0,0,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/DesiredCapabilities&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/DesiredCapabilities&#39;;return true;">DesiredCapabilities capability = <a title="(still under work) A specification of DesiredCapabilities and their content when used in JsonWireProtocol" href="https://code.google.com/p/selenium/wiki/DesiredCapabilities" style="color:rgb(0,0,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/DesiredCapabilities&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/DesiredCapabilities&#39;;return true;">DesiredCapabilities.firefox();
WebDriver driver = new <a title="Information about the RemoteWebDriver" href="https://code.google.com/p/selenium/wiki/RemoteWebDriver" style="color:rgb(0,0,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/RemoteWebDriver&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/RemoteWebDriver&#39;;return true;">RemoteWebDriver(new URL("<a href="http://localhost:4444/wd/hub" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL7ghOGmWpqo93CZkfCgX3jjpVBg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL7ghOGmWpqo93CZkfCgX3jjpVBg&#39;;return true;">http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("<a href="http://www.google.co.in/?gws_rd=cr%22);" rel="nofollow" style="color:rgb(0,0,204)" target="_blank" onmousedown="this.href=&#39;http://www.google.co.in/?gws_rd\x3dcr%22);&#39;;return true;" onclick="this.href=&#39;http://www.google.co.in/?gws_rd\x3dcr%22);&#39;;return true;">http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/groups/opt_out&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/groups/opt_out&#39;;return true;">https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="X6Lm6mkBos4J" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/groups/opt_out&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/groups/opt_out&#39;;return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/402b1674-7ce7-4ba8-9549-e4af97aacc4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

⇜Krishnan Mahadevan⇝
Ashutosh,
Your question is not clear enough. Can you please help add the below context as well ?

1. What have you done so far ? [ Please help share the code that you have so far ]
2. Where are you stuck ? [ Please help share any error details/stacktrace etc., ]

This will help the members of the forum get a better understanding about your problem and also help them in giving out suggestions to help you get past your problem.



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Wed, Jun 1, 2016 at 1:54 PM, ASHUTOSH KUMAR <[hidden email]> wrote:
Hello Krishnan,
                    I want to login on naukri.com using multiple user and search for large no of data by people's email id, address etc. I have data  loaded on phpmyadmin, and i want to take a fraction of this data for every user id and search on naukri.com. What should i do other than selenium grid??
Please reply ASAP..

On Friday, September 27, 2013 at 7:42:00 AM UTC+5:30, Krishnan wrote:
Answers inline

Thanks and Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


From: Vikram <[hidden email]>
Reply-To: <[hidden email]>
Date: Thursday, 26 September 2013 4:23 PM
To: <[hidden email]>
Subject: Re: [selenium-users] Running Parallel Test on One Machine with Multiple instance of Firefox

Hi Krishnan,

Thanks for the detailed blog.   Still I've few questions unanswered

  Single Machine

  1.  your blog solution can be used to certify a website on multiple browsers right ?

>>>> It was more aimed at showing you the approach on how to achieve parallelism. But yes, you should be able to leverage it for multiple browsers.


  2.  can't Grid be used for this purpose ?  
>>>> Parallelism is something that your TestRunner would be giving you [ Junit (or) TestNG]. Grid is merely a remote execution environment. But yes, you can very well alter the samples in that post to leverage RemoteWebDriver as well.


  3. when to go for Grid approach vs solution given in your blog ?

>>>> Like I said before you can choose either Grid (RemoteWebDriver) (or) the other WebDriver flavours. Parallel executions don't have anything to do with this [ Except for IE wherein I guess concurrent IE executions on a local machine are known to cause un-predictable behaviour ]


  4.  can I use this method to divide test cases and run them on multiple instances of same browser ?  e.g. total 90 cases , 30 each running on chrome1 , chrome 2 and chrome 3
>>> And what would you achieve by doing this ? Not sure what exactly are you trying to solve here.


  Multiple Machine

  1. if  single machine is powerful enough to support X number of test cases run simultaneously on 3 different browsers , then when to go for multiple machine approach ?
>>> You would normally resort to a multiple machine approach when you involve IE in the picture. IE AFAIK is only 1 browser per machine mode unlike the rest of the browsers  [ chrome and firefox]. That being said, I have seen FF start behaving weirdly when the number of FF concurrent tests hits above 15. So I normally keep the per machine FF instance count to 15.



  Please share your good practices wrt parallel / distributed

   Thanks in advance.

Regards,
Vikram


On Friday, August 2, 2013 8:08:43 PM UTC+5:30, Krishnan wrote:

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <[hidden email]> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e06f97c8-2585-48ca-8709-ee92915c36a1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/402b1674-7ce7-4ba8-9549-e4af97aacc4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLkqRQGV-fY-DKnpYWpf3UH5oGchfd2U_hB1zRdO%2B%3D1bcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

Ramakrishna kolli
In reply to this post by ⇜Krishnan Mahadevan⇝

Hi Krishnan,

I want to run multiple tests(about 50) in parallel using selenium and python on single machine with chrome or PhantomJS .
please point me the right script

Thank you in advance   

 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/44179a3a-06a8-412a-8f93-c0fc5b5fa6e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

⇜Krishnan Mahadevan⇝
What do you mean when you say "Point you the right script" ? I didn't quite get that. Can you please help elaborate on what you are looking for ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Fri, Jul 28, 2017 at 5:40 PM, Ramakrishna kolli <[hidden email]> wrote:

Hi Krishnan,

I want to run multiple tests(about 50) in parallel using selenium and python on single machine with chrome or PhantomJS .
please point me the right script

Thank you in advance   

 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/44179a3a-06a8-412a-8f93-c0fc5b5fa6e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLm%2B%2B0XmR1WsfotM%3DWrBh5gB8KUQx6kQj%2BidbG%2B6CYW-dA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

Linsong Wang
In reply to this post by Ramakrishna kolli
I have developed a test automation framework, called reactor (see https://github.com/tascape/reactor)
It supports concurrent test execution. When applied to Selenium, we can run multiple browsers at the same time.
The extension for web UI automation is https://github.com/tascape/reactor-x-webui

It is written in Java, with full test report and log files.
If you want to try, please follow https://github.com/tascape/reactor-report/tree/master/doc to setup your test environment.
And, next is to try https://github.com/tascape/reactor-demo.

The demo code may not run correctly (not updated for a while). but you get the idea.
Let me know if you need further information.


On Friday, July 28, 2017 at 5:13:18 AM UTC-7, Ramakrishna kolli wrote:

Hi Krishnan,

I want to run multiple tests(about 50) in parallel using selenium and python on single machine with chrome or PhantomJS .
please point me the right script

Thank you in advance   

 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d64c49a8-0f86-4b7b-8db9-1d5129db4981%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

Zunaira Maryam
In reply to this post by ⇜Krishnan Mahadevan⇝
Hey Krishnan,
I have to run test cases parallel on a long polling website. Target is 1000 participants join at the same time and vote. But from single machine, only 30 participants are able to join. I'm using C# Nunit script. It seems like that script stuck after some position but I'm unable to find why the script sticks and how can we join at least 50 participants from one system

On Friday, 2 August 2013 19:38:43 UTC+5, Krishnan Mahadevan wrote:
Can you please take a look at this blog post of mine : <a href="http://rationaleemotions.wordpress.com/2013/07/31/parallel-webdriver-executions-using-testng/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F2013%2F07%2F31%2Fparallel-webdriver-executions-using-testng%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJwghurqUD6EET1BI9Wkus-PdgiA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F2013%2F07%2F31%2Fparallel-webdriver-executions-using-testng%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJwghurqUD6EET1BI9Wkus-PdgiA&#39;;return true;">http://rationaleemotions.wordpress.com/2013/07/31/parallel-webdriver-executions-using-testng/


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">new...@...> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub <a href="http://localhost:4444/grid/register" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;">http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub <a href="http://localhost:4444/grid/register" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;">http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

<a title="(still under work) A specification of DesiredCapabilities and their content when used in JsonWireProtocol" href="https://code.google.com/p/selenium/wiki/DesiredCapabilities" style="color:rgb(0,0,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/DesiredCapabilities&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/DesiredCapabilities&#39;;return true;">DesiredCapabilities capability = <a title="(still under work) A specification of DesiredCapabilities and their content when used in JsonWireProtocol" href="https://code.google.com/p/selenium/wiki/DesiredCapabilities" style="color:rgb(0,0,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/DesiredCapabilities&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/DesiredCapabilities&#39;;return true;">DesiredCapabilities.firefox();
WebDriver driver = new <a title="Information about the RemoteWebDriver" href="https://code.google.com/p/selenium/wiki/RemoteWebDriver" style="color:rgb(0,0,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/RemoteWebDriver&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/RemoteWebDriver&#39;;return true;">RemoteWebDriver(new URL("<a href="http://localhost:4444/wd/hub" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL7ghOGmWpqo93CZkfCgX3jjpVBg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGL7ghOGmWpqo93CZkfCgX3jjpVBg&#39;;return true;">http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("<a href="http://www.google.co.in/?gws_rd=cr%22);" rel="nofollow" style="color:rgb(0,0,204)" target="_blank" onmousedown="this.href=&#39;http://www.google.co.in/?gws_rd\x3dcr%22);&#39;;return true;" onclick="this.href=&#39;http://www.google.co.in/?gws_rd\x3dcr%22);&#39;;return true;">http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6Bz1iZNw1C8J" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/groups/opt_out&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/groups/opt_out&#39;;return true;">https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8e6fd1ba-727e-4ea9-b1e5-6308b1c91138o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

⇜Krishnan Mahadevan⇝
The blog link you shared is only aimed at client side parallelism.
But there's a limit to the number of parallel instances that you can create on the client side. So you may have to start looking at distributing your load.

Maybe you can leverage a large scale selenium grid for this.

I dont think you can spin off more than 30 firefox instances on a single machine without firefox hogging on to your machine's resources and thus stalling things.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/


On Mon, Jun 22, 2020 at 3:02 PM Zunaira Maryam <[hidden email]> wrote:
Hey Krishnan,
I have to run test cases parallel on a long polling website. Target is 1000 participants join at the same time and vote. But from single machine, only 30 participants are able to join. I'm using C# Nunit script. It seems like that script stuck after some position but I'm unable to find why the script sticks and how can we join at least 50 participants from one system

On Friday, 2 August 2013 19:38:43 UTC+5, Krishnan Mahadevan wrote:

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <[hidden email]> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8e6fd1ba-727e-4ea9-b1e5-6308b1c91138o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLmOroTVCVjBwWVzFMvRG37mE%3DEfOvYD62pA39Rvb8%3D-aQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Running Parallel Test on One Machine with Multiple instance of Firefox

Archana Singh
In reply to this post by Zunaira Maryam
If you want 1000 virtual users it would be best to do it with jmeter. Take Jar of your code and place it in jmeter lib directory and run it. Also use headless browser , it is more efficient. Opening that many browser on one machine is not possible.

On Mon, 22 Jun 2020, 3:02 pm Zunaira Maryam, <[hidden email]> wrote:
Hey Krishnan,
I have to run test cases parallel on a long polling website. Target is 1000 participants join at the same time and vote. But from single machine, only 30 participants are able to join. I'm using C# Nunit script. It seems like that script stuck after some position but I'm unable to find why the script sticks and how can we join at least 50 participants from one system

On Friday, 2 August 2013 19:38:43 UTC+5, Krishnan Mahadevan wrote:

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Fri, Aug 2, 2013 at 8:04 PM, Nivrutti <[hidden email]> wrote:
I want to run or execute my test scripts on One or single Machine with Multiple instance of Firefox.
Also guide me if we can run parallel test on multiple instance e.g. 4 instance of IE or Chrome browser.

Could you please share the configuration required to do this?
I have done following configuration: I have creaded cmd file for HUB, Node1 and Node2 on single machine.  

Hub:
java -jar selenium-server-standalone-2.31.0.jar -role hub 
Node1:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 7575 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS
Node2:
java -jar selenium-server-standalone-2.31.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 8585 -browser browserName=firefox,version=18.0,maxInstances=5,platform=WINDOWS


Following capability configuration done to execute script on Firefox:

DesiredCapabilities capability = DesiredCapabilities.firefox();
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub" capability);
capability.setBrowserName("firefox");
capability.setPlatform(Platform.WINDOWS);
driver.get("http://www.google.co.in/?gws_rd=cr");


This launches only one instance of Firefox. 
I want to execute multiple instance of Firefox to execute my test. Please help me in this.

What is the expected output? What do you see instead?
Parallel test / multiple instance of browser should run or execute on single machine.

Selenium version:2.31
OS:WINDOWS
Browser:Firefox
Browser version:18.0

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/04f30695-700f-457a-b181-f3a6d25689ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8e6fd1ba-727e-4ea9-b1e5-6308b1c91138o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAP8D1H-9ndTZAuU4COi-iRr6P0Y0FcqbP-EhYtzpW5BCn%2BcL3Q%40mail.gmail.com.