本文整理汇总了PHP中PHPUnit_Extensions_SeleniumTestCase::onNotSuccessfulTest方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Extensions_SeleniumTestCase::onNotSuccessfulTest方法的具体用法?PHP PHPUnit_Extensions_SeleniumTestCase::onNotSuccessfulTest怎么用?PHP PHPUnit_Extensions_SeleniumTestCase::onNotSuccessfulTest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Extensions_SeleniumTestCase
的用法示例。
在下文中一共展示了PHPUnit_Extensions_SeleniumTestCase::onNotSuccessfulTest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onNotSuccessfulTest
protected function onNotSuccessfulTest(Exception $e)
{
parent::onNotSuccessfulTest($e);
$path = $this->htmlSourcePath . DIRECTORY_SEPARATOR . $this->testId . '.html';
file_put_contents($path, $this->getHtmlSource());
echo 'Source: ', $path, PHP_EOL;
}
示例2: onNotSuccessfulTest
protected function onNotSuccessfulTest(Exception $e)
{
parent::onNotSuccessfulTest($e);
if (Zend_Registry::get('config')->server->autoStopTest) {
try {
$this->stop();
} catch (RuntimeException $x) {
}
}
}
示例3: onNotSuccessfulTest
protected function onNotSuccessfulTest(Exception $e)
{
// Sleep for 10 seconds to keep the window open when recording and keep the browser open when running locally
// This ensures that the video will contain some seconds of the actual failure scenario - the last frame.
sleep(10);
parent::onNotSuccessfulTest($e);
}