* [task#128088,doing,1h,3h] Add function.

This commit is contained in:
yulujie
2024-09-09 08:54:58 +08:00
committed by 李阳
parent 4868dc97cc
commit e76cdcd890
+23
View File
@@ -0,0 +1,23 @@
<?php
include dirname(__FILE__, 5) . '/test/lib/ui.php';
class allExecutionTester extends tester
{
/**
* 检查Tab标签下的数据。
* Check the data of the Tab tag.
*
* @param string $tab all|undone|wait|doing|suspended|closed
* @param string $expectNum
* @access public
* @return object
*/
public function checkTab($tab, $expectNum)
{
$form = $this->initForm('execution', 'all', '', 'appIframe-execution');
$selectedTab = $tab . 'Tab';
$form->dom->$selectedTab->click();
$form->wait(1);
if($form->dom->num->getText() == $expectNum) return $this->success($tab . '标签下显示条数正确');
return $this->failed($tab . '标签下显示条数不正确');
}
}