示例#1
0
class Test_live_setting_addDistance(unittest.TestCase):
    """直播签到点图片设置"""
    @classmethod  # 类方法
    def setUp(self):
        self.setting = MapSettingPage()

    def test_live_setting_addDistance(self):
        self.setting.login()
        self.setting.iframe1()
        self.setting.base_setting()
        self.setting.iframe01()
        self.setting.map_setting()
        self.setting.iframe00()
        self.setting.live_setting()
        self.setting.parentframe()
        self.setting.iframe3()
        self.setting.addDistance()
        self.setting.iframe4()
        self.setting.addDistance_name()
        self.setting.submit()

    def tearDown(self):
        self.setting.quit_driver()
示例#2
0
class Test_live_setting_img(unittest.TestCase):
    """直播签到点图片设置"""
    @classmethod  # 类方法
    def setUp(self):
        self.setting = MapSettingPage()

    def test_live_setting_img(self):
        self.setting.login()
        self.setting.iframe1()
        self.setting.base_setting()
        self.setting.iframe01()
        self.setting.map_setting()
        self.setting.iframe00()
        self.setting.live_setting()
        self.setting.parentframe()
        self.setting.iframe3()
        self.setting.addSignImg()
        self.setting.iframe4()
        self.setting.upload_img()
        self.setting.addsignimg('自动签到点', '23.147796,113.277602', '0')

    def tearDown(self):
        self.setting.quit_driver()
示例#3
0
class Test_live_setting_distance_add(unittest.TestCase):
    """直播设置--添加路程对比"""
    @classmethod  # 类方法
    def setUp(self):
        self.setting = MapSettingPage()

    def test_live_setting_distance_add(self):
        self.setting.login()
        self.setting.iframe1()
        self.setting.base_setting()
        self.setting.iframe01()
        self.setting.map_setting()
        self.setting.iframe00()
        self.setting.live_setting()
        self.setting.parentframe()
        self.setting.iframe3()
        self.setting.distance_button()
        self.setting.iframe4()
        self.setting.distance_select_track_button()
        self.setting.iframe5()
        self.setting.distance_select_track()

    def tearDown(self):
        self.setting.quit_driver()