Exemplo n.º 1
0
 def setup_class(self):
     # 初始化地址管理对象
     self.page_address = PageIn().get_address_page()
     # 初始化登录模块对象
     self.page_login = PageIn().get_login_page()
     # 登录操作
     self.page_login.address_login("17301392675", '123456')
Exemplo n.º 2
0
 def setup_class(self):
     # 获取 PageAddress
     self.address = PageIn().page_get_pageaddress()
     # 获取PageLogin 并且登录成功
     PageIn().page_get_pagelogin().page_login_address()
     # 点击 地址管理
     self.address.page_click_manage()
Exemplo n.º 3
0
 def setup_class(self):
     """初始化pagein对象  调用登录成功的方法"""
     # 初始化page
     self.address = PageIn().get_pageaddresss()
     # 登录成功方法
     PageIn().get_pagelogin().page_login_success()
     # 点击地址管理
     self.address.page_click_manage()
Exemplo n.º 4
0
 def setup_class(self):
     # 初始化driver
     self.driver = GetDriver.get_driver(page.url_mp)
     # 统一入口类
     # 使用统一入口类对象---调用登录成功方法
     self.login = PageIn(
         self.driver).page_get_PageMpLogin().page_mp_login_success()
     # 获取 发布文章的页面驱动对象
     self.article = PageIn(self.driver).page_get_PageMpArticle()
Exemplo n.º 5
0
 def test02_hometown_order(self, money="0.1", demand="随便看看"):
     # 发布我的家乡订单
     self.hometown = PageIn().page_get_hometown()
     self.hometown.page_my_hometown_modify()
     self.hair = PageIn().page_get_page_add_order()
     self.hometown.page_my_hometown_order(money, demand)
     sleep(1)
     self.hair.page_login_me()
     self.hair.page_click_hair_billing_record()
     sleep(2)
     self.hair.if_order()
 def setup_class(self):
     # 获取driver
     self.driver=GetWebDriver.get_web_driver(page.mis_url)
     # 实例化统一入口类
     self.page=PageIn(self.driver)
     self.page.page_get_misLogin().page_combination_login_success()
     self.mis=self.page.page_get_misAudit()
Exemplo n.º 7
0
 def setup_class(self):
     # 获取driver
     driver = GetDriver.get_app_driver()
     # 获取 统一入口类
     self.applogin = PageIn(driver)
     self.applogin.page_get_PageAppLogin().page_app_login_ok()
     self.apparticle = self.applogin.page_get_PageAppArticle()
Exemplo n.º 8
0
 def setup_class(self):
     # 获取driver对象
     self.driver = Driver.get_driver_app()
     # 实例化PageIn对象
     self.page_in = PageIn(self.driver)
     # 调用登录方法
     self.page_in.page_get_PageAppLogin.page_login_success()
Exemplo n.º 9
0
 def setup_class(self):
     # 初始化PageLogin
     self.login = PageIn().page_login_in()
     # 点击 我
     self.login.page_click_me()
     # 点击 已有账号,去登录
     self.login.page_account_link()
Exemplo n.º 10
0
    def setup_class(self):

        # 1:获取driver
        driver = GetDriver.get_web_driver(page.url_mp)
        # 2:获取统一入口类获取类
        self.mp = PageIn(driver).page_get_PageMpLogin()
        pass
Exemplo n.º 11
0
    def setup(self):
        # 调用登录方法 匿名对调用 示例
        # PageIn().page_get_pagelogin().page_login()


        # 实例化获取统一入口类并获取 登录页面对象
        self.login = PageIn().page_get_pagelogin()
Exemplo n.º 12
0
 def setup_class(self):
     # 获取PageLogin对象
     self.login = PageIn().page_get_PageLogin()
     # 点击我
     self.login.page_click_me()
     # 点击已有账号去登录
     self.login.page_click_account_link()
Exemplo n.º 13
0
 def test01_add_hair(self, money, demand):
     self.hair = PageIn().page_get_page_add_order()
     self.hair.page_hair(money, demand)
     self.hair.page_login_me()
     self.hair.page_click_hair_billing_record()
     sleep(2)
     self.hair.if_order()
Exemplo n.º 14
0
 def setup_class(self):
     # 1.获取driver
     self.driver = Driver.get_driver(page.page_mis_url)
     # 2.实例化PageIn页面对象
     self.page_in = PageIn(self.driver)
     # 3.调用后台登录的方法
     self.page_in.page_get_PageMisLogin.page_mis_login(
         "testid", "testpwd123")
Exemplo n.º 15
0
    def setup_class(self):
        driver = GetDriver.get_driver(page.url_mis)
        #获取统一入口类
        self.page_in = PageIn(driver)

        self.page_in.page_get_PageMisLogin().page_mis_login_article()

        self.article = self.page_in.page_get_PageMisAudit()
Exemplo n.º 16
0
    def setup_class(self):
        # 获取页面对象
        self.login = PageIn().page_in_login()
        # 点击我 ----只需要操作一次 即可
        self.login.page_click_me()

        # 点击 已有账号去登录  --只需要操作一次即可
        self.login.page_click_have_account()
Exemplo n.º 17
0
 def setup_class(self):
     self.login = PageIn().get_page_login()
     # 获取弹窗
     self.login.page_close_alert()
     # 点击我
     self.login.page_click_me()
     # 点击已有帐户
     self.login.page_click_username_exists()
Exemplo n.º 18
0
 def setup_class(self):
     # 获取driver
     driver = GetDriver.get_web_driver(page.url_mis)
     # 获取统一入口类对象
     self.page_in = PageIn(driver)
     # 调用登录成功依赖方法
     self.page_in.page_get_PageMisLogin().page_mis_login_success()
     # 获取PageMisAudit对象
     self.audit = self.page_in.page_get_PageMisAudit()
Exemplo n.º 19
0
 def setup_class(self):
     # 获取driver
     driver = GetDriver.get_app_driver()
     # 实例化统一入口类
     self.page_in = PageIn(driver)
     # 调用组合登录业务成功方法
     self.page_in.page_get_PageAppLogin().page_app_login_success()
     # 实例化PageAPPArticle对象
     self.app_article = self.page_in.page_get_PageAppArticle()
 def setup_class(self):
     # 1. 获取driver
     driver = GetDriver.get_web_driver(page.url_mp)
     # 2. 获取统一入口类对象
     self.page_in = PageIn(driver)
     # 3. 获取PageMpLogin对象并调用成功登录依赖方法
     self.page_in.page_get_PageMpLogin().page_mp_login_success()
     # 4. 获取PageMpArticle页面对象
     self.article = self.page_in.page_get_PageMpArticle()
Exemplo n.º 21
0
 def setup_class(self):
     # 获取driver
     driver = GetDriver.get_driver(page.mp_url)
     # 获取统一入口类对象
     self.page_in = PageIn(driver)
     # 获取PageMpLogin对象并调用成功登录依赖方法
     self.page_in.page_get_PageMpLogin().page_my_login_success()
     # 获取PageMpArticle页面对象
     self.article = self.page_in.page_get_PageMpArticle()
Exemplo n.º 22
0
 def setup_class(self):
     # 1.获取driver
     app_driver = GetDriver().get_app_driver()
     # 2.获取统一入口对象
     page_in = PageIn(app_driver)
     # 3.调用登录方法,
     # page_in.page_get_PageAppLogin().page_app_login_success()
     # 4.获取发布文章页面对象
     self.app_article = page_in.page_get_PageAppArticle()
Exemplo n.º 23
0
 def setup_class(self):
     # 1. 获取driver
     driver = GetDriver.get_driver(page.mis_url)
     # 2. 获取统一入口类
     page_in = PageIn(driver)
     # 3. 调用成功登录依赖方法
     page_in.page_get_PageMisLogin().page_mis_login_success()
     # 4. 获取PageMisAudit对象
     self.audit = page_in.page_get_PageMisAudit()
Exemplo n.º 24
0
 def setup(self):
     # 1.获取driver
     driver = GetDriver.get_web_driver('chrome', page.mis_url)
     # 2.获取统一入口类对象
     self.page_in = PageIn(driver)
     # 3.通过统一入口类对象获取PageMisLogin对象并调用登录成功方法
     self.page_in.page_get_PageMisLogin().page_mis_login_success()
     # 4.获取PageMisAudit对象
     self.mis = self.page_in.page_get_PageMisAudit()
Exemplo n.º 25
0
 def setup_class(self):
     # 获取driver
     driver = GetDriver.get_driver(page.url_mp)
     # 获取统一入口类
     self.page = PageIn(driver)
     # 调用登录业务成功方法
     self.page.page_get_PageMpLogin().page_mp_login_success()
     # 获取PageMpArticle对象
     self.article = self.page.page_get_PageMpArticle()
Exemplo n.º 26
0
 def setup_class(self):
     # 获取driver
     driver = GetDriver.get_driver(page.url_mis)
     # 获取 统一入口类
     self.page_in = PageIn(driver)
     # 调用登录业务成功方法(需要在PageMisLogin新增)
     self.page_in.page_get_PageMisLogin().page_mis_login_success()
     # 获取PageMisAudit对象
     self.audit = self.page_in.page_get_PageMisAudit()
Exemplo n.º 27
0
 def setup(self):
     # 1.获取driver
     driver = GetDriver.get_app_driver()
     # 2.获取页面统一入口对象
     self.page_in = PageIn(driver)
     # 3.调用登录成功方法
     self.page_in.page_get_PageAppLogin().page_app_login_success()
     # 4.获取PageAppArticle对象
     self.article = self.page_in.page_get_PageAppArticle()
 def setup_class(self):
     #获取driver
     driver = GetDriver.get_app_driver()
     #通过统一入口类,对象
     self.page_in = PageIn(driver)
     #调用登录成功依赖方法
     self.page_in.page_get_PageAppLogin().page_app_login_success()
     #获取PageArticle对象
     self.article = self.page_in.page_get_PageAppArticle()
Exemplo n.º 29
0
 def setup_class(self):
     # 获取Page页面对象
     self.login = PageIn().page_get_pagelogin()
     # 关闭 弹窗
     self.login.page_close_alert()
     # 点击我
     self.login.page_click_me()
     # 点击已有账号,去登录
     self.login.page_click_username_link()
Exemplo n.º 30
0
 def setup_class(self):
     # 获取driver
     self.driver = GetDriver.get_driver(page.url_mis)
     # 实例化统一入口类
     self.page = PageIn(self.driver)
     # 调用登录业务成功方法
     self.page.page_get_PageMisLogin().page_mis_login_success()
     # 实例化PageMisAudit对象
     self.mis_audit = self.page.page_get_PageMisAudit()