示例#1
0
 def __init__(self):
     self.publish_page = PublishPage()
     self.driver = UtilsDriver.get_mp_driver()
 def test_publish_article(self):
     # 跳转到发布文章页面
     self.home_proxy.go_publish_page()
     self.publish_proxy.publish_article("测试标题AAA", "测试内容AAA", "ios")
     assert is_exist(UtilsDriver.get_mp_driver(), '新增文章成功')
示例#3
0
 def __init__(self):
     self.driver = UtilsDriver.get_mp_driver()
 def test_login(self, username, code, expect):
     self.login_proxy.login(username, code)
     user = self.home_proxy.get_username_msg()
     time.sleep(1)
     allure.attach(UtilsDriver.get_mp_driver().get_screenshot_as_png(), "登录截图", allure.attachment_type.PNG)
     assert user in expect