class TouchScreenFingersWithSuspend(UIATestBase): def setUp(self): self._test_name = __name__ print print "[Setup]: %s" % self._test_name self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() super(TouchScreenFingersWithSuspend, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name self.touch.boot_up_completed_skip_boot_ui() super(TouchScreenFingersWithSuspend, self).tearDown() def test_check_touch_point_before_enter_S3_and_resume_S3(self): print "[RunTest]: %s" % self.__str__() self.touch.enable_devoption_touch_location() self.touch.check_touch_screen_response_comm() self.multi_ts.check_touch_gesture_swipe_vertical_down_up_comm() self.touch.screen_turn_on_off_comm() self.touch.check_single_touch_sendevent_screen_response_comm() def test_touch_screen_suspend_and_resume_10_times(self): print "[RunTest]: %s" % self.__str__() # get method self name fileName = sys._getframe().f_code.co_name for loop in range(10): self.touch.logger.info("") self.touch.logger.info("Loop %d/10 " % (loop + 1) + fileName) self.touch.check_touch_screen_response_comm() self.touch.check_swipe_vertical() self.touch.screen_turn_on_off_comm()
def setUp(self): self._test_name = __name__ print print "[Setup]: %s" % self._test_name self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() super(TouchScreenFingersWithSuspend, self).setUp()
def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name super(MultipleTSSingleTouch, self).setUp()
def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name self.multi_ts.check_multi_touch_sp_connected_num(2) self.multi_ts.enter_to_mosaic_mode_display_touch_work_comm() super(SingleTouchSupportExtendedDesktopMode, self).setUp()
def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name self.touch.install_artifactory_app("clock_google", "com.google.android.deskclock") self.multi_ts.check_multi_touch_sp_connected_num(2) self.multi_ts.enter_to_mosaic_mode_display_touch_work_comm() super(GestureSwipeEffectedExtendedDesktopMode, self).setUp()
class MultipleTSSingleTouch(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name super(MultipleTSSingleTouch, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name super(MultipleTSSingleTouch, self).tearDown() def test_single_touch_support_on_two_touch_sp(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.multi_ts.check_multi_touch_sp_connected_num(2) self.multi_ts.check_car_mode_exists() self.touch.enable_devoption_touch_location() self.touch.check_single_touch_sendevent_screen_response_comm() def test_single_touch_support_on_three_touch_sp(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.multi_ts.check_multi_touch_sp_connected_num(3) self.multi_ts.check_car_mode_exists() self.touch.enable_devoption_touch_location() self.touch.check_single_touch_sendevent_screen_response_comm()
class SingleTouchSupportExtendedDesktopMode(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name self.multi_ts.check_multi_touch_sp_connected_num(2) self.multi_ts.enter_to_mosaic_mode_display_touch_work_comm() super(SingleTouchSupportExtendedDesktopMode, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name self.multi_ts.exit_to_mosaic_mode_display_touch_work_comm() super(SingleTouchSupportExtendedDesktopMode, self).tearDown() def test_single_touch_support_extended_desktop_mode(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.touch.enable_devoption_touch_location() self.touch.check_touch_screen_response_comm() self.touch.single_touch_settings_search_check_coordinates("Settings") self.multi_ts.check_mosaic_single_touch_sendevent_screen_comm(2)
class DeactivateScreenPinningExtendedDesktopMode(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name self.multi_ts.check_multi_touch_sp_connected_num(2) self.multi_ts.enter_to_mosaic_mode_display_touch_work_comm() super(DeactivateScreenPinningExtendedDesktopMode, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name self.touch.open_screen_pinning(enable=False) self.multi_ts.exit_to_mosaic_mode_display_touch_work_comm() super(DeactivateScreenPinningExtendedDesktopMode, self).tearDown() def test_deactivate_screen_pinning_extended_desktop_mode(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.touch.touch_deactivate_screen_pinning_mode()
class MultiTouchSupportExtendedDesktopMode(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name self.multi_ts.check_multi_touch_sp_connected_num(2) self.multi_ts.enter_to_mosaic_mode_display_touch_work_comm() super(MultiTouchSupportExtendedDesktopMode, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name self.multi_ts.exit_to_mosaic_mode_display_touch_work_comm() super(MultiTouchSupportExtendedDesktopMode, self).tearDown() def test_multi_touch_support_extended_desktop_mode(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.touch.enable_devoption_touch_location() self.touch.push_send_event_script("multi_touch_max_support.sh") self.touch.push_send_event_script("multi_touch_event_untouch.sh") self.touch.check_maximum_fingers_support()
class GestureSwipeEffectedExtendedDesktopMode(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name self.touch.install_artifactory_app("clock_google", "com.google.android.deskclock") self.multi_ts.check_multi_touch_sp_connected_num(2) self.multi_ts.enter_to_mosaic_mode_display_touch_work_comm() super(GestureSwipeEffectedExtendedDesktopMode, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name self.multi_ts.exit_to_mosaic_mode_display_touch_work_comm() super(GestureSwipeEffectedExtendedDesktopMode, self).tearDown() def test_gesture_swipe_effected_extended_desktop_mode(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.touch.enable_devoption_touch_location() self.multi_ts.check_touch_gesture_swipe_vertical_down_up_comm() self.multi_ts.check_touch_gesture_swipe_vertical_down_up_comm("up") self.multi_ts.check_touch_gesture_swipe_horizontal()
class FingerPressingSlidingOnExtendedDesktopMode(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() self.multi_ts = MultiTouchScreen() print print "[Setup]: %s" % self._test_name self.multi_ts.check_multi_touch_sp_connected_num(2) self.multi_ts.enter_to_mosaic_mode_display_touch_work_comm() super(FingerPressingSlidingOnExtendedDesktopMode, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name self.multi_ts.exit_to_mosaic_mode_display_touch_work_comm() super(FingerPressingSlidingOnExtendedDesktopMode, self).tearDown() def test_finger_pressing_sliding_on_extended_desktop_mode(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.touch.enable_devoption_touch_location() self.multi_ts.check_mosaic_single_touch_sendevent_screen_comm(2) self.multi_ts.check_touch_gesture_swipe_vertical_down_up_comm() self.multi_ts.check_touch_gesture_swipe_vertical_down_up_comm("up")