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
测试多个浏览器phpunitselenium停止_Php_Selenium_Phpunit - Fatal编程技术网

测试多个浏览器phpunitselenium停止

测试多个浏览器phpunitselenium停止,php,selenium,phpunit,Php,Selenium,Phpunit,我的多浏览器测试PHPUnit有一个错误。 当我启动测试时,当我发现错误时,测试停止。。。但我希望我的测试能结束。 我该怎么做?请 我想试着接球,但什么也没有 我的班级: class Alltest extends PHPUnit_Extensions_SeleniumTestCase { public static $browsers = array( array( 'name' => 'Firefox', 'browser' => '*firefox',

我的多浏览器测试PHPUnit有一个错误。 当我启动测试时,当我发现错误时,测试停止。。。但我希望我的测试能结束。 我该怎么做?请 我想试着接球,但什么也没有

我的班级:

class Alltest extends PHPUnit_Extensions_SeleniumTestCase
{

public static $browsers = array(
array(
    'name'    => 'Firefox',
    'browser' => '*firefox',
    'port'    => 4444,
    'timeout' => 50000,
  ),
array(
    'name'    => 'IExplorer',
    'browser' => '*iexploreproxy',
    'port'    => 4444,
    'timeout' => 50000,
  ),
array(
    'name'    => 'Chrome',
    'browser' => '*googlechrome C:\Program Files\Google\Chrome\Application\chrome.exe',
    'port'    => 4444,
    'timeout' => 50000,
  )
);


 public function setUp(){
 $this->setBrowserUrl(URL);
}


public function testAll(){

$this->windowMaximize();

echo "test all...";
$test = new testRegistration();
$test->Registration($this, $report);
$tabTest["reg"] = "'".$nbTestok . "/" . $nbTest;
    login($this, $report);
$test = new CreatQuest();
$test->create_questions($this, $report);
$tabTest["crea"] = "'".$nbTestok . "/" . $nbTest;
$test = new testDesign();
$test->Design($this, $report);
$tabTest["design"] = "'".$nbTestok . "/" . $nbTest;
$test = new testLocalisation();
$test->Localisation($this, $report);
$tabTest["local"] = "'".$nbTestok . "/" . $nbTest;
$test = new testAnalyse();
$test->Analyse($this, $report);
$tabTest["analyse"] = "'".$nbTestok . "/" . $nbTest;
$test = new accountTest();
$test->testAccount($this, $report);
$tabTest["cfgcompte"] = "'".$nbTestok . "/" . $nbTest;
}
}

使用php assertEqual,确保不要使用验证任何内容。我不喜欢php测试命令