def setUpClass(cls): # logging.info("======== setUpClass========") cls.driver = appium_desired() status = ZhiXin(cls.driver).login_status if status: ZhiXin(cls.driver).login_out_zx() else: pass ZhiXin(cls.driver).login_zx2()
def test8(self): zhixin = ZhiXin(self.driver) zhixin.initialize() zhixin.create_group1() zhixin.group_setting_name("猪八戒") sleep(3)
def test7(self): zhixin = ZhiXin(self.driver) zhixin.initialize() zhixin.create_group1() zhixin.send_document() sleep(3)
def test6(self): zhixin = ZhiXin(self.driver) zhixin.initialize() zhixin.create_group1() zhixin.send_location() sleep(3)
def test5(self): zhixin = ZhiXin(self.driver) zhixin.initialize() zhixin.create_group1() zhixin.take_photo() sleep(3)
def test4(self): zhixin = ZhiXin(self.driver) zhixin.initialize() zhixin.create_group1() zhixin.send_picture() sleep(3)
def test3(self): zhixin = ZhiXin(self.driver) zhixin.initialize() zhixin.create_group1() zhixin.send_word("测试测试,软件测试") sleep(3)
def test2(self): zhixin = ZhiXin(self.driver) zhixin.initialize() zhixin.create_group2() sleep(3)
def tearDownc(cls): # logging.info("========tearDownClass========") sleep(3) ZhiXin(cls.driver).login_out_zx() cls.driver.close_app()
def test11(self): zhixin = ZhiXin(self.driver) zhixin.initialize() zhixin.create_group1() zhixin.group_setting_group3() sleep(3)