* [uitest] add exception config.
This commit is contained in:
@@ -43,6 +43,7 @@ $config->uitest->chrome->options[] = '--ignore-certificate-errors';
|
||||
$config->uitest->chrome->options[] = '--test-type';
|
||||
$config->uitest->chrome->options[] = '--start-maximized';
|
||||
|
||||
$config->uitest->setExceptionHandler = true;
|
||||
$config->uitest->exitBrowserOnException = true;
|
||||
$extConfigFiles = glob(dirname(__FILE__) . DS . 'ext' . DS . '*.php');
|
||||
if($extConfigFiles) foreach($extConfigFiles as $extConfigFile) include $extConfigFile;
|
||||
|
||||
+2
-2
@@ -154,13 +154,13 @@ class tester extends result
|
||||
$this->cookieFile = '/tmp/cookie';
|
||||
|
||||
// 设置异常处理函数
|
||||
set_exception_handler(array($this, 'exceptionHandler'));
|
||||
if($this->config->uitest->setExceptionHandler) set_exception_handler(array($this, 'exceptionHandler'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Exception handler.
|
||||
*
|
||||
* @param int $e
|
||||
* @param object $e
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user