Example #1
0
    def tearDown(self):
        """
        @summary: tearDown
        @return: None
        """
        super(CameraTest, self).tearDown()
        self.logger.debug("[Teardown]: %s" % self._test_name)
        self.multimedia_mplayer_helper.close_video()
        self.multimedia_high_speed_helper.disconnect()
        g_common_obj.stop_exp_handle()

        if self.rvc_camera != "":
            self.rvc_camera.stopCameraApp()
        if self.aosp_camera != "":
            self.aosp_camera.cleanMediaFiles()
        self.camera_common.removeDeivceFile()
        try:
            self.multimedia_robot_helper.reset()
        except:
            self.logger.debug("tearDown multimedia_robot_helper.reset error")
        try:
            self.multimedia_lightbox_helper.turn_off_all_light()
        except:
            self.logger.debug(
                "tearDown multimedia_lightbox_helper.turn_off_all_light error")
        if self.case_result == 0:
            self.get_rvc_camera_class().reboot_device()
        time.sleep(3)
        self.get_rvc_camera_class().backHome()
Example #2
0
 def tearDown(self):
     """
     @summary: tear tearDown
     @return: None
     """
     super(ExoPlayerTest, self).tearDown()
     print "[Teardown]: %s" % self._test_name
     g_common_obj.stop_exp_handle()
 def tearDown(self):
     """
     @summary: tearDown
     @return: None
     """
     super(CameraTest, self).tearDown()
     self.logger.debug("[Teardown]: %s" % self._test_name)
     g_common_obj.stop_exp_handle()
Example #4
0
 def tearDown(self):
     """
     @summary: tearDown
     @return: None
     """
     super(CameraReliabilityTest, self).tearDown()
     print "[Teardown]: %s" % self._test_name
     g_common_obj.stop_exp_handle()
     time.sleep(3)
 def tearDown(self):
     """
     @summary: tear tearDown
     @return: None
     """
     super(VideoPlayBackIteration, self).tearDown()
     print "[Teardown]: %s" % self._test_name
     g_common_obj.stop_exp_handle()
     time.sleep(3)
    def tearDown(self):
        """
        @summary: tearDown
        @return: None
        """
        super(CameraTest, self).tearDown()
        self.logger.debug("[Teardown]: %s" % self._test_name)

        self.rvc_camera.change_camera_c_status("NONE")
        g_common_obj.stop_exp_handle()
Example #7
0
 def tearDown(self):
     """
     @summary: tearDown
     @return: None
     """
     super(CameraTest, self).tearDown()
     self.logger.debug("[Teardown]: %s" % self._test_name)
     g_common_obj.stop_exp_handle()
     self.camera_common.removeDeivceFile()
     self.camera_common.removeFile(self.host_path + "/*")
     self.aosp_camera.cleanMediaFiles()
Example #8
0
 def tearDown(self):
     """
     @summary: tear tearDown
     @return: None
     """
     super(ImageAPITest, self).tearDown()
     print "[Teardown]: %s" % self._test_name
     g_common_obj.stop_exp_handle()
     time.sleep(3)
     g_common_obj.stop_app_am("com.google.android.GoogleCamera")
     g_common_obj.stop_app_am("com.intel.otc.instrument.otcphotos")
Example #9
0
 def tearDown(self):
     """
     @summary: tear tearDown
     @return: None
     """
     super(ImageAPITest, self).tearDown()
     print "[Teardown]: %s" % self._test_name
     g_common_obj.stop_exp_handle()
     time.sleep(3)
     g_common_obj.stop_app_am("com.intel.otc.instrument.otcphotos")
     time.sleep(1)
     g_common_obj.adb_cmd_capture_msg(self.video.cfg.get("remove_video"))
Example #10
0
 def tearDown(self):
     """
     @summary: tear tearDown
     @return: None
     """
     super(VideoPlayBack, self).tearDown()
     print "[Teardown]: %s" % self._test_name
     g_common_obj.stop_exp_handle()
     time.sleep(3)
     g_common_obj.stop_app_am(
         "videoplayer.app.instrument.otc.intel.com.otcvideoplayer")
     time.sleep(3)
Example #11
0
    def tearDown(self):
        """
        @summary: tearDown
        @return: None
        """
        super(CameraTest, self).tearDown()
        self.logger.debug("[Teardown]: %s" % self._test_name)
        g_common_obj.stop_exp_handle()

        self.camera_common.removeDeivceFile()
        self.camera_common.clean_app_data(self.multi_camera_package_name)
        time.sleep(3)
        self.rvc_camera.backHome()
Example #12
0
 def tearDown(self):
     """
     @summary: tearDown
     @return: None
     """
     super(VideoEncode, self).tearDown()
     print "[Teardown]: %s" % self._test_name
     g_common_obj.stop_exp_handle()
     time.sleep(3)
     g_common_obj.stop_app_am("com.google.android.GoogleCamera")
     time.sleep(3)
     g_common_obj.adb_cmd_capture_msg(" rm -rf /sdcard/DCIM/Camera/*")
     time.sleep(10)
     g_common_obj.adb_cmd_capture_msg(self.video.cfg.get("refresh_sd"))
    def tearDown(self):
        """
        @summary: tearDown
        @return: None
        """
        super(CameraTest, self).tearDown()
        self.logger.debug("[Teardown]: %s" % self._test_name)
        g_common_obj.stop_exp_handle()

        self.camera_common.removeDeivceFile()
        self.camera_common.removeDeivceFile(self.multimedia_scale_test_helper.movies_folder_device_path + "*")
        if self.multimedia_scale_test_helper.scale_test_teardown() == 1 or self.case_result == 0:
            self.reboot_device()
        time.sleep(3)
        g_common_obj.back_home()
Example #14
0
 def tearDown(self):
     """
     @summary: tearDown
     @return: None
     """
     if self.light_port!="0":
         self.deviceControl.pressLightBoxButton(self.light_port)
         self.deviceControl.pressLightBoxButton("1")
     if self.test_object!=0:
         #return to the first picture
         pass
     super(CameraTest, self).tearDown()
     print "[Teardown]: %s" % self._test_name
     g_common_obj.stop_exp_handle()
     time.sleep(3)
Example #15
0
    def tearDown(self):
        """
        @summary: tearDown
        @return: None
        """
        super(CameraTest, self).tearDown()
        self.logger.debug("[Teardown]: %s" % self._test_name)
        g_common_obj.stop_exp_handle()
        self.camera_common.removeDeivceFile()
        self.camera_common.removeFile(self.host_path + "/*")
        self.aosp_camera.cleanMediaFiles()

        self.multimedia_scale_test_helper.remount_device()
        self.multimedia_scale_test_helper.restore_file("o_image_media_xml_file_dst_path")
        self.multimedia_scale_test_helper.restore_file("o_image_camera3_xml_file_dst_path")
        adb32._adb_reboot()
Example #16
0
 def tearDown(self):
     """
     @summary: tearDown
     @return: None
     """
     super(CameraTest, self).tearDown()
     self.logger.debug("[Teardown]: %s" % self._test_name)
     g_common_obj.stop_exp_handle()
     time.sleep(3)
     self.camera_common.removeDeivceFile()
     self.multimedia_scroll_helper.reset()
     self.multimedia_robot_helper.reset()
     #self.multimedia_robot_helper.move_to_default_position()
     self.multimedia_lightbox_helper.turn_off_all_light()
     if self.change_page_flag == 1:
         self.multimedia_scroll_helper.move(50, -50)
         self.multimedia_scroll_helper.set_position(0, 0)
Example #17
0
    def tearDown(self):
        """
        @summary: tearDown
        @return: None
        """
        super(CameraTest, self).tearDown()
        self.logger.debug("[Teardown]: %s" % self._test_name)
        g_common_obj.stop_exp_handle()

        if self.rvc_camera != "":
            self.rvc_camera.stopCameraApp()
        if self.aosp_camera != "":
            self.aosp_camera.cleanMediaFiles()
        self.camera_common.removeDeivceFile()
        if self.case_result == 0:
            self.reboot_device()
#         self.camera_common.removeFile(self.host_path + "/*")
        time.sleep(3)
        self.get_rvc_camera_class().backHome()
 def tearDown(self):
     super(UIATestBase, self).tearDown()
     # Stop the execption handling.
     g_common_obj.stop_exp_handle()
     g_common_obj.back_home()
Example #19
0
    def tearDown(self):
        super(InstrumentationTestBase, self).tearDown()

        # Stop the execption handling.
        g_common_obj.stop_exp_handle()