Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.4

Bug #18280 Phpunit with Selenium RC runs too slow
Submitted: 2011-02-16 23:29 UTC
From: preetharao Assigned:
Status: Open Package: Testing_Selenium (version 0.4.4)
PHP Version: 5.3.1 OS: linux
Roadmaps: (Not assigned)    
Subscription  


 [2011-02-16 23:29 UTC] preetharao (Preetha Rao)
Description: ------------ As a result of setting setting stream_set_blocking to blocking mode for Bug #15896, php test cases using selenium RC is very slow.The same test case runs within seconds in Testing_Selenium-0.4.3 while it takes minutes to Testing_Selenium.0.4.4. "Selenium.php" file in Testing_Selenium-0.4.3 : stream_set_blocking($handle, false); "Selenium.php" file in Testing_Selenium-0.4.4 : stream_set_blocking($handle, 1); Test script: --------------- Simple test run on Testing_Selenium-0.4.3 prao@vu61162:~/vufind/tests/Selenium/Record$ phpunit CiteThis.php PHPUnit 3.5.3 by Sebastian Bergmann. . Time: 6 seconds, Memory: 3.75Mb OK (1 test, 1 assertion) ------------------------------------------------------------------------ Same test run using Testing_Selenium-0.4.4 prao@vu61162:~/vufind/tests/Selenium/Record$ phpunit CiteThis.php PHPUnit 3.5.3 by Sebastian Bergmann. . Time: 04:06, Memory: 3.75Mb OK (1 test, 1 assertion) Kindly note the differences in running time of the tests. Expected result: ---------------- Explanation provided in Test Script block Actual result: -------------- Explanation provided in Test Script block

Comments

 [2011-02-16 23:31 UTC] preetharao (Preetha Rao)
similar bug reported Bug #18275
 [2011-02-17 05:18 UTC] liquidice (Elite coder)
I'll be downloading the next version as soon as this is fixed :D
 [2011-09-08 23:21 UTC] nurbek (Nurbek chymbaev)
Suffered a few days with slowly working. Thanks.
 [2011-09-08 23:32 UTC] liquidice (Elite coder)
This library isn't necessary anymore. I've switched over to the one provided by phpunit and it's much faster. http://www.phpunit.de/manual/current/en/selenium.html