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; }
protected function onNotSuccessfulTest(Exception $e) { parent::onNotSuccessfulTest($e); if (Zend_Registry::get('config')->server->autoStopTest) { try { $this->stop(); } catch (RuntimeException $x) { } } }
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); }