Files
EasySoft-ZenTaoPMS/module/execution/test/lib/suspendexecution.ui.class.php
T

24 lines
721 B
PHP

<?php
include dirname(__FILE__, 5) . '/test/lib/ui.php';
class suspendExecutionTester extends tester
{
/**
* 挂起执行
* Suspend execution.
*
* @param string $executionId
* @access public
* @return void
*/
public function suspendExecution($executionId)
{
$form = $this->iniForm('execution', 'view', array('execution => $executionId'), 'appIframe-execution');
$form->dom->suspend->click();
$form->dom->suspendSubmit->click();
$form->wait(1);
if($form->dom->status->getText() != $this->lang->execution->statusList->suspended) return $this->failed('执行状态错误');
return $this->success('挂起执行成功');
}
}