Esempio n. 1
0
class TestMain:
    def setup(self):
        self.main = Main(reuse=True)

    def test_add_member(self):
        self.main.add_member().add_member("xxx")
        assert "aaa" in self.main.import_user().get_message()

    def test_import_user(self):
        self.main.import_user("/Users/chenyifei/Desktop/1.xlsx")
        # assert "success" in self.main.get_message()

    def test_send_message(self):
        message = self.main.send_message()
        message.send(app="十一", content="content", group="十一")
        assert "content" in message.get_history()
Esempio n. 2
0
class TestMain:
    def setup(self):
        self.main = Main(reuse=True)

    def test_add_member(self):
        self.main.add_member().add_member("xxx")
        assert "aaa" in self.main.import_user().get_message()

    def test_import_user(self):
        self.main.import_user(
            "/Users/seveniruby/PycharmProjects/HogwartsSDET11/selenium_test1/testcase/通讯录批量导入模板.xlsx")
        # assert "success" in self.main.get_message()

    def test_send_message(self):
        message = self.main.send_message();
        message.send(app="十一", content="content", group="十一")
        assert "content" in message.get_history()
Esempio n. 3
0
class TestMain:
    def setup(self):
        self.main = Main(reuse=True)

    def test_add_member(self):
        self.main.add_member().add_member("xxxxx")
        assert "aaa" in self.main.import_user().get_message()

    def test_import_user(self):
        self.main.import_user(
            "D:\\pycharm\\SDET11\\test_selenium\\testcases\\通讯录批量导入模板.xlsx")
        # assert "success" in self.main.get_message()

    def test_send_message(self):
        message = self.main.send_message()
        message.send(app="开发", content="content", group="学习")
        assert "content" in message.get_history()
Esempio n. 4
0
class TestMain:
    def setup(self):
        self.main = Main(reuse=True)

    def test_add_member(self):
        self.main.add_member().add_member("xxx")
        assert "aaa" in self.main.import_user().get_message()

    def test_import_user(self):
        self.main.import_user(
            r"C:\Users\Administrator\Pictures\通讯录批量导入模板.xlsx")
        # assert "success" in self.main.get_message()

    def test_send_message(self):
        message = self.main.send_message()
        message.send(app="xiaobin网络科技有限公司", content="content", group="李四")
        assert "content" in message.get_history()
Esempio n. 5
0
class TestMain:
    def setup(self):
        self.main=Main(reuse=True)
    def test_add_member(self):
        self.main.goto_add_member().add_member("aaa")
        assert "aaa" in self.main.import_user().get_message()

    def test_import_user(self):
        self.main.import_user("D://test/pycharm/script/test_selenium/通讯录批量导入模板.xlsx")
        #assert  "success" in self.main.get_message()

    def test_add_image(self):
        self.main.goto_manageTools().add_image("D://test/pycharm/script/test_selenium/1.png")


    def test_send_message(self):
        message= self.main.send_message()
        message.send(app="十一",content="content",group="十一",member="王贝贝")
        #assert "content" in message.get_history()
        #  pass
Esempio n. 6
0
class TestMain:
    def setup(self):
        self.main = Main(reuse=True)

    def test_add_member(self):
        self.main.add_member().add_member("xxx")
        assert "aaa" in self.main.import_user().get_message()

    def test_import_user(self):
        self.main.import_user(
            "E:\\TestDevelopment\\PycharmProjects\\pythonProject\\test_selenium\\testcase\\通讯录批量导入模板.xlsx"
        )
        # assert "success" in self.main.get_message()

    def test_send_message(self):
        message = self.main.send_message()
        message.send(app="公告",
                     title="title",
                     content="contect",
                     group="羽汐动漫社",
                     author="author")