def test_02_login_normal(self): '''正确用户名,正确密码登录''' log.info("验证正确用户名、正确密码登录") tel = get_yaml_value(TEST_ACCOUNT_PATH, 'account_1') pwd = get_yaml_value(TEST_ACCOUNT_PATH, 'pwd_1_right') lp = LoginPage(self.driver) lp.login_opera(tel, pwd) time.sleep(2) # 断言是否登录成功 pgi = PageInit(self.driver) result = pgi.is_login_success() self.assertTrue(result) time.sleep(3)
def setUpClass(cls) -> None: '''初始化,登录进入首页''' log.info("-----开始执行用例:新增、编辑、删除VIP-----") cls.driver = BaseDriver().android_driver() PageInit(cls.driver).init_to_home()
def setUpClass(cls) -> None: '''初始化,登录进入首页''' log.info("-----开始执行用例:充值通用小票、会员充值记录、小票回收-----") cls.driver = BaseDriver().android_driver() PageInit(cls.driver).init_to_home()
def setUp(self) -> None: '''初始化,登录进入首页''' log.info("-----开始执行用例:首页-----") self.driver = BaseDriver().android_driver() PageInit(self.driver).init_to_home()
def setUpClass(cls) -> None: '''初始化进入App首页''' log.info("---开始执行用例:提交商品品牌信息---") cls.driver = BaseDriver().android_driver() PageInit(cls.driver).init_to_home()