예제 #1
0
class TestSetting():
    def setup(self):
        self.driver = get_driver()
        self.setting = PageSetting(self.driver)

    def teardown(self):
        sleep(3)
        self.driver.quit()

    def test_setting(self):
        self.setting.page_click_search_btn()
        self.setting.page_input_text("wlan")
        self.setting.page_click_back_btn()
예제 #2
0
class TestSetting():
    def setup(self):
        # 获取driver
        self.driver=get_driver()
        # 实例化setting页面对象
        self.setting = PageSetting(self.driver)
    def teardown(self):
        # 关闭driver驱动对象
        self.driver.quit()
    # 执行测试方法
    def test_setting(self):
        # 点击搜索按钮
        self.setting.page_click_search_btn()
        # 输入搜索内容
        self.setting.page_input_text("wlan")
        # 点击返回按钮
        self.setting.page_click_back_btn()
예제 #3
0
class TestSeting():
    def setup(self):
        # 获取driver
        self.driver = get_driver("com.android.settings", ".Settings")
        # 实例化页面对象
        self.setting = PageSetting(self.driver)

    def teardown(self):
        self.driver.quit()

    # 测试函数
    def test_setting(self):
        # 点击搜索按钮
        self.setting.page_click_search_btn()
        # 输入搜索内容
        self.setting.page_input_text("wlan")
        # 点击返回按钮
        self.setting.page_click_back_btn()

    def test_sms(self):
        pass