0
我的多個瀏覽器測試PHPUnit時出現錯誤。 當我啓動我的測試時,測試停止,當我hqve qn錯誤...但我希望我的測試進行到最後。 我該怎麼做?請。 我嘗試做一個 「的try-catch」 但沒有什麼...:■測試多個瀏覽器PHPUnit selenium停止
我的課:
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;
}
}