Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 命令http://localhost:8383/wd/hub/session 服务器无法识别_Php_Selenium_Selenium Webdriver_Composer Php_Phpstorm - Fatal编程技术网

Php 命令http://localhost:8383/wd/hub/session 服务器无法识别

Php 命令http://localhost:8383/wd/hub/session 服务器无法识别,php,selenium,selenium-webdriver,composer-php,phpstorm,Php,Selenium,Selenium Webdriver,Composer Php,Phpstorm,我正在用PHP进行自动功能单元测试。我想使用PhpStorm在登台环境上运行测试,我遵循以下链接:。我已完成此代码之前的任务: <?php /** * Created by PhpStorm. * User: Developer4 * Date: 11/2/2016 * Time: 1:41 PM */ class uatTest extends PHPUnit_Extensions_Selenium2TestCase { public function setUp()

我正在用PHP进行自动功能单元测试。我想使用PhpStorm在登台环境上运行测试,我遵循以下链接:。我已完成此代码之前的任务:

<?php

/**
 * Created by PhpStorm.
 * User: Developer4
 * Date: 11/2/2016
 * Time: 1:41 PM
 */
class uatTest extends PHPUnit_Extensions_Selenium2TestCase
{
    public function setUp()
    {
        $this->setHost('localhost');
        $this->setPort(8383);
        $this->setBrowserUrl('https://www.facebook.com/');

        $this->setBrowser('firefox');
    }
    public function tearDown()
    {
        $this->stop();
    }
    public function validInputsProvider()
    {
        $inputs[] = [
            [
                'email'              => 'hnuat',
                'pass'              => 'pass'
            ]
        ];

        return $inputs;
    }
    public function testFormSubmissionWithUsername()
    {
        $this->byName('email')->value('hnuat');
        $this->byId('loginbutton')->submit();
        $email = $this->byName('email');
        $this->assertEquals('hnuat', $email->value());
    }
}
我的wamp配置是localhost:8383/ 解决这个问题有什么帮助吗

C:\wamp\bin\php\php5.6.25\php.exe C:/wamp/www/PHPUnit-and-Composer-Workflow/vendor/phpunit/phpunit/phpunit --no-configuration uatTest C:\wamp\www\PHPUnit-and-Composer-Workflow\test\uatTest.php --teamcity
Testing started at 7:31 PM ...
PHPUnit 5.6.2 by Sebastian Bergmann and contributors.


The command http://localhost:8383/wd/hub/session is not recognized by the server.
 C:\wamp\www\PHPUnit-and-Composer-Workflow\vendor\phpunit\phpunit-selenium\PHPUnit\Extensions\Selenium2TestCase\Driver.php:133
 C:\wamp\www\PHPUnit-and-Composer-Workflow\vendor\phpunit\phpunit-selenium\PHPUnit\Extensions\Selenium2TestCase\Driver.php:72
 C:\wamp\www\PHPUnit-and-Composer-Workflow\vendor\phpunit\phpunit-selenium\PHPUnit\Extensions\Selenium2TestCase\SessionStrategy\Isolated.php:67
 C:\wamp\www\PHPUnit-and-Composer-Workflow\vendor\phpunit\phpunit-selenium\PHPUnit\Extensions\Selenium2TestCase.php:296
 C:\wamp\www\PHPUnit-and-Composer-Workflow\vendor\phpunit\phpunit-selenium\PHPUnit\Extensions\Selenium2TestCase.php:337
 C:\wamp\www\PHPUnit-and-Composer-Workflow\vendor\phpunit\phpunit-selenium\PHPUnit\Extensions\Selenium2TestCase.php:314



Time: 4.12 seconds, Memory: 3.00MB


ERRORS!
Tests: 1, Assertions: 0, Errors: 1.

Process finished with exit code 2