def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(SingleTouchSupport, self).setUp()
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()
def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(CheckAlphanumericKeyOnVirtualKeyboardDisplay, 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() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(TouchNoLineInterruptionSlidingScreen, self).setUp()
def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(IconHoldWithUsb, self).setUp()
def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name g_common_obj.close_background_apps() super(DeactivateScreenPinning, self).setUp()
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() print print "[Setup]: %s" % self._test_name self.touch.check_home_ui_skip_got_it() #self.touch.start_RPCServer() super(TouchScreenTurnOnOff, 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() print print "[Setup]: %s" % self._test_name 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") super(MultiTouchSupport, 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 SingleTouchSupport(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(SingleTouchSupport, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name super(SingleTouchSupport, self).tearDown() def test_single_touch_support_with_coordinates(self): print "[RunTest]: %s" % self.__str__() self.touch.single_touch_settings_search_check_coordinates("Settings")
class IconLongPress2Min(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(IconLongPress2Min, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name super(IconLongPress2Min, self).tearDown() def test_icon_long_press_2min(self): print "[RunTest]: %s" % self.__str__() press_2min = 1000 * 5 #6 self.touch.check_icon_long_press_build_comm("Settings", press_2min)
class CheckAlphanumericKeyOnVirtualKeyboardDisplay(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(CheckAlphanumericKeyOnVirtualKeyboardDisplay, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name super(CheckAlphanumericKeyOnVirtualKeyboardDisplay, self).tearDown() def test_check_alphanumeric_key_display(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.touch.check_virtual_keyboard_display()
class IconHoldWithUsb(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(IconHoldWithUsb, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name super(IconHoldWithUsb, self).tearDown() def test_icon_hold_with_usb(self): print "[RunTest]: %s" % self.__str__() hold = 1000 * 1 # 6 self.touch.check_icon_long_press_build_comm("Settings", hold)
class DeactivateScreenPinning(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name g_common_obj.close_background_apps() super(DeactivateScreenPinning, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name self.touch.open_screen_pinning(enable=False) super(DeactivateScreenPinning, self).tearDown() def test_deactivate_screen_pinning(self): print "[RunTest]: %s" % self.__str__() self.touch.touch_deactivate_screen_pinning_mode()
def setUp(self): super(HWComposer2, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name g_common_obj.root_on_device() self.d = g_common_obj.get_device() wifi_ctrl.turn_off() self.systemTouch = SystemTouch() self.develop_settings = DevelopmentSettingsImpl()
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 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")
class MultiTouchSupport(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name 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") super(MultiTouchSupport, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name #g_common_obj.close_background_apps() super(MultiTouchSupport, self).tearDown() def test_maximum_fingers_support(self): print "[RunTest]: %s" % self.__str__() self.touch.check_maximum_fingers_support() def test_multitouch_support_with_coordinates(self): print "[RunTest]: %s" % self.__str__() self.touch.check_multi_touch_with_coordinates()
class BootCheckFingerSlidingOnTouchScreen(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name super(BootCheckFingerSlidingOnTouchScreen, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name super(BootCheckFingerSlidingOnTouchScreen, self).tearDown() def test_boot_check_finger_sliding(self): print "[RunTest]: %s" % self.__str__() self.touch.logger.info("") self.touch.reboot_devices() product_name = self.touch.check_product() if "cht_mrd" in product_name or "androidia" in product_name or "celadon" in product_name: self.touch.check_touch_screen_response_comm() else: self.touch.check_single_touch_sendevent_screen_response_comm() self.touch.check_swipe_vertical()
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 TouchNoLineInterruptionSlidingScreen(UIATestBase): def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name self.touch.enable_devoption_touch_location() super(TouchNoLineInterruptionSlidingScreen, self).setUp() def tearDown(self): print "[Teardown]: %s" % self._test_name self.touch.remove_screen_lock_pattern() super(TouchNoLineInterruptionSlidingScreen, self).tearDown() def test_no_line_interruption_sliding_screen(self): print "[RunTest]: %s" % self.__str__() self.touch.check_no_line_interruption_when_sliding()
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 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()
from testlib.util.uiatestbase import UIATestBase from testlib.system_touch.system_touch import SystemTouch touch = SystemTouch() touch.install_artifactory_app("api_test", "com.intel.test.apitests") class SystemTouchAPI(UIATestBase): def setUp(self): self._test_name = __name__ print print "[Setup]: %s" % self._test_name def tearDown(self): print "[Teardown]: %s" % self._test_name def test_get_fake_touch_status(self): print "[RunTest]: %s" % self.__str__() assert touch.get_fake_touch_status() def test_touch_screen_api_features(self): print "[RunTest]: %s" % self.__str__() assert touch.touch_screen_api_features() def test_get_touch_screen_presence(self): print "[RunTest]: %s" % self.__str__() assert touch.get_touch_screen_presence() def test_get_touch_screen_type(self): print "[RunTest]: %s" % self.__str__() assert touch.get_touch_screen_type()
from testlib.util.uiatestbase import UIATestBase from testlib.system_touch.system_touch import SystemTouch touch = SystemTouch() class GestureLongPress(UIATestBase): def test_gesture_long_press_screen(self): print "[RunTest]: %s" % self.__str__() touch.long_press_build_comm()
def setUp(self): self._test_name = __name__ self.touch = SystemTouch() print print "[Setup]: %s" % self._test_name super(BootCheckFingerSlidingOnTouchScreen, self).setUp()