def setup(self): edit_profile_icon = self.dynamic.get_edit_profile_icon() if edit_profile_icon is None: self.dynamic = BaseDriver.andriod_driver().to_my_dynamic_page() else: pass self.logInfo = LogInfo()
def setup(self): share_icon = self.last_sleep.get_sleep() if share_icon is None: self.last_sleep = BaseDriver.andriod_driver().to_my_status_sleep_page() else: pass self.logInfo = LogInfo()
def setup(self): my_course_icon = self.course.get_add_course_icon() if my_course_icon is None: self.course = BaseDriver.andriod_driver().to_mine_course_page() else: pass self.logInfo = LogInfo()
def setup(self): activities_icon = self.find_page.get_activity_icon() if activities_icon is None: self.find_page = BaseDriver.andriod_driver().to_find_page() else: pass self.logInfo = LogInfo()
def setup(self): my_friends_icon = self.friends.get_first_friend_name() if my_friends_icon is None: self.friends = BaseDriver.andriod_driver().to_mine_friends_page() else: pass self.logInfo = LogInfo()
def setup(self): message_icon = self.message.get_message_icon() if message_icon is None: self.message = BaseDriver.andriod_driver().to_mine_page() else: pass self.logInfo = LogInfo()
def setup(self): # foreign_icon = self.foreign.get_foreign_workout_icon() # if foreign_icon is None: # self.foreign = BaseDriver.andriod_driver().to_other_country_workout_tab() # else: # pass self.logInfo = LogInfo()
def setup(self): my_status_icon = self.my_status.get_my_status_icon() if my_status_icon is None: self.my_status = BaseDriver.andriod_driver().to_my_status_page() else: pass self.logInfo = LogInfo()
def setup(self): my_collect_icon = self.collect.get_course_tab() if my_collect_icon is None: self.collect = BaseDriver.andriod_driver().to_mine_collect_page() else: pass self.logInfo = LogInfo()
def setup_class(cls): print("开始执行初次安装") cls.filepath = FileConfig().get_path(type="apk") cls.logInfo = LogInfo() # cls.path = ("../com.xiaomi.hm.health.apk") cls.check_command = "adb shell pm path com.xiaomi.hm.health" cls.install_command = "adb install " + cls.filepath cls.uninstall_command = "adb uninstall com.xiaomi.hm.health"
def setup(self): # print ("这是个人主页类") # self.homepage.get_device_state_custom() edit_profile_icon = self.homepage.get_edit_profile_icon() if edit_profile_icon is None: self.homepage = BaseDriver.andriod_driver().to_mine_personal_homepage() else: pass self.logInfo = LogInfo()
def setup(self): # print ("这是用户类") # self.user_page.get_device_state_custom() # community_icon = self.community_post.get_community_icon() # if community_icon is None: # self.community_post = BaseDriver.andriod_driver().to_community_tab() # else: # pass self.logInfo = LogInfo()
def setup(self): # print ("这是用户信息类") # self.user_info.get_device_state_custom() nick_name_icon = self.user_info.get_nick_name_value() if nick_name_icon is None: self.user_info = BaseDriver.andriod_driver().to_mine_user_page() else: pass self.logInfo = LogInfo()
def setup(self): # print ("这是用户类") # self.user_page.get_device_state_custom() add_device_icon = self.user_page.get_add_device_icon() if add_device_icon is None: self.user_page = BaseDriver.andriod_driver().to_mine_page_user() else: pass self.logInfo = LogInfo()
def setup(self): # print ("这是今日步数类") # self.todaySteps.get_device_state_custom() statistics_icon = self.todaySteps.get_statistics_icon() if statistics_icon is None: self.todaySteps = BaseDriver.andriod_driver().to_today_steps_page() else: pass self.logInfo = LogInfo()
def setup(self): # sport_icon = self..get_sport_icon() # if sport_icon is None: # self.sport_page.driver.quit() # time.sleep(3) # self.sport_page = BaseDriver.andriod_driver().to_heart_rate_page() # else: # pass self.logInfo = LogInfo()
def setup(self): # print ("这是运动类") # self.sport_page.get_device_state_custom() # sport_icon = self.todaySport.get_sport_icon() # if sport_icon is None: # self.todaySport.driver.quit() # time.sleep(3) # self.todaySport = BaseDriver.andriod_driver().to_mine_sport_page() # else: # pass self.logInfo = LogInfo()
def setup(self): # print ("这是运动类") # self.sport_page.get_device_state_custom() sport_icon = self.sport_page.get_sport_icon() if sport_icon is None: self.sport_page.driver.quit() time.sleep(3) self.sport_page = BaseDriver.andriod_driver().to_sport_page() else: pass self.logInfo = LogInfo()
def setup_class(cls): # self.login_page = BaseDriver().andriod_driver(i=get_devices_list).to_login_page() # self.logInfo = LogInfo() cls.driver = BaseDriver.andriod_driver() cls.login_page = cls.driver.to_login_page() cls.logInfo = LogInfo()
def setup_class(cls): print("开始执行覆盖安装") cls.filepath = FileConfig().get_path(type="apk") cls.logInfo = LogInfo() cls.command = "adb install -r " + cls.filepath
def setup(self): self.logInfo = LogInfo()