Beispiel #1
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()
Beispiel #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()
Beispiel #3
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()
Beispiel #4
0
class TestMain:
    main = Main(reuse=True)

    def test_add_member(self):
        self.main.add_member().add_member(name="李逵",
                                          account="likui",
                                          number="13433333333")

    def test_import_member(self):
        self.main.import_contacts(
            r"D:\MyProjects\test_selenium\通讯录批量导入模板.xlsx")

    def test_send_message(self):
        self.main.send_messages().send(app="一", content="content", group="一")
        self.main.send_messages().send(app="一",
                                       content="Wuhan cheer!China cheer!",
                                       group="一")

    def test_get_message(self):
        sended_message = self.main.send_messages().get_message()
        print("|".join(sended_message))
        assert "content" in sended_message
        assert "Wuhan cheer!China cheer!" in sended_message
Beispiel #5
0
class TestMain:
    def setup(self):
        self.main = Main(reuse=True)

    def test_message(self):
        self.main.goto_messagelist()

    def test_add_member(self):
        self.main.goto_add_member().main_add_member()
        # assert 'aaa' in self.main.import_user().get_message()

    def test_import_user(self):
        self.main.goto_import_user().import_users(
            "/Users/liumiao/PycharmProjects/Tester11/test_selenium/testcase/通讯录批量导入模板.xlsx"
        )
        # assert "xxx" in self.main.get_message()

    def test_send_message(self):
        send_page = self.main.goto_message().send(app="十一",
                                                  group="十一",
                                                  content="content")
        assert "content" in "|".join(send_page.get_history())
        print("|".join(send_page.get_history()))
Beispiel #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")
 def test_add_member(self):
     main = Main()
     main.add_menber().add_menber("xx")
     #链式调用,跳转多个页面,使多个页面链接起来进行测试
     main.import_user().get_message()
Beispiel #8
0
 def setup(self):
     self.main=Main(reuse=True)
Beispiel #9
0
 def test_add_member(self):
     main = Main()
     main.add_member().add_member("xxx")
     assert "aaa" in main.import_user().get_message()
Beispiel #10
0
 def test_add_member(self):
     main = Main(reuse=True)
     main.add_member().add_member('xxx')
     assert 'aaa' in main.import_user().get_message()
 def setup(self):
     self.main=Main(reuse=True)
     self.manage=ManageTools(reuse=True)
     self.material_library=MaterialLibrary(reuse=True)
Beispiel #12
0
 def setup(self):
     self.main = Main(reuse=True)
     self.tools = Tools(reuse=True)
     self.main.goto_tools()