[task#137888, 0.5h] add zendata and step for uitest.
This commit is contained in:
@@ -38,3 +38,12 @@ $action->execution->range('0');
|
||||
$action->actor->range('admin');
|
||||
$action->action->range('opened');
|
||||
$action->read->range('0');
|
||||
$action->vision->range('rnd');
|
||||
$action->gen(2);
|
||||
|
||||
$tester = new browseTestSuiteTester();
|
||||
$tester->login();
|
||||
|
||||
r($tester->browseTestSuite()) && p('message,status') && e('测试套件列表测试成功,SUCCESS');
|
||||
|
||||
$tester->closeBrowser();
|
||||
|
||||
@@ -6,8 +6,13 @@ class browsePage extends page
|
||||
parent::__construct($webdriver);
|
||||
|
||||
$xpath = array(
|
||||
'type' => '//*[@id="table-testsuite-browse"]/div[2]/div[1]/div/div[2]/div/div[1]/span',
|
||||
'name' => '//*[@id="table-testsuite-browse"]/div[2]/div[1]/div/div[2]/div/div[2]/a'
|
||||
'sumCount' => '//*[@id="featureBar"]/menu/li/a/span[2]',
|
||||
'type' => '//*[@id="table-testsuite-browse"]/div[2]/div[1]/div/div[2]/div/div[1]/span',
|
||||
'name' => '//*[@id="table-testsuite-browse"]/div[2]/div[1]/div/div[2]/div/div[2]/a',
|
||||
/*列表底部统计数*/
|
||||
'footerSumCount' => '//*[@id="table-testsuite-browse"]/div[3]/div[1]/strong[1]',
|
||||
'footerPublicCount' => '//*[@id="table-testsuite-browse"]/div[3]/div[1]/strong[2]',
|
||||
'footerPrivateCount' => '//*[@id="table-testsuite-browse"]/div[3]/div[1]/strong[3]'
|
||||
);
|
||||
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user