Beispiel #1
0
class loginPage(BaseTestCase, LoginYesPage, HomePage):
    @data(*Model.DataHelper().readExcels())
    @unpack
    def testLoginError_001(self, username, password, verifyCode,
                           context_expxcted):
        '''测试:YES登录失败的N种情况'''
        self.doLogin(username, password, verifyCode)
Beispiel #2
0
class baiduPage(BaseTestCase,BaiduPage):

	@data(*Model.DataHelper().readExcels())
	@unpack
	def testLogin_001(self,username,password,context_expxcted):
		'''测试:百度登录失败的N种情况'''
		self.doLogin(username,password)
		self.assertEqual(context_expxcted,self.getLoginErrorDiv())