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


Python miro_app.MiroApp类代码示例

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


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

示例1: test_29

    def test_29(self):
        """http://litmus.pculture.org/show_test.cgi?id=29 add site from miro site.

        1. Open Awesome website
        2. click one-click subscribe link for revver
        3. Verify site added
        4. Cleanup
        """       
        reg = MiroRegions() 
        miro = MiroApp()

        
        site_url = "http://pculture.org/feeds_test/subscription-test-guide.html"
        site = "Awesome"
        site2 = "Revver"
        miro.add_source_from_tab(reg, site_url)
        miro.click_last_source(reg)
        reg.t.find("Subscribe")
        reg.t.click("Subscribe")
        time.sleep(4)
        p = miro.get_sources_region(reg)
	if p.exists("http://rev",3) or \
           p.exists("revver",3):
            print "revver site added"
        else:
            self.fail("revver site not added to sidebar")                        
        miro.delete_site(reg, site)
        miro.delete_site(reg, "revver")
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:28,代码来源:sg41_one_click.py

示例2: test_194

    def test_194(self):
        """http://litmus.pculture.org/show_test.cgi?id=194 rename source.

        1. Add blip.tv as a source
        2. rename
        3. restart and verify name persists
        4. Cleanup
        """
        site_url = "http://blip.tv"
        site = "blip"
        reg = MiroRegions() 
        miro = MiroApp()

        miro.add_source(reg, site_url,site)
        miro.click_source(reg, site)
        reg.t.click("Sidebar")
        reg.t.click("Rename")
        time.sleep(3)
        type("BLIP TV ROCKS \n")
        self.assertTrue(reg.s.exists("BLIP TV ROCKS"))

        miro.quit_miro()
        reg = MiroRegions() 
        miro = MiroApp()
        self.assertTrue(reg.s.exists("BLIP"))
        miro.delete_site(reg, "BLIP")
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:26,代码来源:sg21_sites.py

示例3: test_999reset

    def test_999reset(self):
        """fake test to reset db and preferences.

        """
        miro = MiroApp()
        miro.quit_miro()
        myLib.config.set_def_db_and_prefs()
        miro.restart_miro()
开发者ID:jdragojevic,项目名称:miro-qa,代码行数:8,代码来源:sg1_install.py

示例4: setUp

 def setUp(self):
     self.verificationErrors = []
     miro = MiroApp()
     print "starting test: ",self.shortDescription()
     miro.quit_miro()
     myLib.config.set_def_db_and_prefs()
     miro.restart_miro()
     time.sleep(10)        
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:8,代码来源:sg23_startup.py

示例5: test_001setup

    def test_001setup(self):
        """fake test to reset db and preferences.

        """
        miro = MiroApp()
        miro.quit_miro()
        myLib.config.set_def_db_and_prefs()
        miro.restart_miro()
        time.sleep(10)
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:9,代码来源:sg42_feedsearch.py

示例6: test_001setup

    def test_001setup(self):
        """Pre subgroup run cleanup and preferences check.

        This isn't a real tests and is just meant to make sure the subgroup is starting with usual preferences settings and clean sidebar.
        """
        miro = MiroApp()
        miro.quit_miro()
        config.set_def_db_and_prefs()
        miro.restart_miro()
        time.sleep(10)
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:10,代码来源:sg6_feeds.py

示例7: test_23

    def test_23(self):
        """http://litmus.pculture.org/show_test.cgi?id=23 remember search.

        1. Add 2-stupid-videos feed
        2. Perform a search
        3. Type in search box the delete key 
        4. Cleanup

        """
        reg = MiroRegions() 
        miro = MiroApp()
        url = "http://pculture.org/feeds_test/2stupidvideos.xml"
        feed = "TWO STUPID"
        term = "House"
        title = "Dinosaur"
        
        #1. add feed
        miro.add_feed(reg, url,feed)
        #2. search
        miro.tab_search(reg, term)
        self.assertTrue(reg.m.exists(title))
        self.assertFalse(reg.m.exists("Flip"))
        miro.click_sidebar_tab(reg, "Videos")
        reg.s.click(feed)
        self.assertTrue(reg.mtb.exists(term.upper()))
        self.assertTrue(reg.m.exists(title))
        self.assertFalse(reg.m.exists("Flip"))
        #4. cleanup
        miro.delete_feed(reg, "stupid")
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:29,代码来源:sg42_feedsearch.py

示例8: test_182

    def test_182(self):
        """http://litmus.pculture.org/show_test.cgi?id=182 dl from youtube site.

        1. Open youtube url as site
        2. download button
        3. verify download started
        4. Cleanup
        """
        site_url = "http://www.youtube.com/watch?v=fgg2tpUVbXQ&feature=channel"
        site = "Hubble"
        
        reg = MiroRegions() 
        miro = MiroApp()
        try:
            miro.add_source_from_tab(reg, site_url)
            miro.click_last_source(reg)
            
            if reg.mtb.exists(Pattern("download_this_video.png")) or \
                      reg.mtb.exists("Download this"):
                click(reg.mtb.getLastMatch())
                time.sleep(3)
            miro.confirm_download_started(reg, "Deep")
            reg.mtb.click("download-cancel.png")
        finally:
            miro.delete_site(reg, site)
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:25,代码来源:sg21_sites.py

示例9: test_679

    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,代码行数:25,代码来源:sg38_playlists.py

示例10: test_112

    def test_112(self):
        """http://litmus.pculture.org/show_test.cgi?id=112 download errors

        1. Add feed
        2. Download All
        3. Verify error messages
        """
        reg = MiroRegions()
        miro = MiroApp()
        feed_url = "http://participatoryculture.org/feeds_test/feed13.rss"
        feed_name = "Feed"

        error_types = {"Server Closes Connection": "no_connection.png",
                       "File not found": "file_not_found.png",
                       "503 Error": "no_connection.png",
                       "Host not found": "unknown_host.png",
                       "HTTP error": "http_error.png",
                       "Timeout error": "no_connection.png",
                       }
        miro.add_feed(reg, feed_url, feed_name)
        miro.set_podcast_autodownload(reg, setting="All")
        time.sleep(10)
        for error, image in error_types.iteritems():
                miro.tab_search(reg, error)
                assert reg.m.exists(Pattern(image).similar(0.6),60)
        miro.delete_feed(reg, feed_name)
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:26,代码来源:sg12_downloading.py

示例11: setUp

 def setUp(self):
     reg = MiroRegions() 
     miro = MiroApp()
     self.verificationErrors = []
     print "starting test: ",self.shortDescription()
     myLib.config.set_image_dirs()
     miro.quit_miro()
     myLib.config.set_def_db_and_prefs()
     myLib.config.delete_miro_downloaded_files()
     miro.restart_miro()
     time.sleep(10)
开发者ID:GunioRobot,项目名称:miro-qa,代码行数:11,代码来源:sg58_items2.py

示例12: test_195

    def test_195(self):
        """http://litmus.pculture.org/show_test.cgi?id=196 delete site.

        1. Add header test as a source
        2. delete it 
        """
        site_url = "http://qa.pculture.org/feeds_test/header-test.php"
        site = "Header Test"
        reg = MiroRegions() 
        miro = MiroApp()
        miro.add_source(reg, site_url,site)
        miro.delete_site(reg, site)
开发者ID:jdragojevic,项目名称:miro-qa,代码行数:12,代码来源:sg21_sites.py

示例13: test_youtube_9

    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,代码行数:17,代码来源:sg12_downloading.py

示例14: test_16456_674

    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,代码行数:17,代码来源:sg12_downloading.py

示例15: test_9

    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,代码行数:17,代码来源:sg12_downloading.py


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