+ [task#133982,doing,0.5h,2.5h] Add checkTab function.
This commit is contained in:
@@ -11,4 +11,14 @@ class testcaseTester extends tester
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function checkTab($tab, $expectNum)
|
||||
{
|
||||
$form = $this->initForm('project', 'testcase', array('project' => 1), 'appIframe-project');
|
||||
$form->dom->$tab->click();
|
||||
$form->wait(1);
|
||||
$target = ($tab == "storyNoCaseTab") ? $form->dom->zerocaseNum : $form->dom->testcaseNum;
|
||||
$actualNum = preg_replace('/\D/', '', $target->getText());
|
||||
if ($actualNum == $expectNum) return $this->success($tab . '下显示用例数正确');
|
||||
return $this->failed($tab . '下显示用例数不正确');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user