Has anybody been able to successfully run the example Selenium tests
on OS X? Any tips or tricks? I've followed the instructions in the PDF Brett attached to OFBIZ-2116 but Firefox (3.5.5) never starts up and the client eventually times out. Thanks Scott HotWax Media http://www.hotwaxmedia.com smime.p7s (4K) Download Attachment |
Hello Scott,
Check version of browser in seleniumXml.properties file, it is browser=*firefox /usr/lib/firefox-3.0.4/firefox. Change firefox-3.0.4 > firefox-3.5.5 for testing. HTH Thanks and Regards -- Akash Jain Scott Gray wrote: > Has anybody been able to successfully run the example Selenium tests > on OS X? Any tips or tricks? I've followed the instructions in the > PDF Brett attached to OFBIZ-2116 but Firefox (3.5.5) never starts up > and the client eventually times out. > > Thanks > Scott > > HotWax Media > http://www.hotwaxmedia.com |
Thanks Akash, but I don't have a firefox executable under /usr/lib/,
the only executable I've been able to locate is: /Applications/Firefox.app/Contents/MacOS/firefox-bin It does manage to load a firefox process but gets stuck here: 14:53:15.023 INFO - Checking Resource aliases 14:53:15.029 INFO - Command request: getNewBrowserSession[*firefox / Applications/Firefox.app/Contents/MacOS/firefox-bin, http://localhost:8080/ , ] on session null 14:53:15.033 INFO - creating new remote session 14:53:15.253 INFO - Allocated session b8bac29794494e7caf3945e90dd038f5 for http://localhost:8080/, launching... 14:53:15.334 INFO - Preparing Firefox profile... If I quit the firefox window that opened then I get this: 15:15:40.188 INFO - Launching Firefox... And eventually this: 15:19:41.300 ERROR - Failed to start new browser session, shutdown browser an clear all session data org.openqa.selenium.server.RemoteCommandException: timed out waiting for window 'null' to appear at org .openqa .selenium .server .FrameGroupCommandQueueSet.waitForLoad(FrameGroupCommandQueueSet.java: 565) at org .openqa .selenium .server .FrameGroupCommandQueueSet.waitForLoad(FrameGroupCommandQueueSet.java: 522) at org .openqa .selenium .server .BrowserSessionFactory .createNewRemoteSession(BrowserSessionFactory.java:324) at org .openqa .selenium .server .BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java: 118) at org .openqa .selenium .server .BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java: 81) at org .openqa .selenium .server .SeleniumDriverResourceHandler .getNewBrowserSession(SeleniumDriverResourceHandler.java:658) at org .openqa .selenium .server .SeleniumDriverResourceHandler .doCommand(SeleniumDriverResourceHandler.java:392) at org .openqa .selenium .server .SeleniumDriverResourceHandler .handleCommandRequest(SeleniumDriverResourceHandler.java:368) at org .openqa .selenium .server .SeleniumDriverResourceHandler .handle(SeleniumDriverResourceHandler.java:129) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 15:19:41.302 INFO - Killing Firefox... 15:19:41.432 INFO - Got result: Failed to start new browser session: Error while launching browser on session null Regards Scott On 14/12/2009, at 5:52 PM, Akash Jain wrote: > Hello Scott, > > Check version of browser in seleniumXml.properties file, it is > browser=*firefox /usr/lib/firefox-3.0.4/firefox. Change > firefox-3.0.4 > firefox-3.5.5 for testing. > > HTH > > Thanks and Regards > -- > Akash Jain > > Scott Gray wrote: >> Has anybody been able to successfully run the example Selenium >> tests on OS X? Any tips or tricks? I've followed the instructions >> in the PDF Brett attached to OFBIZ-2116 but Firefox (3.5.5) never >> starts up and the client eventually times out. >> >> Thanks >> Scott >> >> HotWax Media >> http://www.hotwaxmedia.com > smime.p7s (4K) Download Attachment |
Hi Scott,
Have you already a firefox running ? Can you open two differents firefox on your mac ? Have you tried with no firefox at all launched ? Le 14/12/2009 06:00, Scott Gray a écrit : > Thanks Akash, but I don't have a firefox executable under /usr/lib/, the > only executable I've been able to locate is: > /Applications/Firefox.app/Contents/MacOS/firefox-bin ../.. - Erwan de FERRIERES www.nereide.biz |
Hi Erwan,
I did have another instance running initially but tried again without and had the same result both times. Regards Scott On 14/12/2009, at 8:40 PM, Erwan de FERRIERES wrote: > Hi Scott, > > Have you already a firefox running ? > Can you open two differents firefox on your mac ? > Have you tried with no firefox at all launched ? > > > Le 14/12/2009 06:00, Scott Gray a écrit : >> Thanks Akash, but I don't have a firefox executable under /usr/ >> lib/, the >> only executable I've been able to locate is: >> /Applications/Firefox.app/Contents/MacOS/firefox-bin > ../.. > - > Erwan de FERRIERES > www.nereide.biz smime.p7s (4K) Download Attachment |
I downloaded the 1.0.1 server and client distribution and it seems to
work fine now, which is strange since it looks like we're using a 1.0.2 snapshot. I'll try a more recent 1.0.2 snapshot and see it how goes. Regards Scott On 14/12/2009, at 8:47 PM, Scott Gray wrote: > Hi Erwan, > > I did have another instance running initially but tried again > without and had the same result both times. > > Regards > Scott > > On 14/12/2009, at 8:40 PM, Erwan de FERRIERES wrote: > >> Hi Scott, >> >> Have you already a firefox running ? >> Can you open two differents firefox on your mac ? >> Have you tried with no firefox at all launched ? >> >> >> Le 14/12/2009 06:00, Scott Gray a écrit : >>> Thanks Akash, but I don't have a firefox executable under /usr/ >>> lib/, the >>> only executable I've been able to locate is: >>> /Applications/Firefox.app/Contents/MacOS/firefox-bin >> ../.. >> - >> Erwan de FERRIERES >> www.nereide.biz > smime.p7s (4K) Download Attachment |
Turns out the webtools selenium setup helper had an old download url,
when I used the ant target instead everything worked fine. Fixed in r890518. Regards Scott On 14/12/2009, at 11:29 PM, Scott Gray wrote: > I downloaded the 1.0.1 server and client distribution and it seems > to work fine now, which is strange since it looks like we're using a > 1.0.2 snapshot. I'll try a more recent 1.0.2 snapshot and see it > how goes. > > Regards > Scott > > On 14/12/2009, at 8:47 PM, Scott Gray wrote: > >> Hi Erwan, >> >> I did have another instance running initially but tried again >> without and had the same result both times. >> >> Regards >> Scott >> >> On 14/12/2009, at 8:40 PM, Erwan de FERRIERES wrote: >> >>> Hi Scott, >>> >>> Have you already a firefox running ? >>> Can you open two differents firefox on your mac ? >>> Have you tried with no firefox at all launched ? >>> >>> >>> Le 14/12/2009 06:00, Scott Gray a écrit : >>>> Thanks Akash, but I don't have a firefox executable under /usr/ >>>> lib/, the >>>> only executable I've been able to locate is: >>>> /Applications/Firefox.app/Contents/MacOS/firefox-bin >>> ../.. >>> - >>> Erwan de FERRIERES >>> www.nereide.biz >> > smime.p7s (4K) Download Attachment |
Scott, I liked the way you replied by changing the subject by adding prefix
"Solved:". -- Ashish On Tue, Dec 15, 2009 at 4:13 AM, Scott Gray <[hidden email]>wrote: > Turns out the webtools selenium setup helper had an old download url, when > I used the ant target instead everything worked fine. Fixed in r890518. > > Regards > Scott > > On 14/12/2009, at 11:29 PM, Scott Gray wrote: > > I downloaded the 1.0.1 server and client distribution and it seems to work >> fine now, which is strange since it looks like we're using a 1.0.2 snapshot. >> I'll try a more recent 1.0.2 snapshot and see it how goes. >> >> Regards >> Scott >> >> On 14/12/2009, at 8:47 PM, Scott Gray wrote: >> >> Hi Erwan, >>> >>> I did have another instance running initially but tried again without and >>> had the same result both times. >>> >>> Regards >>> Scott >>> >>> On 14/12/2009, at 8:40 PM, Erwan de FERRIERES wrote: >>> >>> Hi Scott, >>>> >>>> Have you already a firefox running ? >>>> Can you open two differents firefox on your mac ? >>>> Have you tried with no firefox at all launched ? >>>> >>>> >>>> Le 14/12/2009 06:00, Scott Gray a écrit : >>>> >>>>> Thanks Akash, but I don't have a firefox executable under /usr/lib/, >>>>> the >>>>> only executable I've been able to locate is: >>>>> /Applications/Firefox.app/Contents/MacOS/firefox-bin >>>>> >>>> ../.. >>>> - >>>> Erwan de FERRIERES >>>> www.nereide.biz >>>> >>> >>> >> > |
In reply to this post by Scott Gray-2
Congrats !
Le 14/12/2009 23:43, Scott Gray a écrit : > Turns out the webtools selenium setup helper had an old download url, > when I used the ant target instead everything worked fine. Fixed in > r890518. -- Erwan de FERRIERES www.nereide.biz |
In reply to this post by Scott Gray-2
Hi Devs,
I am trying to run Example selenium test cases on OS X, but getting following error - > 14:41:10.976 INFO - Command request: getNewBrowserSession[*firefox /Applications/Firefox.app/Contents/MacOS/firefox-bin, http://localhost:8080/, ] on session null > 14:41:10.977 INFO - creating new remote session > 14:41:11.169 INFO - Allocated session 916463330ef9405eb571feb3210dc3b5 for http://localhost:8080/, launching... > 14:41:11.200 INFO - Preparing Firefox profile... > dyld: Library not loaded: /usr/lib/libsqlite3.dylib > Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security > Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0 > 14:41:31.317 ERROR - Failed to start new browser session, shutdown browser an clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:252) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:111) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:88) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:297) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:323) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:118) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:81) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:658) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:392) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:368) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:129) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) >> 14:41:31.339 INFO - Got result: Failed to start new browser session: Error while launching browser on session null Can you please let me know if I am missing anything ? -- Thanks And Regards Sumit Pandit On Dec 15, 2009, at 4:13 AM, Scott Gray wrote: > Turns out the webtools selenium setup helper had an old download url, when I used the ant target instead everything worked fine. Fixed in r890518. > > Regards > Scott > > On 14/12/2009, at 11:29 PM, Scott Gray wrote: > >> I downloaded the 1.0.1 server and client distribution and it seems to work fine now, which is strange since it looks like we're using a 1.0.2 snapshot. I'll try a more recent 1.0.2 snapshot and see it how goes. >> >> Regards >> Scott >> >> On 14/12/2009, at 8:47 PM, Scott Gray wrote: >> >>> Hi Erwan, >>> >>> I did have another instance running initially but tried again without and had the same result both times. >>> >>> Regards >>> Scott >>> >>> On 14/12/2009, at 8:40 PM, Erwan de FERRIERES wrote: >>> >>>> Hi Scott, >>>> >>>> Have you already a firefox running ? >>>> Can you open two differents firefox on your mac ? >>>> Have you tried with no firefox at all launched ? >>>> >>>> >>>> Le 14/12/2009 06:00, Scott Gray a écrit : >>>>> Thanks Akash, but I don't have a firefox executable under /usr/lib/, the >>>>> only executable I've been able to locate is: >>>>> /Applications/Firefox.app/Contents/MacOS/firefox-bin >>>> ../.. >>>> - >>>> Erwan de FERRIERES >>>> www.nereide.biz >>> >> > |
Hi Team,
I am able to run successfully on Safari but still getting same issue on Firefox. -- Thanks And Regards Sumit Pandit On Jan 11, 2010, at 3:00 PM, Sumit Pandit wrote: > Hi Devs, > > I am trying to run Example selenium test cases on OS X, but getting following error - > > >> 14:41:10.976 INFO - Command request: getNewBrowserSession[*firefox /Applications/Firefox.app/Contents/MacOS/firefox-bin, http://localhost:8080/, ] on session null >> 14:41:10.977 INFO - creating new remote session >> 14:41:11.169 INFO - Allocated session 916463330ef9405eb571feb3210dc3b5 for http://localhost:8080/, launching... >> 14:41:11.200 INFO - Preparing Firefox profile... >> dyld: Library not loaded: /usr/lib/libsqlite3.dylib >> Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security >> Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0 >> 14:41:31.317 ERROR - Failed to start new browser session, shutdown browser an clear all session data >> java.lang.RuntimeException: Timed out waiting for profile to be created! >> at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:252) >> at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:111) >> at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:88) >> at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:297) >> at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:323) >> at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:118) >> at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:81) >> at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:658) >> at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:392) >> at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:368) >> at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:129) >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) >> at org.mortbay.http.HttpServer.service(HttpServer.java:909) >> at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) >> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) >> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) >> at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) >> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) >> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) >>> 14:41:31.339 INFO - Got result: Failed to start new browser session: Error while launching browser on session null > > > > > Can you please let me know if I am missing anything ? > > -- > Thanks And Regards > Sumit Pandit > > > > On Dec 15, 2009, at 4:13 AM, Scott Gray wrote: > >> Turns out the webtools selenium setup helper had an old download url, when I used the ant target instead everything worked fine. Fixed in r890518. >> >> Regards >> Scott >> >> On 14/12/2009, at 11:29 PM, Scott Gray wrote: >> >>> I downloaded the 1.0.1 server and client distribution and it seems to work fine now, which is strange since it looks like we're using a 1.0.2 snapshot. I'll try a more recent 1.0.2 snapshot and see it how goes. >>> >>> Regards >>> Scott >>> >>> On 14/12/2009, at 8:47 PM, Scott Gray wrote: >>> >>>> Hi Erwan, >>>> >>>> I did have another instance running initially but tried again without and had the same result both times. >>>> >>>> Regards >>>> Scott >>>> >>>> On 14/12/2009, at 8:40 PM, Erwan de FERRIERES wrote: >>>> >>>>> Hi Scott, >>>>> >>>>> Have you already a firefox running ? >>>>> Can you open two differents firefox on your mac ? >>>>> Have you tried with no firefox at all launched ? >>>>> >>>>> >>>>> Le 14/12/2009 06:00, Scott Gray a écrit : >>>>>> Thanks Akash, but I don't have a firefox executable under /usr/lib/, the >>>>>> only executable I've been able to locate is: >>>>>> /Applications/Firefox.app/Contents/MacOS/firefox-bin >>>>> ../.. >>>>> - >>>>> Erwan de FERRIERES >>>>> www.nereide.biz >>>> >>> >> > |
Free forum by Nabble | Edit this page |