From a97ea36ba20bdd769a428d1bb9f8f54698cbfa3c Mon Sep 17 00:00:00 2001 From: yulujie Date: Thu, 22 Aug 2024 14:24:55 +0800 Subject: [PATCH] * [task#126833,doing,0.5h,2h] Add new function of ui test to putoff execution. --- .../test/lib/putoffexecution.ui.class.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/module/execution/test/lib/putoffexecution.ui.class.php b/module/execution/test/lib/putoffexecution.ui.class.php index d6379a5a88..ab397ac884 100644 --- a/module/execution/test/lib/putoffexecution.ui.class.php +++ b/module/execution/test/lib/putoffexecution.ui.class.php @@ -20,4 +20,24 @@ class putoffExecutionTester extends tester $form->dom->putoffSubmit->click(); $form->wait(1); } + + /* + * 延期执行。 + * Putoff execution. + * + * @param array $execution + * @param string $executionId + * @access public + * @return bool + */ + public function putoff($execution, $executionId) + { + $this->inputFields($execution, $executionId); + $form = $this->loadPage(); + + if($form->dom->status->getText() != $status) return $this->failed('执行状态错误'); + if($form->dom->plannedBegin->getText() != $execution['begin']) return $this->failed('计划开始时间错误'); + if($form->dom->plannedEnd->getText() != $execution['end']) return $this->failed('计划完成时间错误'); + return $this->success('延期执行成功'); + } }