class Test_add_mem(): def setup(self): self.main = MainPage() def test_add_mem1(self): username = "******" uniq_id = "13211111112" phone = "13211111112" # self.main.main_go_add_member_page().add_member(username,uniq_id,phone) self.main.contact_go_add_member_page().add_member(username, uniq_id, phone)
class TestWX: def setup(self): self.main = MainPage() def test_addMember1(self): username = '******' accout = 'aaaaj' phoneNumber = '13900000011' addmember = self.main.goto_addMember() addmember.add_member(username, accout, phoneNumber) assert username in addmember.get_member(username)
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(driver=None) def testcase_addmember(self): username = '******' account = '15088132074' phonernum = '15088132074' # 进入添加联系人界面,进行添加联系人 addmember = self.main.goto_add_member_page() addmember.add_member(username, account, phonernum) assert username in addmember.get_member() def testcase_addmember2(self): # 点击通讯录,进入通讯录界面 memberlist = self.main.goto_memberlist_page() memberlist.click_addmember()
class TestWX: def setup(self): self.main = MainPage() def test_addmember(self): username = "******" account = "monica32" phonenum = "13900012332" position = "工程师" mail = "*****@*****.**" # assert self.main.goto_AddMember().add_member() addmember = self.main.goto_AddMember() addmember.add_member(username, account, phonenum, position, mail) 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
def setup(self): self.main = MainPage()
def setup(self): self.main = MainPage(driver=None)