当前位置: 首页>>代码示例>>Python>>正文


Python MiroApp.download_from_a_url方法代码示例

本文整理汇总了Python中myLib.miro_app.MiroApp.download_from_a_url方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.download_from_a_url方法的具体用法?Python MiroApp.download_from_a_url怎么用?Python MiroApp.download_from_a_url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myLib.miro_app.MiroApp的用法示例。


在下文中一共展示了MiroApp.download_from_a_url方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_444

# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_from_a_url [as 别名]
    def test_444(self):
        """http://litmus.pculture.org/show_test.cgi?id=444 external dl errors.

        1. http file url to download
        2. open with File Download menu
        3. Verify download completes
        4. Check title display via screenshot

        """
        item_url = "http://www.youtube.com/watch?v=LU-ZQWZSGfc&feature=fvhr"
        item_title = "watch"
        reg = MiroRegions()
        miro = MiroApp()
        miro.cancel_all_downloads(reg)
        dl_status = miro.download_from_a_url(reg, item_url, item_title)
        print dl_status
        self.assertTrue(dl_status == "failed")
        miro.quit_miro()
        miro.restart_miro()
        miro.click_sidebar_tab(reg, "Downloading")
        assert reg.m.exists(Pattern("file_not_found.png"))
        reg.m.click(item_title)
        type(Key.DELETE)
        miro.click_sidebar_tab(reg, "Videos")
        reg.s.waitVanish("Downloading")
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:27,代码来源:sg12_downloading.py

示例2: test_16456_674

# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_from_a_url [as 别名]
    def test_16456_674(self):
        """http://litmus.pculture.org/show_test.cgi?id=674 https url download.

        1. http file url to download
        2. open with File Download menu
        3. Verify download completes
        4. Check title display via screenshot

        """
        item_url = "https://www.youtube.com/watch?v=pOle1AnPOc4"
        item_title = "Charlie"
        item_image = "charlie_bit_me.png"
        reg = MiroRegions()
        miro = MiroApp()
        miro.cancel_all_downloads(reg)
        miro.download_from_a_url(reg, item_url, item_title)
        assert download_playback_check_title(reg, miro, item_title, item_image) 
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:19,代码来源:sg12_downloading.py

示例3: test_youtube_9

# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_from_a_url [as 别名]
    def test_youtube_9(self):
        """http://litmus.pculture.org/show_test.cgi?id=9 external dl youtube.

        1. http file url to download
        2. open with File Download menu
        3. Verify download completes
        4. Check title display via screenshot

        """
        item_url = "http://www.youtube.com/watch?v=5pB3gAjivrY"
        item_title = "Andrew"
        item_image = "andrew_garcia_straight_up.png"
        reg = MiroRegions()
        miro = MiroApp()
        miro.cancel_all_downloads(reg)
        miro.download_from_a_url(reg, item_url, item_title)
        assert download_playback_check_title(reg, miro, item_title, item_image)
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:19,代码来源:sg12_downloading.py

示例4: test_9

# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_from_a_url [as 别名]
    def test_9(self):
        """http://litmus.pculture.org/show_test.cgi?id=9 external dl.

        1. http file url to download
        2. open with File Download menu
        3. Verify download completes
        4. Check title display via screenshot

        """
        item_url = "http://j2.video2.blip.tv/7790005512538/Miropcf-TurnASearchIntoAChannel756.mp4"
        item_title = "Miropcf"
        item_image = "Miropcf_TurnASearch.png"
        reg = MiroRegions()
        miro = MiroApp()
        miro.cancel_all_downloads(reg)
        miro.download_from_a_url(reg, item_url, item_title)
        assert download_playback_check_title(reg, miro, item_title, item_image)
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:19,代码来源:sg12_downloading.py


注:本文中的myLib.miro_app.MiroApp.download_from_a_url方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。