我想导航到特定的URL并且不希望每次都硬编码该值。有没有办法调用'SELENIUM_BASEURL'来代替。使用PHP检索存储在XML中的值
$ this-> url('http://www.google.com');
phpunit.xml ...
<php>
<!-- define some constants to use in our test classes -->
<const name="SELENIUM_HOST" value="127.0.0.1"/>
<const name="SELENIUM_BASEURL" value="http://www.google.com"/>
</php>
<testsuites>
<testsuite name="SeleniumSetup">
<directory>tests/integration/</directory>
</testsuite>
</testsuites>
非常感谢您! :) – 2014-10-20 13:18:16
@AkifTahir很高兴帮助 – Ghost 2014-10-20 13:19:56