Feature #237
Supports the <selenium> element in the PHPUnit XML configuration file.
| Status: | Closed | Start date: | 11/13/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | PHPUnit | |||
| Target version: | 2.16.0 | |||
| Tags: | ||||
| Votes: | 0 |
Description
Testrunner don't handle configuration file section for selenium (http://seleniumhq.org/).
Not all option parsed in PHPUnit_TextUI_TestRunner which is parent of Stagehand_TestRunner_Runner_PHPUnitRunner_TestRunner.
Because options for selenium parsed in PHPUnit_TextUI_Command::handleArguments that never handled in stagehand testrunner.
In this reason testrunner fail on selenium testcases and programmer should add some code like this to bootstrap
[code]
$configuration = PHPUnit_Util_Configuration::getInstance("config");
$browsers = $configuration->getSeleniumBrowserConfiguration();
if (!empty($browsers)) {
PHPUnit_Extensions_SeleniumTestCase::$browsers = $browsers;
}
[/code]
May be add some code like this in phpunittestrunner (for phpunit section)?
Resources
Related issues
Associated revisions
Added support for the <selenium> element in the PHPUnit XML configuration file. (Issue #237)
Added support for the <selenium> element in the PHPUnit XML configuration file. (Issue #237)
Added a missing require_once statement for the PHPUnit_Extensions_SeleniumTestCase class. (Issue #237)
Added a missing require_once statement for the PHPUnit_Util_Configuration class. (Issue #237)
History
Updated by Atsuhiro KUBO over 2 years ago
- Tracker changed from Defect to Feature
- Subject changed from TestRunner don't handle selenium options in configuration file to Supports the <selenium> element in the PHPUnit XML configuration file.
- Target version set to 2.16.0
Updated by Atsuhiro KUBO over 2 years ago
- Status changed from New to Assigned
Updated by Atsuhiro KUBO over 2 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Updated by Atsuhiro KUBO over 2 years ago
- Status changed from Closed to Feedback
Updated by Atsuhiro KUBO over 2 years ago
- Status changed from Feedback to Rejected
Updated by Atsuhiro KUBO over 2 years ago
- Status changed from Rejected to Closed