class TestWX: def setup(self): self.main = MainPage() def test_addmember(self): username = '******' id = 'readsuccess10' phone = '13452812182' addmember = self.main.goto_addmember() addmember.addmember(username, id, phone) assert username in addmember.get_member(username)
class TestWX: def setup(self): self.main = MainPage() def test_addmember(self): username = "******" account = "aaaaaah_hogwarts" phonenum = "13400000007" addmember = self.main.goto_addmember() addmember.add_member(username, account, phonenum) assert username in addmember.get_member(username)
class TestWx: def setup(self): self.main = MainPage() @pytest.mark.parametrize('username,acount,phone', get_datas()) def test_addmenber(self, username, acount, phone): # username="******" # acount = "aaaa_hyl521" # phone = "12450090905" addmember = self.main.goto_addmember() addmember.add_member(username, acount, phone) username: str = username listtile = addmember.get_member(username) assert username in listtile