# 传多组数据,有几组数据,就遍历几次 @pytest.mark.parametrize("usname,pswd", [("xiaoming","123456"), ("xiaohong","123678")]) def test_login(self,usname, pswd): login_page=LoginPage(driver=self.driver) login_page.login(usname, pswd)
注意:noReset要设置为False,要不然第一次登录如果成功后,后面的就不再继续登录了
标签:appium,登录,python,多组,usname,login,pswd From: https://www.cnblogs.com/may18/p/17694334.html