芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/codeception/codeception/src/Codeception/Step/TryTo.php
isTry = true; try { parent::run($container); } catch (\Exception $e) { codecept_debug("Failed to perform: {$e->getMessage()}, skipping..."); return false; } return true; } public static function getTemplate(Template $template) { $action = $template->getVar('action'); if ((strpos($action, 'have') === 0) || (strpos($action, 'am') === 0)) { return; // dont try on conditions } if (strpos($action, 'wait') === 0) { return; // dont try on waiters } if (strpos($action, 'grab') === 0) { return; // dont on grabbers } $conditionalDoc = "* [!] Test won't be stopped on fail. Error won't be logged \n " . $template->getVar('doc'); return $template ->place('doc', $conditionalDoc) ->place('action', 'tryTo' . ucfirst($action)) ->place('step', 'TryTo'); } }