Feature #237

Supports the <selenium> element in the PHPUnit XML configuration file.

Added by Maksim Zubkov over 2 years ago. Updated over 2 years ago.

Status:Closed Start date:11/13/2010
Priority:Normal Due date:
Assignee:Atsuhiro KUBO % 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

related to MakeGood - Feature #238: Option to specify phpunit xml config file Rejected 11/13/2010
related to Stagehand_TestRunner - Defect #288: The excluded tests by the <groups> element are contained ... Closed 05/26/2011

Associated revisions

Revision 1f83cd40
Added by Atsuhiro KUBO over 2 years ago

Added support for the <selenium> element in the PHPUnit XML configuration file. (Issue #237)

Revision 70cf2dbf
Added by Atsuhiro KUBO over 2 years ago

Added support for the <selenium> element in the PHPUnit XML configuration file. (Issue #237)

Revision 25746176
Added by Atsuhiro KUBO over 2 years ago

Added a missing require_once statement for the PHPUnit_Extensions_SeleniumTestCase class. (Issue #237)

Revision 81cc89e3
Added by Atsuhiro KUBO over 2 years ago

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

Also available in: Atom PDF