Running Selenium test cases in parallel on multiple systems.

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

Running Selenium test cases in parallel on multiple systems.

arjun
Hi,
I want to run my test cases in parallel on multiple platforms like different systems. I am executing test cases through Selenium Webdriver. I have configured Hub and more than 2 nodes and now want to run test cases in parallel.
Please help me guys if you have any knowledge regarding it.

Thanks.

--
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/9c0fd53e-19ad-4ea9-8a88-ec482fe39b59%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Running Selenium test cases in parallel on multiple systems.

Alex Hokanson
It sounds like you are almost there. If the hub is already up and you have at least one node connected, then the only thing left is to point your WebDriver instances to the hub URL. There is a wiki page on it at: https://code.google.com/p/selenium/wiki/Grid2

--
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/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Running Selenium test cases in parallel on multiple systems.

⇜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 Mon, Feb 24, 2014 at 5:29 PM, Alex Hokanson <[hidden email]> wrote:
It sounds like you are almost there. If the hub is already up and you have at least one node connected, then the only thing left is to point your WebDriver instances to the hub URL. There is a wiki page on it at: https://code.google.com/p/selenium/wiki/Grid2

--
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/26453b36-e29d-4138-9f4a-012de87056ff%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 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/CANikZLnR%2BBGPi9tFcaXxA4-iqTfnj%3DED0jJ8%3DtfHfceYiP_W4A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Running Selenium test cases in parallel on multiple systems.

Jayakrishnan Nair
Hi Krishnan,
                   Try to run the selenium with browsermobProxy + Selenium+TestNG combination. I am getting below error when trying  to run the multiple threads 

Caused by: org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.182.212', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.182.212', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_51'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:99)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:80)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:129)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:91)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:68)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)





























On Monday, February 24, 2014 at 5:34:44 PM UTC+5:30, Krishnan wrote:
Assuming you are using Java and TestNG you can refer here : <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/
My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/


On Mon, Feb 24, 2014 at 5:29 PM, Alex Hokanson <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="p42pRwCuitgJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">avidga...@...> wrote:
It sounds like you are almost there. If the hub is already up and you have at least one node connected, then the only thing left is to point your WebDriver instances to the hub URL. There is a wiki page on it at: <a href="https://code.google.com/p/selenium/wiki/Grid2" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/Grid2&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/Grid2&#39;;return true;">https://code.google.com/p/selenium/wiki/Grid2

--
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="p42pRwCuitgJ" 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="p42pRwCuitgJ" 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/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%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/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Selenium test cases in parallel on multiple systems.

⇜Krishnan Mahadevan⇝

The error doesn’t seem to have anything to do with parallel execution.

 

Have you tried to run just one single test for firefox ? To me it sounds like are having basic issues w.r.t firefox.

 

Can you please try using the latest version of :

 

  • Selenium (3.4.0)
  • GeckoDriver (v0.16.1)
  • Latest nightly build of Firefox

 

You can refer to this release notes of GeckoDriver for more information.

 

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/

 

From: <[hidden email]> on behalf of Jayakrishnan Nair <[hidden email]>
Reply-To: <[hidden email]>
Date: Monday, May 29, 2017 at 5:58 PM
To: Selenium Users <[hidden email]>
Subject: Re: [selenium-users] Running Selenium test cases in parallel on multiple systems.

 

Hi Krishnan,
                   Try to run the selenium with browsermobProxy + Selenium+TestNG combination. I am getting below error when trying  to run the multiple threads 

Caused by: org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.182.212', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.182.212', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_51'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:99)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:80)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:129)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:91)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:68)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)





























On Monday, February 24, 2014 at 5:34:44 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/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

 

On Mon, Feb 24, 2014 at 5:29 PM, Alex Hokanson <<a href="javascript:" target="_blank">avidga...@...> wrote:

It sounds like you are almost there. If the hub is already up and you have at least one node connected, then the only thing left is to point your WebDriver instances to the hub URL. There is a wiki page on it at: https://code.google.com/p/selenium/wiki/Grid2


--
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">selenium-user...@....
To post to this group, send email to <a href="javascript:" target="_blank">seleniu...@....

To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%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 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/73b285e5-2d33-48fb-8939-4a455528d74f%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/AD8E4A48-A715-46DC-938D-6DDFC212014B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Selenium test cases in parallel on multiple systems.

Jayakrishnan Nair
Hi ,
      I am running selenium(2.53) and firefox 40 for my project. I am running the testng suite programmatically using thread pool executors. I also wanted to use WebDriverBackedSelenium to use old selenium functions.

//Below is the execution code.
public class AdminCourseDashboardExecutor implements Runnable {

    @Override
    public void run() {
         TestNG tng = new TestNG();
             List<XmlSuite> suiteslist = new ArrayList<XmlSuite>();           
            List<XmlTest> testlist  = new ArrayList<XmlTest>();
            List<XmlClass> classeslist = new ArrayList<XmlClass>();
            List<Class> listenerClasses = new ArrayList<Class>();
               
            XmlSuite suite = new XmlSuite();
            suite.setName("AdminCourseDashboardSuite");
     
            XmlTest test = new XmlTest(suite);
            test.setName("AdminCourseDashboardTest");
          
     
            XmlClass clss1 = new XmlClass(AdminCourseDashboard.class.getName());
            clss1.setName("AdminCourseDashboardClass");
            classeslist.add(clss1);
            test.setXmlClasses(classeslist);
            testlist.add(test);
            suite.setTests(testlist);
            suiteslist.add(suite);
            tng.setXmlSuites(suiteslist);
          //  listenerClasses.add(SabaITestListener.class)       
          
     
           
    //        tng.setListenerClasses(listenerClasses);
            tng.run();
        }
       

    public static void main(String args[]) throws InterruptedException{
        /* Paramater
         * 1st Parameter - Test Class Name
         * 2nd Parameter - ThreadPool Size
         * 3rd Parameter - SuiteName
         * 4th Parameter - Time to Run
         * */
         // String ClassName  =  args[0];
          String Threadpoolsize =  args[0];
          String SuiteName =  args[1];
          String TimeToRun = args[2];
          System.out.println(Threadpoolsize+"   "+SuiteName+"   "+TimeToRun+"   ");
          ScheduledExecutorService scheduledThreadPool = Executors.newScheduledThreadPool(Integer.parseInt(Threadpoolsize));

            long startTime = System.currentTimeMillis();
            long TimeDuration1 =  Integer.parseInt(TimeToRun)*60*1000;
           
            //new AdminCourseDashboardExecutor().run();
         for(int i=0; i<10; i++)    {   
               Thread.sleep(20000);
                scheduledThreadPool.scheduleAtFixedRate(new AdminCourseDashboardExecutor(),5, 120, TimeUnit.SECONDS);
            }
           
            scheduledThreadPool.awaitTermination((startTime+TimeDuration1)-System.currentTimeMillis(), TimeUnit.MILLISECONDS);
            scheduledThreadPool.shutdown();
    }





//This is actual selenium code getting called.
public RemoteWebDriver browser;
    //public FirefoxDriver browser;
    public WebDriverWait wait;
    public WebDriverBackedSelenium selenium;
    public BrowserMobProxyServer proxybm;
    public PerformanceTiming timings;
    public Har pages;
    public String baseURL= "https://ras.sabacloud.com/";
    public readCSVFile csv = null;
    public Map<String,String>Configdata=null;
    public String URL;
   
   
   
    public void onFinish(ISuite arg0) {
        System.out.println("ISuite Data: Before Start"+arg0);
       
    }

    public void onStart(ISuite arg0) {
        System.out.println("ISuite Data: After Start"+arg0);
       
    }
   

    @BeforeSuite
    public void beforestart() throws IOException{
       
        Map<String,String> data = new HashMap<String,String>();       
           Configdata =  ConfigurationData.getInstance().getconfigData();
           int portnumber = findFreePort();
          
           try{
                Configdata.put("portnumber",String.valueOf(portnumber));
                proxybm =  BrowserMobProxyFactory.createInstance(Configdata);
                 BrowserMobProxyManager.setBrowserMobProxyServer(proxybm);
                Proxy seleniumProxy = ClientUtil.createSeleniumProxy(proxybm);
                DesiredCapabilities capabilities = DesiredCapabilities.firefox();          
               capabilities.setCapability(CapabilityType.PROXY, seleniumProxy);    
         
                       
         

         if(Configdata.containsKey("browser")){
             browser =     SabaWebDriverFactory.createWebDiverInstance(Configdata, capabilities);
             SabaWebDriverManager.setSabaWebDriverManager(browser);
            }
        
/*         if(Configdata.containsKey("filename")){
              String path =  Configdata.get("path");
              String filename =  Configdata.get("filename");
              File csvfile  =  new File(path+"\\"+filename);
              System.out.println(csvfile.toString());
              FileReader reader  =  new FileReader(csvfile);
              csv = new readCSVFile(reader);
         }*/
                
                 System.out.println("Creating Firefox Driver");
                 URL = (String)Configdata.get("AppURL");
                 timings = new PerformanceTiming();
                 pages  = new Har();
                 System.out.println(URL);
                selenium =  new WebDriverBackedSelenium(browser,URL);
                //selenium =     new WebDriverBackedSelenium
                 wait = new WebDriverWait(browser,120);
           }catch(Exception e){
                e.printStackTrace();
           }
        }

@AfterSuite
public void afterend(){
     System.out.println(pages.toString());
        try {
            pages.writeTo(new File("D:\\logs\\"+Thread.currentThread().getName()+".har"));
           
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
   
      proxybm.stop();
      browser.close();
}
   
 /*   @DataProvider(name="dataset")
    public Object[][] browserConfig(){
       
        Map<String,String> data = new HashMap<String,String>();
        String[] rowdata =  csv.getRowData();
        data =  csv.getRowToMap(rowdata);
        data.put("AppURL", URL);
        Object[][] dataobject = new Object[1][1];
        dataobject[0][0] = data;
        return dataobject;
       
    }*/
   
    public WebDriver getWebDriverInstance(){
         return browser;
    }
   
   
    public synchronized int  findFreePort() {
        int port=0;
        int srange=10000;
        int erange=50000;
        for(int i= srange; i<=erange;i++){

        try{   
          ServerSocket socket= new ServerSocket(i);      
          port = socket.getLocalPort();
          socket.close();
          break;
        }catch(IOException e){
          continue;      
         }
        }
        return port;
      }
   
}





On Monday, May 29, 2017 at 7:13:07 PM UTC+5:30, Krishnan wrote:

The error doesn’t seem to have anything to do with parallel execution.

 

Have you tried to run just one single test for firefox ? To me it sounds like are having basic issues w.r.t firefox.

 

Can you please try using the latest version of :

 

  • Selenium (3.4.0)
  • GeckoDriver (<a href="https://github.com/mozilla/geckodriver/releases/tag/v0.16.1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases%2Ftag%2Fv0.16.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFeLhg8DtZ1qS7MNX5RL8pqQkcRGA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases%2Ftag%2Fv0.16.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFeLhg8DtZ1qS7MNX5RL8pqQkcRGA&#39;;return true;">v0.16.1)
  • Latest nightly build of Firefox

 

You can refer to <a href="https://groups.google.com/forum/embed/#!topic/selenium-users/FiYMBb0oZ4k" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/forum/embed/#!topic/selenium-users/FiYMBb0oZ4k&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/forum/embed/#!topic/selenium-users/FiYMBb0oZ4k&#39;;return true;">this release notes of GeckoDriver for more information.

 

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/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

 

From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="fLAdoCyeCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com> on behalf of Jayakrishnan Nair <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="fLAdoCyeCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jai12...@...>
Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="fLAdoCyeCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Date: Monday, May 29, 2017 at 5:58 PM
To: Selenium Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="fLAdoCyeCAAJ" 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 Selenium test cases in parallel on multiple systems.

 

Hi Krishnan,
                   Try to run the selenium with browsermobProxy + Selenium+TestNG combination. I am getting below error when trying  to run the multiple threads 

Caused by: org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.182.212', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.182.212', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_51'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:99)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:80)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:129)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:91)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:68)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)





























On Monday, February 24, 2014 at 5:34:44 PM UTC+5:30, Krishnan wrote:

Assuming you are using Java and TestNG you can refer here : <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/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

 

On Mon, Feb 24, 2014 at 5:29 PM, Alex Hokanson <[hidden email]> wrote:

It sounds like you are almost there. If the hub is already up and you have at least one node connected, then the only thing left is to point your WebDriver instances to the hub URL. There is a wiki page on it at: <a href="https://code.google.com/p/selenium/wiki/Grid2" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/Grid2&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/Grid2&#39;;return true;">https://code.google.com/p/selenium/wiki/Grid2


--
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/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%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="fLAdoCyeCAAJ" 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="fLAdoCyeCAAJ" 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/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/57da4438-4ccb-4705-98b9-08cc3f693212%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running Selenium test cases in parallel on multiple systems.

Jayakrishnan Nair
In reply to this post by ⇜Krishnan Mahadevan⇝
Hi ,
      I am running selenium(2.53) and firefox 40 for my project. I am running the testng suite programmatically using thread pool executors. I also wanted to use WebDriverBackedSelenium to use old selenium functions.

//Below is the execution code.
public class AdminCourseDashboardExecutor implements Runnable {

    @Override
    public void run() {
         TestNG tng = new TestNG();
             List<XmlSuite> suiteslist = new ArrayList<XmlSuite>();           
            List<XmlTest> testlist  = new ArrayList<XmlTest>();
            List<XmlClass> classeslist = new ArrayList<XmlClass>();
            List<Class> listenerClasses = new ArrayList<Class>();
               
            XmlSuite suite = new XmlSuite();
            suite.setName("
AdminCourseDashboardSuite");
     
            XmlTest test = new XmlTest(suite);
            test.setName("AdminCourseDashboardTest");
          
     
            XmlClass clss1 = new XmlClass(AdminCourseDashboard.class.getName());
            clss1.setName("AdminCourseDashboardClass");
            classeslist.add(clss1);
            test.setXmlClasses(classeslist);
            testlist.add(test);
            suite.setTests(testlist);
            suiteslist.add(suite);
            tng.setXmlSuites(suiteslist);
  
            tng.run();
        }
       

    public static void main(String args[]) throws InterruptedException{
        /* Paramater
         * 1st Parameter - Test Class Name
         * 2nd Parameter - ThreadPool Size
         * 3rd Parameter - SuiteName
         * 4th Parameter - Time to Run
         * */
         // String ClassName  =  args[0];
          String Threadpoolsize =  args[0];
          String SuiteName =  args[1];
          String TimeToRun = args[2];
          System.out.println(Threadpoolsize+"   "+SuiteName+"   "+TimeToRun+"   ");
          ScheduledExecutorService scheduledThreadPool = Executors.newScheduledThreadPool(Integer.parseInt(Threadpoolsize));

            long startTime = System.currentTimeMillis();
            long TimeDuration1 =  Integer.parseInt(TimeToRun)*60*1000;
           
            //new AdminCourseDashboardExecutor().run();
         for(int i=0; i<10; i++)    {   
               Thread.sleep(20000);
                scheduledThreadPool.scheduleAtFixedRate(new AdminCourseDashboardExecutor(),5, 120, TimeUnit.SECONDS);
            }
           
            scheduledThreadPool.awaitTermination((startTime+TimeDuration1)-System.currentTimeMillis(), TimeUnit.MILLISECONDS);
            scheduledThreadPool.shutdown();
    }





//This is actual selenium code getting called.
public RemoteWebDriver browser;
    //public FirefoxDriver browser;
    public WebDriverWait wait;
    public WebDriverBackedSelenium selenium;
    public BrowserMobProxyServer proxybm;
    public PerformanceTiming timings;
    public Har pages;
    public String baseURL= "https://ras.sabacloud.com/";
    public readCSVFile csv = null;
    public Map<String,String>Configdata=null;
    public String URL;
   
   
   
    public void onFinish(ISuite arg0) {
        System.out.println("ISuite Data: Before Start"+arg0);
       
    }

    public void onStart(ISuite arg0) {
        System.out.println("ISuite Data: After Start"+arg0);
       
    }
   

    @BeforeSuite
    public void beforestart() throws IOException{
       
        Map<String,String> data = new HashMap<String,String>();       
           Configdata =  ConfigurationData.getInstance().getconfigData();
           int portnumber = findFreePort();
          
           try{
                Configdata.put("portnumber",String.valueOf(portnumber));
                proxybm =  BrowserMobProxyFactory.createInstance(Configdata);
                 BrowserMobProxyManager.setBrowserMobProxyServer(proxybm);
                Proxy seleniumProxy = ClientUtil.createSeleniumProxy(proxybm);
                DesiredCapabilities capabilities = DesiredCapabilities.firefox();          
               capabilities.setCapability(CapabilityType.PROXY, seleniumProxy);    
         
                       
         

         if(Configdata.containsKey("browser")){
             browser =     SabaWebDriverFactory.createWebDiverInstance(Configdata, capabilities);
             SabaWebDriverManager.setSabaWebDriverManager(browser);
            }
        
/*         if(Configdata.containsKey("filename")){
              String path =  Configdata.get("path");
              String filename =  Configdata.get("filename");
              File csvfile  =  new File(path+"\\"+filename);
              System.out.println(csvfile.toString());
              FileReader reader  =  new FileReader(csvfile);
              csv = new readCSVFile(reader);
         }*/
                
                 System.out.println("Creating Firefox Driver");
                 URL = (String)Configdata.get("AppURL");
                 timings = new PerformanceTiming();
                 pages  = new Har();
                 System.out.println(URL);
                selenium =  new WebDriverBackedSelenium(browser,URL);
                //selenium =     new WebDriverBackedSelenium
                 wait = new WebDriverWait(browser,120);
           }catch(Exception e){
                e.printStackTrace();
           }
        }

@AfterSuite
public void afterend(){
     System.out.println(pages.toString());
        try {
            pages.writeTo(new File("D:\\logs\\"+Thread.currentThread().getName()+".har"));
           
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
   
      proxybm.stop();
      browser.close();
}
   
 /*   @DataProvider(name="dataset")
    public Object[][] browserConfig(){
       
        Map<String,String> data = new HashMap<String,String>();
        String[] rowdata =  csv.getRowData();
        data =  csv.getRowToMap(rowdata);
        data.put("AppURL", URL);
        Object[][] dataobject = new Object[1][1];
        dataobject[0][0] = data;
        return dataobject;
       
    }*/
   
    public WebDriver getWebDriverInstance(){
         return browser;
    }
   
   
    public synchronized int  findFreePort() {
        int port=0;
        int srange=10000;
        int erange=50000;
        for(int i= srange; i<=erange;i++){

        try{   
          ServerSocket socket= new ServerSocket(i);      
          port = socket.getLocalPort();
          socket.close();
          break;
        }catch(IOException e){
          continue;      
         }
        }
        return port;
      }
   
}




On Monday, May 29, 2017 at 7:13:07 PM UTC+5:30, Krishnan wrote:

The error doesn’t seem to have anything to do with parallel execution.

 

Have you tried to run just one single test for firefox ? To me it sounds like are having basic issues w.r.t firefox.

 

Can you please try using the latest version of :

 

  • Selenium (3.4.0)
  • GeckoDriver (<a href="https://github.com/mozilla/geckodriver/releases/tag/v0.16.1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases%2Ftag%2Fv0.16.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFeLhg8DtZ1qS7MNX5RL8pqQkcRGA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases%2Ftag%2Fv0.16.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFeLhg8DtZ1qS7MNX5RL8pqQkcRGA&#39;;return true;">v0.16.1)
  • Latest nightly build of Firefox

 

You can refer to <a href="https://groups.google.com/forum/embed/#!topic/selenium-users/FiYMBb0oZ4k" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/forum/embed/#!topic/selenium-users/FiYMBb0oZ4k&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/forum/embed/#!topic/selenium-users/FiYMBb0oZ4k&#39;;return true;">this release notes of GeckoDriver for more information.

 

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/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

 

From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="fLAdoCyeCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com> on behalf of Jayakrishnan Nair <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="fLAdoCyeCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jai12...@...>
Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="fLAdoCyeCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Date: Monday, May 29, 2017 at 5:58 PM
To: Selenium Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="fLAdoCyeCAAJ" 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 Selenium test cases in parallel on multiple systems.

 

Hi Krishnan,
                   Try to run the selenium with browsermobProxy + Selenium+TestNG combination. I am getting below error when trying  to run the multiple threads 

Caused by: org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.182.212', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.182.212', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_51'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:99)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:80)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:129)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:91)
    at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:68)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)





























On Monday, February 24, 2014 at 5:34:44 PM UTC+5:30, Krishnan wrote:

Assuming you are using Java and TestNG you can refer here : <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/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

 

On Mon, Feb 24, 2014 at 5:29 PM, Alex Hokanson <[hidden email]> wrote:

It sounds like you are almost there. If the hub is already up and you have at least one node connected, then the only thing left is to point your WebDriver instances to the hub URL. There is a wiki page on it at: <a href="https://code.google.com/p/selenium/wiki/Grid2" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://code.google.com/p/selenium/wiki/Grid2&#39;;return true;" onclick="this.href=&#39;https://code.google.com/p/selenium/wiki/Grid2&#39;;return true;">https://code.google.com/p/selenium/wiki/Grid2


--
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/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/26453b36-e29d-4138-9f4a-012de87056ff%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="fLAdoCyeCAAJ" 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="fLAdoCyeCAAJ" 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/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/73b285e5-2d33-48fb-8939-4a455528d74f%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/f33dcd86-e5af-4c73-849e-972ab4e4093f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.