Selenium RC throws sessionsid should not be null exception with assertTextPresent, phpunit 3.4 bug only? -
I'm looking to move your Selenium RC tests to using PHPUnit 3.4.12 PHPUnit 3.3.2 .
Selenium tests do will fail with an exception of the following when I use assertTextPresent ()
:
: PHPUnit_Framework_Exception: the getLocation Response error server exception to selenium rc server: sessionId should not be blank; Has this session started now?
For example:
public function testSending ($ browser) {... $ browser- & gt; Click ("send"); $ Browser- & gt; WaitForPageToLoad ("30000"); $ Browser- & gt; AssertTextPresent ("text"); }
The bottom Selenium RC log (on Windows):
15: 40: 1 9 .76 INFO - command request: isTextPresent [text ,] Session 153d03a123c42098711994f43c2db34 15: 40: 1 9691 Result: OK, wrong on session 153d023a123c42098711994f43cdb34 15: 40: 19.879 Information - Command Request: Session 153d023a123c4298711994f43c2db34 15: 40: 19.879 Information- Kill Firefox ... 15: 40: 20.269 information - Got results: 40 :: session properly 20.472 information 153d023a123c42098711994f43c2db34 15 - command request: getLocation [,] session on weak 15: 40: 20.472 error - exception session null java.lang.NullPointerException But 'getLocation' command: SessionId should not be redundant; Has this session started right now?
You should see, the test should have been completed as indicated by "Murder Firefox", but instead it continued to something else and getLocation [,] the order which caused Exceptions going on
I have tried the same exam with PHPUnit 3.3.2, which does not produce this problem - the exam getLocation ()
will end without .
Any thoughts?
In fact, the problem setAutoStop () with
method - by default it then sends PHPUnit set right before stop signs for selenium RC teardown ()
Add $ this- & gt; SetAutoStop (wrong) ;.
Your setup ()
method and $ this-> Stop ();.
TierDown ()
Comments
Post a Comment