giorgiosironi / phpunit-selenium

Selenium RC integration for PHPUnit
http://www.phpunit.de/
Other
600 stars 271 forks source link

Seeing an intermittent but persistent "PHPUnit_Framework_Exception: Could not connect to the Selenium RC server" error #74

Closed theschles closed 12 years ago

theschles commented 13 years ago

Selenium RC 2.12.0 on Windows Vista PHPUnit 3.15.5 Firefox 7.0.1

Intermittently, but persistently and not consistently, we see a "PHPUnit_Framework_Exception: Could not connect to the Selenium RC server". Often this happens where we have a single test but multiple data sets.

You'll see below builds 314, 315, and 316 failed. Build 313 passed ok.

You'll also see below that the period status seems to sometimes pass for the VERY SAME TESTS.

What's even more frustrating is that I don't get a screenshot when this happens (See https://github.com/sebastianbergmann/phpunit-selenium/issues/65 )

Help?!

Build 316: [exec] PHPUnit 3.5.15 by Sebastian Bergmann. [exec] [exec] I.................I.............E [exec] [exec] Time: 30:57, Memory: 35.25Mb [exec] [exec] There was 1 error: [exec] [exec] 1) AG_Test_Integration_User_UserPageTest::testCategoryPages with data set #13 (array('/category/arcade', 6, 'css=#feature-content .picks a.game')) [exec] PHPUnit_Framework_Exception: Could not connect to the Selenium RC server

Build 315: [exec] [exec] I………….E [exec] [exec] Time: 23:04, Memory: 29.00Mb [exec] [exec] There was 1 error: [exec] [exec] 1) AG_Test_Integration_Admin_Game_EditTest::testPreviewURLs with data set #0 (5358) [exec] PHPUnit_Framework_Exception: Could not connect to the Selenium RC server. [exec]

Build 314: [exec] PHPUnit 3.5.15 by Sebastian Bergmann. [exec] [exec] I……………..I…E [exec] [exec] Time: 26:42, Memory: 35.25Mb [exec] [exec] There was 1 error: [exec] [exec] 1) AG_Test_Integration_User_UserPageTest::testCategoryPages with data set #3 (array(’/category/action’, 5, ’css=#main-content .related-games a.game’)) [exec] PHPUnit_Framework_Exception: Could not connect to the Selenium RC server.

giorgiosironi commented 12 years ago

If you provide a sample test that repeated enough times causes this behavior, I can see if the prolem resides within PHPUnit_Selenium.

theschles commented 12 years ago

Issue is moot. We've stopped using PHPUnit_Selenium.