def setUp(self): self.driver = webdriver.Firefox() self.driver.implicitly_wait(10) #login_business.admin_login(self,url,user,passwd) login_business.default_login(self) diagnostics_control.diag_menu(self) print u'网络诊断页面已打开'
def setUp(self): self.driver = webdriver.Firefox() self.driver.implicitly_wait(10) #login_business.admin_login(self,url,user,passwd) login_business.default_login(self) flashops_control.flashops_menu(self) print '备份升级页面已打开'
def setUp(self): self.driver = webdriver.Firefox() #将浏览器最大化 self.driver.maximize_window() #使用默认ip登录门户认证的页面 login_business.default_login(self) time.sleep(3) general_control.wifidog_menu(self)
def setUp(self): #url = "http://192.168.11.1" #user = '******' #passwd = 'bm100@rut!%v2' self.driver = webdriver.Firefox() self.driver.implicitly_wait(10) #login_business.admin_login(self,url,user,passwd) login_business.default_login(self) dmz_control.dmz_menu(self) print u'DMZ页面已打开'
def test_21bytepwd(self): login_control.set_user(self,web_usr,max_pwd1) login_control.submit(self) login_control.get_error(self) print u'登陆密码长度大于最大有效值时--验证成功' login_business.default_login(self)
def test_20bytepwd(self): login_business.default_login(self) admin_control.menu(self) result = admin_business.updatePassword(self,max_pwd,max_pwd) assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去' print u'登录密码长度等于最大有效值时--验证成功'
def test_5bytepwd(self): login_control.set_user(self,general_usr,mini_pwd1) login_control.submit(self) login_control.get_error(self) print u'登陆密码长度小于最小有效值时--验证成功' login_business.default_login(self)
def test_1bytepwd(self): login_control.set_user(self,general_usr,'1') login_control.submit(self) login_control.get_error(self) print u'登陆密码为1字节时--验证成功' login_business.default_login(self)
def test_unllusr(self): login_control.set_user(self,'',general_pwd) login_control.submit(self) login_control.get_error(self) print u'登陆用户名为空--验证成功' login_business.default_login(self)
def test_nulllogin(self): login_control.set_user(self,'','') login_control.submit(self) login_control.get_error(self) print u'登陆用户名、密码都为空时--验证成功' login_business.default_login(self)
def test_special(self): login_business.default_login(self) admin_control.menu(self) result = admin_business.updatePassword(self,special_pwd,special_pwd) assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去' print u'登录密码含特殊字符时-验证成功'
def test_letter(self): login_business.default_login(self) admin_control.menu(self) result = admin_business.updatePassword(self,letter_pwd,letter_pwd) assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去' print u'登录密码为纯字母时-验证成功'
def test_digital(self): login_business.default_login(self) admin_control.menu(self) result = admin_business.updatePassword(self,digit_pwd,digit_pwd) assert result == True,u'密码修改成功后,使用修改后的密码登陆不进去' print u'登录密码为21字节时-验证成功'
def setUp(self): self.driver = webdriver.Firefox() login_business.default_login(self) time.sleep(3) general_control.wifidog_menu(self)
def setUp(self): self.driver = webdriver.Firefox() login_business.default_login(self) privoxy_control.privoxy_menu(self)