2012-02-27 13 views
0

PHPUnitの複数のブラウザでエラーが発生しました。 私は私のテストを開始すると、私はhqve qnエラーが発生したときにテストが終了...しかし、私は私のテストが終わりに行くことを望むだろう。 どうすればいいですか?お願いします。 私は "キャッチを試みる" 何も...作ってみる。■複数のブラウザをテストするPHPUnit Selenium stop

私のクラスを:

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; 
} 

}

答えて

0

は、PHP assertEqualを使用してverifyものを使用しないようにしてください。 (私はPHPのテストコマンドにはない)

関連する問題