예제 #1
0
    def test_CreateAlbum(self):
        log("test_CreateAlbum: Start...")
        try:
            log("test_CreateAlbum: Start Sign in process.")
            op.launch_RT_before_running_case()
            log("test_CreateAlbum: Sign in successfully.")

            log("test_CreateAlbum: Create Album.")
            op.create_album()
            log("test_CreateAlbum: Create Album and add item to Album successfully.")

            log("test_CreateAlbum: Verify the Album from CloudAPI.")
            wait_for_upload_complete("test")
            log("test_CreateAlbum: The Album is created successfully.")

        except Exception as ex:
            log("test_CreateAlbum: failed with exception: %s" % __builtin__.type(ex).__name__)
            log(traceback.format_exc())
            raise
        except:
            log("test_CreateAlbum: Unknown exception occur, Details:.")
            log(traceback.format_exc())
            raise
        else:
            log("test_CreateAlbum: ends successfully without exception occur.")
예제 #2
0
    def setUp(self):
        try:
            TestCase_Base.setUp(self)

            log("Start to verify if RT is signed in or not")
            if self.RT.is_sign_in:
                log("RT has been signed in already, start to sign out")
                self.RT.sign_out()

            op.launch_RT_before_running_case()
            self.RT.remove_all_from_cloud_view()
            op.create_album()
            assert_step(self.RT.share_album(test_album_item, "test"))
            op.switch_to_account2()
        except:
            TestCase_Base.tearDown(self)
            raise