我正在尝试让Selenium-RC在Windows / XAMPP环境中工作。我用PHP编码。
以下命令行打开两个Firefox窗口。
java -jar jar \ selenium-server-1.0.3 \ selenium-server.jar -htmlSuite“* firefox”“http://www.google.com”“jar \ selenium-php-client-driver-1.0 .1 \ TestSuite.php“”logs \ TestSuite-F.html“
第一个Firefox窗口打开http://localhost:4444/selenium-server/core/TestRunner-splash.html?start=true
第二个Firefox窗口打开chrome://src/content/TestRunner.html?auto = true& multiWindow = true& defaultLogLevel = info& baseUrl = http%3A%2F%2Fwww.google.com& resultsUrl = http: //localhost:4444/selenium-server/postResults&test=http%3A%2F%2Flocalhost%3A4444%2Fselenium-server%2Ftests%2FTestSuite.php
第二个窗口的左上角框架包含:
addTestSuite('SeleniumTest');
$suite->addTestSuite('GoogleTest');
$suite->addTestSuite('MockBrowserTest');
return $suite; } }
if (PHPUnit_MAIN_METHOD == 'Framework_AllTests::main') {
Framework_AllTests::main();
} ?>
这似乎是错误的,并且无法实际运行测试。
任何关于如何进行的建议将不胜感激。