Files
EasySoft-ZenTaoPMS/module/execution/test/lib/storykanban.ui.class.php
T
2024-11-08 08:53:42 +08:00

24 lines
742 B
PHP

<?php
include dirname(__FILE__, 5) . '/test/lib/ui.php';
class storykanbanTester extends tester
{
/**
* 检查需求看板数据。
* Check storykanban data.
*
* @param string $stage
* @param string $num
* @access public
* @return object
*/
public function check($stage, $num)
{
$form = $this->initForm('execution', 'storykanban', array('execution' => '2'), 'appIframe-execution');
$form->dom->kanbanBtn->click();
$form->wait(1);
preg_match_all('/\d+(?:\.\d+)?/', $form->dom->$stage->getText(), $matches);
if($matches[0][0] != $num) return $this->failed("{$stage}列数据有误");
return $this->success("{$stage}列数据正确");
}
}