[TYPO3-dev] ObjectManager crashes when Selenium was run the first time (Typo3 4.5.32)
Christian Stüdemann
typo3.dev at christian-stuedemann.de
Sun Nov 2 21:44:36 CET 2014
When I run a Seleniumt test case, the first test case works pretty fine. The second testcase (regardless if it is Selenium or PhpUnit) fails with the first call of the ObjectManager. It does not matter, if the Selenium WebDriver is running or not. Even an aborted Selenium Test case without a running WebDriver leads to the same result.
The t3lib_db seems to have lost the resource / connection to the DB at the end of the first Selenium call.
This error does not happen, if I disable the "Run Selenium Test" checkbox.
This is the Stack Trace:
#0 [internal function]: PHPUnit_Util_ErrorHandler::handleError(2, 'mysql_real_esca...', '/opt/typo3_src-...', 774, Array)
#1 /opt/typo3_src-4.5.32/t3lib/class.t3lib_db.php(774): mysql_real_escape_string('Tx_Extbase_MVC_...', 0)
#2 /opt/typo3_src-4.5.32/t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php(205): t3lib_DB->fullQuoteStr('Tx_Extbase_MVC_...', 'tx_extbase_cach...')
#3 /opt/typo3_src-4.5.32/t3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php(103): t3lib_cache_backend_DbBackend->has('Tx_Extbase_MVC_...')
#4 /opt/typo3_src-4.5.32/typo3/sysext/extbase/Classes/Object/Container/ClassInfoCache.php(59): t3lib_cache_frontend_AbstractFrontend->has('Tx_Extbase_MVC_...')
#5 /opt/typo3_src-4.5.32/typo3/sysext/extbase/Classes/Object/Container/Container.php(289): Tx_Extbase_Object_Container_ClassInfoCache->has('Tx_Extbase_MVC_...')
#6 /opt/typo3_src-4.5.32/typo3/sysext/extbase/Classes/Object/Container/Container.php(127): Tx_Extbase_Object_Container_Container->getClassInfo('Tx_Extbase_MVC_...')
#7 /opt/typo3_src-4.5.32/typo3/sysext/extbase/Classes/Object/Container/Container.php(95): Tx_Extbase_Object_Container_Container->getInstanceInternal('Tx_Extbase_MVC_...', Array)
#8 /opt/typo3_src-4.5.32/typo3/sysext/extbase/Classes/Object/ObjectManager.php(83): Tx_Extbase_Object_Container_Container->getInstance('Tx_Extbase_MVC_...', Array)
#9 /opt/typo3_src-4.5.32/typo3/sysext/extbase/Classes/MVC/Controller/AbstractController.php(167): Tx_Extbase_Object_ObjectManager->create('Tx_Extbase_MVC_...')
#10 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/csevents/Tests/Unit/Controller/AppointmentControllerTest.php(51): Tx_Extbase_MVC_Controller_AbstractController->injectObjectManager(Object(Tx_Extbase_Object_ObjectManager))
#11 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Composer/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php(828): Tx_Csevents_Tests_Unit_Controller_AppointmentControllerTest->setUp()
#12 /opt/typo3_src-4.5.32/typo3/sysext/extbase/Tests/Unit/BaseTestCase.php(62): PHPUnit_Framework_TestCase->runBare()
#13 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Composer/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php(648): Tx_Extbase_Tests_Unit_BaseTestCase->runBare()
#14 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Composer/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php(776): PHPUnit_Framework_TestResult->run(Object(Tx_Csevents_Tests_Unit_Controller_AppointmentControllerTest))
#15 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Composer/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(775): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#16 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Composer/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(745): PHPUnit_Framework_TestSuite->runTest(Object(Tx_Csevents_Tests_Unit_Controller_AppointmentControllerTest), Object(PHPUnit_Framework_TestResult))
#17 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Composer/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(705): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Array, false)
#18 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Classes/BackEnd/Module.php(831): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
#19 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Classes/BackEnd/Module.php(593): Tx_Phpunit_BackEnd_Module->runAllTests(Object(PHPUnit_Framework_TestSuite), Object(PHPUnit_Framework_TestResult))
#20 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Classes/BackEnd/Module.php(288): Tx_Phpunit_BackEnd_Module->renderRunningTest()
#21 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Classes/BackEnd/Module.php(206): Tx_Phpunit_BackEnd_Module->renderRunTests()
#22 /home/.sdb/var/www/html/dummy-4.5.32/typo3conf/ext/phpunit/Classes/BackEnd/index.php(86): Tx_Phpunit_BackEnd_Module->main()
#23 /opt/typo3_src-4.5.32/typo3/mod.php(51): require('/home/.sdb/var/...')
#24 {main}
Using Typo3 4.5.32
PHPUnit 3.7.22
Extbase 1.3.4
Fluid 1.3.1
Selenium WebDriver 2.32.0 with Firefox 20.0.1
More information about the TYPO3-dev
mailing list