*[uitest] Add waittime.
This commit is contained in:
@@ -12,7 +12,7 @@ class deleteExecutionTester extends tester
|
||||
public function delete()
|
||||
{
|
||||
$viewForm = $this->initForm('execution', 'view', array('execution' => '2'), 'appIframe-execution');
|
||||
$viewForm->wait(1);
|
||||
$viewForm->wait(5);
|
||||
$executionName = $viewForm->dom->executionName->getText();
|
||||
$viewForm->dom->deleteBtn->click();
|
||||
$viewForm->wait(1);
|
||||
|
||||
@@ -13,7 +13,7 @@ class executionkanbanTester extends tester
|
||||
public function checkNums($nums)
|
||||
{
|
||||
$form = $this->initForm('execution', 'executionkanban', '', 'appIframe-execution');
|
||||
$form->wait(1);
|
||||
$form->wait(3);
|
||||
if($form->dom->wait->getText() != $nums[0]) return $this->failed('未开始的执行列统计错误');
|
||||
if($form->dom->doing->getText(2) != $nums[1]) return $this->failed('进行中的执行列统计错误');
|
||||
if($form->dom->suspend->getText(3) != $nums[2]) return $this->failed('已挂起的执行列统计错误');
|
||||
|
||||
@@ -14,11 +14,14 @@ class importBugTester extends tester
|
||||
public function importBug($executionId, $expectNum)
|
||||
{
|
||||
$form = $this->initForm('execution', 'task', array('execution' => $executionId), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
$form->dom->btn($this->lang->import)->click();
|
||||
$form->wait(1);
|
||||
$form->dom->btn($this->lang->execution->importBug)->click();
|
||||
$form->wait(1);
|
||||
|
||||
$importForm = $this->loadPage('execution', 'importBug');
|
||||
$importForm->wait(1);
|
||||
$importForm->wait(3);
|
||||
if($importForm->dom->num === false)
|
||||
{
|
||||
if ($expectNum == '0') return $this->success('可导入的Bug数目正确');
|
||||
|
||||
@@ -14,6 +14,7 @@ class storyTester extends tester
|
||||
public function checkTab($tab, $expectNum)
|
||||
{
|
||||
$form = $this->initForm('execution', 'story', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
$form->dom->$tab->click();
|
||||
$form->wait(1);
|
||||
if($form->dom->num->getText() == $expectNum) return $this->success($tab . '下显示条数正确');
|
||||
@@ -30,8 +31,10 @@ class storyTester extends tester
|
||||
public function unlinkStory()
|
||||
{
|
||||
$form = $this->initForm('execution', 'story', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
$name = $form->dom->firstName->getText();
|
||||
$form->dom->firstUnlinkBtn->click();
|
||||
$form->wait(1);
|
||||
$form->dom->alertModal();
|
||||
$form->wait(1);
|
||||
|
||||
@@ -51,8 +54,10 @@ class storyTester extends tester
|
||||
public function batchUnlinkStory()
|
||||
{
|
||||
$form = $this->initForm('execution', 'story', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
$name = $form->dom->firstName->getText();
|
||||
$form->dom->firstCheckbox->click();
|
||||
$form->wait(1);
|
||||
$form->dom->btn($this->lang->execution->unlinkStory)->click();
|
||||
$form->wait(1);
|
||||
$form->dom->alertModal();
|
||||
@@ -76,6 +81,7 @@ class storyTester extends tester
|
||||
public function batchEditPhase($status, $phase)
|
||||
{
|
||||
$form = $this->initForm('execution', 'story', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
$storyStatus = $this->lang->story->statusList->$status;
|
||||
$storyPhase = $this->lang->story->stageList->$phase;
|
||||
|
||||
|
||||
@@ -13,15 +13,19 @@ class StoryEstimateTester extends tester
|
||||
public function inputForm($estimate)
|
||||
{
|
||||
$form = $this->initForm('execution', 'story', array('execution' => '2'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
|
||||
$form->dom->xpath['firstEstimateBtn'] = "//a[@title = '{$this->lang->execution->storyEstimate}']";
|
||||
$form->dom->firstEstimateBtn->click();
|
||||
$form->wait(1);
|
||||
if(is_object($form->dom->reestimate)) $form->dom->reestimate->click();
|
||||
$form->wait(1);
|
||||
if(isset($estimate[0])) $form->dom->estimateA->setValue($estimate[0]);
|
||||
if(isset($estimate[1])) $form->dom->estimateB->setValue($estimate[1]);
|
||||
if(isset($estimate[2])) $form->dom->estimateC->setValue($estimate[2]);
|
||||
$form->wait(1);
|
||||
$form->dom->saveBtn->click();
|
||||
$form->wait(1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,6 +90,7 @@ class StoryEstimateTester extends tester
|
||||
public function noTeamInfo()
|
||||
{
|
||||
$form = $this->initForm('execution', 'story', array('execution' => '3'), 'appIframe-execution');
|
||||
$form->wait(3);
|
||||
|
||||
$form->dom->xpath['firstEstimateBtn'] = "//a[@title = '{$this->lang->execution->storyEstimate}']";
|
||||
$form->dom->firstEstimateBtn->click();
|
||||
|
||||
Reference in New Issue
Block a user