php - Selenium browsers not recognized if using phpunit.xml -
i've created test case extending \phpunit_extensions_selenium2testcase , specifiying browsers using $browsers, in phpunit 3.7.21:
class seleniumtest extends \phpunit_extensions_selenium2testcase { public static $browsers = array( array( 'name' => 'explorer on windows', 'browsername' => 'explorer', 'host' => 'localhost', ) ); }
but if remove $browsers , try configure browsers in phpunit.xml putting following in tags, per docs, settings not read:
<phpunit bootstrap="../../testmodule/test/modulebootstrap.php" backupglobals="false"> <testsuites> <testsuite name="manager"> <directory>./test</directory> </testsuite> </testsuites> <selenium> <browser name="firefox on windows" browser="firefox" host="localhost"/> <browser name="explorer on windows" browser="explorer" host="localhost"/> </selenium> </phpunit>
i've tried changing browser="explorer"
browsername="explorer"
in either case settings not getting picked up.
i believe not connection issue phpunit not try run test each browser. feature supported in phpunit / selenium2?
the phpunit.xml
solution works selenium rc
(and it's stated explicitly in documentation).
for phpunit selenium 2 have follow original idea static property.
Comments
Post a Comment