def test_upload_global_pause_resume_for_transferring_items(self):
        log("Clear all items in transfers dialog")
        op.clear_all_items_in_transfers_dialog()

        log("Drap drop a folder to RT")
        op.drag_drop_folder_to_rt(self.test_case_path)

        # let run uploading a while
        time.sleep(10)

        log("Stop all items in transfers dialog, and resume them again")
        op.stop_and_resume_items_in_systray()

        self.RT.open_transfers_dialog()

        log("Verify items are uploaded to cloud")
        assert wait_for_upload_complete(
            get_title_of_file(self.test_name_video1), 60 * 10), "After pausing and resuming the uploading process in transfers dialog, test file '" + self.test_name_video1 + "' fail to upload to cloud"
        assert wait_for_upload_complete(
            get_title_of_file(self.test_name_video2), 60 * 10), "After pausing and resuming the uploading process in transfers dialog, test file '" + self.test_name_video2 + "' fail to upload to cloud"
    def test_upload_can_cancel_transferring_files(self):
        try:
            log("Clear all items in transfers dialog")
            op.clear_all_items_in_transfers_dialog()

            log("Drap drop a folder to RT")
            op.drag_drop_folder_to_rt(self.test_case_path)

            # let run uploading a while
            time.sleep(10)

            log("Stop all items in transfers dialog")
            op.stop_all_items_in_transfers_dialog()

            log("Verify items are NOT uploaded to cloud")
            assert not wait_for_upload_complete(
                get_title_of_file(self.test_name_video1), 60), "After pausing the uploading process in transfers dialog, test file '" + self.test_name_video1 + "' can still be uploaded to cloud"
            assert not wait_for_upload_complete(
                get_title_of_file(self.test_name_video2), 60), "After pausing the uploading process in transfers dialog, test file '" + self.test_name_video2 + "' can still be uploaded to cloud"
        except:
            raise
        finally:
            op.clear_all_items_in_transfers_dialog()
 def test_upload_drag_to_library(self):
     log("Drap drop a folder to RT")
     op.drag_drop_folder_to_rt(self.test_case_path)
     self._verify_upload()