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)
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())