+ [task#135060,doing,0.5h,1.6h] add importFromProgram function.
This commit is contained in:
@@ -34,4 +34,18 @@ class batchCreateStakeholderTester extends tester
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function importFromProgram($expectNum)
|
||||
{
|
||||
$form = $this->initForm('stakeholder', 'batchCreate', array('projecID' => 2), 'appIframe-project');
|
||||
$form->dom->importBtn->click();
|
||||
$form->wait(1);
|
||||
$form->dom->btn($this->lang->save)->click();
|
||||
$form->wait(1);
|
||||
/* 干系人列表检查干系人数 */
|
||||
$browsePage = $this->loadPage('stakeholder', 'browse');
|
||||
$string = $browsePage->dom->number->getText();
|
||||
$stakeholderNum = preg_replace('/\D/', '', $string); //从字符串中提取数字部分
|
||||
if($stakeholderNum == $expectNum) return $this->success('批量创建干系人成功');
|
||||
return $this->failed('批量创建干系人失败');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user