Trouble with selenium plugin

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

Trouble with selenium plugin

Jon Schewe
I'm trying to get the selenium plugin to work but having some problems.
I've got a basic test case that works on my opensuse box that I develop
on. However when it runs inside hudson I get errors about trying to get
a session. The hudson server is Debian, so instead of firefox it's
icewesal. I'm not sure if my problems are because selenium is running
without a head (or how to add one to selenium) or because it's debian.

Here's the output from the test:

    [junit] Testsuite: fll.usgs.TestUSGS
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.819 sec
    [junit]
    [junit] Testcase: testSearchForTomAndFindSBishop(fll.usgs.TestUSGS): Caused an ERROR
    [junit] Could not start Selenium session: ERROR: Could not retrieve a new session
    [junit] java.lang.RuntimeException: Could not start Selenium session: ERROR: Could not retrieve a new session
    [junit] at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
    [junit] at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:123)
    [junit] at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:104)
    [junit] at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:72)
    [junit] at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:60)
    [junit] at com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:55)
    [junit] at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
    [junit] Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Could not retrieve a new session
    [junit] at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
    [junit] at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
    [junit] at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
    [junit] at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
    [junit] at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
    [junit]
    [junit]
    [junit] Test fll.usgs.TestUSGS FAILED

Here's the output from the selenium console:

Jul 1, 2009 8:05:09 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
Jul 1, 2009 8:05:15 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.HttpClient request
INFO: Remote Control replied with '500 / ''
Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'
Jul 1, 2009 8:08:53 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
Jul 1, 2009 8:08:54 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.HttpClient request
INFO: Remote Control replied with '500 / ''
Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'

--
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Trouble with selenium plugin

Kohsuke Kawaguchi
Administrator
Unfortunately, Selenium Grid does a pretty poor job of reporting
errors, which makes it harder for users to figure out the true cause,
but I can't fix this in short of patching Selenium Grid.

I believe Selenium plugin requires some slaves currently. Do you have
a few that are set up? Assuming so, check the slave log that shows log
messages from Selenium RC.

2009/7/3 Jon Schewe <[hidden email]>:

> I'm trying to get the selenium plugin to work but having some problems.
> I've got a basic test case that works on my opensuse box that I develop
> on. However when it runs inside hudson I get errors about trying to get
> a session. The hudson server is Debian, so instead of firefox it's
> icewesal. I'm not sure if my problems are because selenium is running
> without a head (or how to add one to selenium) or because it's debian.
>
> Here's the output from the test:
>
>    [junit] Testsuite: fll.usgs.TestUSGS
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.819 sec
>    [junit]
>    [junit] Testcase: testSearchForTomAndFindSBishop(fll.usgs.TestUSGS):        Caused an ERROR
>    [junit] Could not start Selenium session: ERROR: Could not retrieve a new session
>    [junit] java.lang.RuntimeException: Could not start Selenium session: ERROR: Could not retrieve a new session
>    [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:123)
>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:104)
>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:72)
>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:60)
>    [junit]     at com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:55)
>    [junit]     at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
>    [junit] Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Could not retrieve a new session
>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
>    [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
>    [junit]
>    [junit]
>    [junit] Test fll.usgs.TestUSGS FAILED
>
> Here's the output from the selenium console:
>
> Jul 1, 2009 8:05:09 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
> INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
> Jul 1, 2009 8:05:15 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
> WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
> Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.HttpClient request
> INFO: Remote Control replied with '500 / ''
> Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
> INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'
> Jul 1, 2009 8:08:53 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
> INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
> Jul 1, 2009 8:08:54 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
> WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
> Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.HttpClient request
> INFO: Remote Control replied with '500 / ''
> Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
> INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'
>
> --
> Jon Schewe | http://mtu.net/~jpschewe
> If you see an attachment named signature.asc, this is my digital
> signature. See http://www.gnupg.org for more information.
>
> For I am convinced that neither death nor life, neither angels nor
> demons, neither the present nor the future, nor any powers,
> neither height nor depth, nor anything else in all creation, will
> be able to separate us from the love of God that is in Christ
> Jesus our Lord. - Romans 8:38-39
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Trouble with selenium plugin

Jon Schewe
No, I don't have any slaves. The latest on your blog seems to state that a master will be enough. I am seeing that there are 2 remote controls running when I connect to localhost:4444/console.


Kohsuke Kawaguchi wrote:
Unfortunately, Selenium Grid does a pretty poor job of reporting
errors, which makes it harder for users to figure out the true cause,
but I can't fix this in short of patching Selenium Grid.

I believe Selenium plugin requires some slaves currently. Do you have
a few that are set up? Assuming so, check the slave log that shows log
messages from Selenium RC.

2009/7/3 Jon Schewe [hidden email]:
  
I'm trying to get the selenium plugin to work but having some problems.
I've got a basic test case that works on my opensuse box that I develop
on. However when it runs inside hudson I get errors about trying to get
a session. The hudson server is Debian, so instead of firefox it's
icewesal. I'm not sure if my problems are because selenium is running
without a head (or how to add one to selenium) or because it's debian.

Here's the output from the test:

   [junit] Testsuite: fll.usgs.TestUSGS
   [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.819 sec
   [junit]
   [junit] Testcase: testSearchForTomAndFindSBishop(fll.usgs.TestUSGS):        Caused an ERROR
   [junit] Could not start Selenium session: ERROR: Could not retrieve a new session
   [junit] java.lang.RuntimeException: Could not start Selenium session: ERROR: Could not retrieve a new session
   [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
   [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:123)
   [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:104)
   [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:72)
   [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:60)
   [junit]     at com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:55)
   [junit]     at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
   [junit] Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Could not retrieve a new session
   [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
   [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
   [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
   [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
   [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
   [junit]
   [junit]
   [junit] Test fll.usgs.TestUSGS FAILED

Here's the output from the selenium console:

Jul 1, 2009 8:05:09 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
Jul 1, 2009 8:05:15 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.HttpClient request
INFO: Remote Control replied with '500 / ''
Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'
Jul 1, 2009 8:08:53 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
Jul 1, 2009 8:08:54 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.HttpClient request
INFO: Remote Control replied with '500 / ''
Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'

--
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


    



  

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with selenium plugin

Kohsuke Kawaguchi
Administrator
Jon Schewe wrote:
> No, I don't have any slaves. The latest on your blog seems to state that
> a master will be enough. I am seeing that there are 2 remote controls
> running when I connect to localhost:4444/console.

OK, so the RCs have checked in.

I think the output from RCs for the master is recorded to Hudson's
stdout/stderr, so check there.

>
>
> Kohsuke Kawaguchi wrote:
>> Unfortunately, Selenium Grid does a pretty poor job of reporting
>> errors, which makes it harder for users to figure out the true cause,
>> but I can't fix this in short of patching Selenium Grid.
>>
>> I believe Selenium plugin requires some slaves currently. Do you have
>> a few that are set up? Assuming so, check the slave log that shows log
>> messages from Selenium RC.
>>
>> 2009/7/3 Jon Schewe <[hidden email]>:
>>  
>>> I'm trying to get the selenium plugin to work but having some problems.
>>> I've got a basic test case that works on my opensuse box that I develop
>>> on. However when it runs inside hudson I get errors about trying to get
>>> a session. The hudson server is Debian, so instead of firefox it's
>>> icewesal. I'm not sure if my problems are because selenium is running
>>> without a head (or how to add one to selenium) or because it's debian.
>>>
>>> Here's the output from the test:
>>>
>>>    [junit] Testsuite: fll.usgs.TestUSGS
>>>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.819 sec
>>>    [junit]
>>>    [junit] Testcase: testSearchForTomAndFindSBishop(fll.usgs.TestUSGS):        Caused an ERROR
>>>    [junit] Could not start Selenium session: ERROR: Could not retrieve a new session
>>>    [junit] java.lang.RuntimeException: Could not start Selenium session: ERROR: Could not retrieve a new session
>>>    [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:123)
>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:104)
>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:72)
>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:60)
>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:55)
>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
>>>    [junit] Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Could not retrieve a new session
>>>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
>>>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
>>>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
>>>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
>>>    [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
>>>    [junit]
>>>    [junit]
>>>    [junit] Test fll.usgs.TestUSGS FAILED
>>>
>>> Here's the output from the selenium console:
>>>
>>> Jul 1, 2009 8:05:09 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
>>> INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
>>> Jul 1, 2009 8:05:15 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
>>> WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
>>> Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.HttpClient request
>>> INFO: Remote Control replied with '500 / ''
>>> Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
>>> INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'
>>> Jul 1, 2009 8:08:53 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
>>> INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
>>> Jul 1, 2009 8:08:54 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
>>> WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
>>> Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.HttpClient request
>>> INFO: Remote Control replied with '500 / ''
>>> Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
>>> INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'
>>>
>>> --
>>> Jon Schewe | http://mtu.net/~jpschewe
>>> If you see an attachment named signature.asc, this is my digital
>>> signature. See http://www.gnupg.org for more information.
>>>
>>> For I am convinced that neither death nor life, neither angels nor
>>> demons, neither the present nor the future, nor any powers,
>>> neither height nor depth, nor anything else in all creation, will
>>> be able to separate us from the love of God that is in Christ
>>> Jesus our Lord. - Romans 8:38-39
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>>    
>>
>>
>>
>>  
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with selenium plugin

Kohsuke Kawaguchi
Administrator
Kohsuke Kawaguchi wrote:
> Jon Schewe wrote:
>> No, I don't have any slaves. The latest on your blog seems to state that
>> a master will be enough. I am seeing that there are 2 remote controls
>> running when I connect to localhost:4444/console.
>
> OK, so the RCs have checked in.
>
> I think the output from RCs for the master is recorded to Hudson's
> stdout/stderr, so check there.

Maybe what we should do is to redirect output from Selenium RCs to a
different location and hook them under http://server/hudson/selenium/ so
that you can easily check what they are reporting.


>> Kohsuke Kawaguchi wrote:
>>> Unfortunately, Selenium Grid does a pretty poor job of reporting
>>> errors, which makes it harder for users to figure out the true cause,
>>> but I can't fix this in short of patching Selenium Grid.
>>>
>>> I believe Selenium plugin requires some slaves currently. Do you have
>>> a few that are set up? Assuming so, check the slave log that shows log
>>> messages from Selenium RC.
>>>
>>> 2009/7/3 Jon Schewe <[hidden email]>:
>>>  
>>>> I'm trying to get the selenium plugin to work but having some problems.
>>>> I've got a basic test case that works on my opensuse box that I develop
>>>> on. However when it runs inside hudson I get errors about trying to get
>>>> a session. The hudson server is Debian, so instead of firefox it's
>>>> icewesal. I'm not sure if my problems are because selenium is running
>>>> without a head (or how to add one to selenium) or because it's debian.
>>>>
>>>> Here's the output from the test:
>>>>
>>>>    [junit] Testsuite: fll.usgs.TestUSGS
>>>>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.819 sec
>>>>    [junit]
>>>>    [junit] Testcase: testSearchForTomAndFindSBishop(fll.usgs.TestUSGS):        Caused an ERROR
>>>>    [junit] Could not start Selenium session: ERROR: Could not retrieve a new session
>>>>    [junit] java.lang.RuntimeException: Could not start Selenium session: ERROR: Could not retrieve a new session
>>>>    [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
>>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:123)
>>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:104)
>>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:72)
>>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:60)
>>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:55)
>>>>    [junit]     at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
>>>>    [junit] Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Could not retrieve a new session
>>>>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
>>>>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
>>>>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
>>>>    [junit]     at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
>>>>    [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
>>>>    [junit]
>>>>    [junit]
>>>>    [junit] Test fll.usgs.TestUSGS FAILED
>>>>
>>>> Here's the output from the selenium console:
>>>>
>>>> Jul 1, 2009 8:05:09 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
>>>> INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
>>>> Jul 1, 2009 8:05:15 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
>>>> WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
>>>> Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.HttpClient request
>>>> INFO: Remote Control replied with '500 / ''
>>>> Jul 1, 2009 8:05:15 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
>>>> INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'
>>>> Jul 1, 2009 8:08:53 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
>>>> INFO: Processing '1 => "*firefox", 2 => "http://localhost:4444", 3 => "", cmd => "getNewBrowserSession"'
>>>> Jul 1, 2009 8:08:54 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
>>>> WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
>>>> Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.HttpClient request
>>>> INFO: Remote Control replied with '500 / ''
>>>> Jul 1, 2009 8:08:54 AM com.thoughtworks.selenium.grid.hub.HubServlet forward
>>>> INFO: Responding with 200/ 'ERROR: Could not retrieve a new session'
>>>>
>>>> --
>>>> Jon Schewe | http://mtu.net/~jpschewe
>>>> If you see an attachment named signature.asc, this is my digital
>>>> signature. See http://www.gnupg.org for more information.
>>>>
>>>> For I am convinced that neither death nor life, neither angels nor
>>>> demons, neither the present nor the future, nor any powers,
>>>> neither height nor depth, nor anything else in all creation, will
>>>> be able to separate us from the love of God that is in Christ
>>>> Jesus our Lord. - Romans 8:38-39
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>>>>
>>>>
>>>>    
>>>
>>>
>>>
>>>  
>>
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with selenium plugin

Jon Schewe
In reply to this post by Kohsuke Kawaguchi
Kohsuke Kawaguchi wrote:
Jon Schewe wrote:
  
No, I don't have any slaves. The latest on your blog seems to state that
a master will be enough. I am seeing that there are 2 remote controls
running when I connect to localhost:4444/console.
    

OK, so the RCs have checked in.

I think the output from RCs for the master is recorded to Hudson's
stdout/stderr, so check there.

  
Yeah, I checked there too and didn't see anything obvious. I ended up just modifying my build script to start selenium itself and stop selenium when it's done.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with selenium plugin

Jorg Heymans-4
In reply to this post by Kohsuke Kawaguchi
On Tue, Jul 7, 2009 at 8:53 PM, Kohsuke
Kawaguchi<[hidden email]> wrote:

>
> Maybe what we should do is to redirect output from Selenium RCs to a
> different location and hook them under http://server/hudson/selenium/ so
> that you can easily check what they are reporting.
>

See also http://www.nabble.com/-selenium-grid--capture-debug-RC-output-in-build-log---td23977504.html#a23995785

Thinking about this, if you manage to capture the output of an RC to a
specified location, and we somewhere have a link between a build job
and an RC (since everything passes through the hudson hub there might
be a way somehow) then it should be possible to link the rc output to
the build logs. Or am i missing something ?

Jorg

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]