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


Python MiroApp.add_playlist方法代码示例

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


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

示例1: test_679

# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import add_playlist [as 别名]
    def test_679(self):
        """http://litmus.pculture.org/show_test.cgi?id=679 create a playlist via menu.

        Also verifies test_222, remove playlist (via context menu)

        1. add a watched folder to get some items in the db
        2. select the items and create a new playlist from menu
        3. verify items in list
        4. repeat with context menu and verify

        """
        playlist = "EMPTY LIST"
        reg = MiroRegions() 
        miro = MiroApp()
        miro.add_playlist(reg, playlist,style="menu")
        p = miro.get_playlists_region(reg)
        list_loc = miro.click_playlist(reg, playlist)
        rightClick(Location(list_loc))
        p.click("Remove")
        miro.remove_confirm(reg, "remove")
        time.sleep(2)
        if p.exists(playlist):
            print "remove failed"
        else:
            miro.log_result("222","verified remove playlist via context menu")
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:27,代码来源:sg38_playlists.py

示例2: test_225

# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import add_playlist [as 别名]
    def test_225(self):
        """http://litmus.pculture.org/show_test.cgi?id=225 add several items to a new playlist.

        1. add a watched folder to get some items in the db
        2. select the items and create a new playlist from menu
        3. verify items in list
        4. repeat with context menu and verify

        """
        watched_feed = "TestData"
        playlist = "MIX LIST"
        reg = MiroRegions() 
        miro = MiroApp()
        miro.click_sidebar_tab(reg, "Podcasts")
        miro.toggle_normal(reg)
        miro.tab_search(reg, watched_feed)
        reg.m.click(Pattern("sort_name_normal.png"))
        item_list = ["Lego", "Pancake", "Deerhunter"]
        keyDown(Key.SHIFT)
        time.sleep(1)
        reg.m.click("Lego")
        reg.m.click("Deerhunter")
        keyUp(Key.SHIFT)
        miro.add_playlist(reg, playlist,style="shortcut")
        miro.toggle_normal(reg)
        for title in item_list:
            miro.tab_search(reg, title,confirm_present=True)
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:29,代码来源:sg38_playlists.py

示例3: test_221

# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import add_playlist [as 别名]
    def test_221(self):
        """http://litmus.pculture.org/show_test.cgi?id=221 rename playlist.

        """
        playlist = "TAB LIST"
        reg = MiroRegions() 
        miro = MiroApp()
        miro.add_playlist(reg, playlist,style="tab")
        miro.log_result("708","test_221 - added playlist via Playlist top level tab")
        list_loc = miro.click_playlist(reg, playlist)
        print list_loc
        rightClick(Location(list_loc))
        type(Key.DOWN)
        type(Key.ENTER)
        time.sleep(2)
        type("NEW NAME \n")
        miro.click_playlist(reg, playlist="NEW NAME")
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:19,代码来源:sg38_playlists.py


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