* [uitest] Add batchcreateuser ui testcase
This commit is contained in:
@@ -61,3 +61,24 @@ class batchCreateUserTester extends tester
|
||||
|
||||
return $this->failed('姓名不能为空');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the page jump after batchcreate a empty password user.
|
||||
*
|
||||
* @param string $user
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function batchCreateEmptyPasswordUser($user)
|
||||
{
|
||||
$form = $this->initForm('user', 'batchCreate', array(), 'appIframe-admin');
|
||||
$form->dom->account->setValue($user->account);
|
||||
$form->dom->realname->setValue($user->realname);
|
||||
$form->dom->passwordfield->setValue($user->passwordfield);
|
||||
$form->dom->verifyPassword->setValue($user->verifyPassword);
|
||||
$form->dom->btn($this->lang->save)->click();
|
||||
$form->wait(1);
|
||||
|
||||
return $this->failed('密码不能为空');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user