Пример #1
0
 def setup_class(self):
     # 获取驱动的对象
     self.driver = DriverUtils.get_mp_driver()
     # 创建好所需要调用业务方法所在的类的对象
     self.login_proxy = LoginProxy()
     self.home_proxy = HomeProxy()
     self.pub_proxy = PubAriProxy()
Пример #2
0
 def setup_class(self):
     # 1.打开浏览器
     self.driver = DriverUtils.get_mp_driver()
     # 创建首页业务层的对象
     self.home_proxy = HomeProxy()
     # 创建发布文章业务层的对象
     self.pub_ari_proxy = PubAriProxy()
Пример #3
0
 def setup_class(self):
     # 打开新浏览器
     self.driver = DriverUtils.driver_get_mp()
     # 创建首页业务层对象
     self.home_proxy = HomeProxy()
     # 创建发布文章业务成的对象
     self.pub_ari_proxy = PubAriProxy()
Пример #4
0
    def setup_class(self):
        self.driver = DriverUtils.get_mp_driver()
        #登陆
        self.login = LoginProxy()
        self.login.test_login("13911111111", "246810")

        self.home_proxy = HomeProxy()
        self.pub_ari_proxy = PubAriProxy()
Пример #5
0
 def setup_class(self):
     self.driver = DriverUtils.get_mp_driver()
     self.home_proxy = HomeProxy()
     self.pub_ari_proxy = PubAriProxy()
Пример #6
0
 def setup_class(self):
     # 2.1 实例化浏览器驱动对象
     self.driver = DriverUtils.get_mp_driver()
     # 2.2 实例化需调用的业务方法所在类的对象
     self.home_proxy = HomeProxy()
     self.pub_ari_proxy = PubAriProxy()
Пример #7
0
 def setup_class(self):
     # 打开浏览器
     self.driver = DriverUtils.get_mp_driver()
     # 创建所需要页面的业务层的对象
     self.home_proxy = HomeProxy()
     self.pub_proxy = PubProxy()
 def setup_class(self):
     # 启动浏览器
     self.driver = DriverUtils.get_mp_driver()
     # 创建好对应要调用的业务层对象
     self.home_proxy = HomeProxy()
     self.pub_art_proxy = PubArtProxy()
Пример #9
0
 def setup_class(self):
     self.driver = utils.DriverUtil.get_mp_driver()
     self.home_proxy = HomeProxy()
     self.publish_proxy = PublishProxy()