Exemple #1
0
    def test_338(self):
        """http://litmus.pculture.org/show_test.cgi?id=338 delete feed with dl items.

        Litmus Test Title:: 338 - channels delete a feed with downloads in progress
        Description: 
        1. Add the 3-blip-videos feed. Start items downloading  
        2. Remove the feed and verify downloads are removed.
        """

        setAutoWaitTimeout(testvars.timeout)   
        #set the search regions
        reg = mirolib.AppRegions()

        url = "http://pculture.org/feeds_test/3blipvideos.xml"
        feed = "ThreeBlip"

        #1. Add the feed and start dl
        mirolib.cancel_all_downloads(self,reg)
        mirolib.add_feed(self,reg,url,feed)
        mirolib.download_all_items(self,reg)
        time.sleep(2)
        mirolib.confirm_download_started(self,reg,"The Joo")
        mirolib.delete_feed(self,reg,feed)
        time.sleep(5)
        if reg.s.exists("Downloading",5):
            self.fail("Downloading tab still present")
Exemple #2
0
    def skip_192(self):
        """http://litmus.pculture.org/show_test.cgi?id=192 file detection dl.

        1. Add clearbits.net page as a source
        2. click to dl the torrent file
        3. Verify file starts to download
        4. Cleanup
        """
        site_url = "http://pculture.org/feeds_test/http-direct-downloads.html"
        site = "HTTP Direct"

        ## FIX ME - Need new files, can't download from the videolan ftp site anymore
        HTTPDOWNLOADS = {".mpFour download":"big",
                         ".mpThree download":"gd",
                         ".mFoura download":"luckynight",
            #             ".mpeg download":"mighty",
            #             ".ogv download":"popeye",
            #             ".mov download":"Matrix",
            #             ".wmv download":"WindowsMedia",
            #             ".avi download":"Coyote",
            #             ".mpg download":"dothack2",
            #            ".mkv download 2":"mulitple",
            #             ".ogg download":"gd",       
            #            ".wma download":"Bangles",            
            #            ".flac download":"luckynight",
            #            ".mka download":"Widow",
                         }
        setAutoWaitTimeout(20) 
        reg = mirolib.AppRegions()

        mirolib.add_source(self,reg,site_url,site)
        mirolib.click_source(self,reg,site)
        for filetype, title in HTTPDOWNLOADS.iteritems():
            try:
                if reg.m.exists(filetype):
                    click(reg.m.getLastMatch())
                else:
                    type(Key.PAGE_DOWN)
                    reg.m.find(filetype)
                    click(reg.m.getLastMatch())
                if mirolib.confirm_download_started(self,reg,title) == "failed":
                    self.verificationErrors.append("download failed for imagetype" +str(filetype))
                else:
                    reg.mtb.click("download-cancel.png")
                mirolib.click_source(self,reg,site)
            except:
                self.verificationErrors.append("download failed for imagetype" +str(filetype))
            finally:
                type(Key.ESC) #Close any lingering dialogs
                mirolib.cancel_all_downloads(self,reg)
                mirolib.delete_site(self,reg,site)
Exemple #3
0
    def test_364(self):
        """http://litmus.pculture.org/show_test.cgi?id=364 edit item misc to video

        1. Download item that lands in Misc
        2. Edit type to video
        3. start playback and verify play external dialog
        4. cleanup

        """
        reg = mirolib.AppRegions()
        time.sleep(5)
        url = "http://vimeo.com/moogaloop_local.swf?clip_id=7335370&server=vimeo.com"
        title = "local"
        #Set Global Preferences
        prefs.set_item_display(self,reg,option="video",setting="on")
        time.sleep(2)
        mirolib.cancel_all_downloads(self,reg)
        reg.tl.click("File")
        reg.tl.click("Download from")
        time.sleep(4)
        type(url)
        time.sleep(10)
        type("\n")
        if reg.s.exists("Downloading"):
            print "item dl started"
            reg.s.waitVanish("Downloading",120)
            time.sleep(5)
        mirolib.wait_for_item_in_tab(self,reg,tab="Misc",item=title)
        x = reg.m.find(title)
        click(x)
        reg.s.find("Music")
        tmpr = Region(reg.s.getLastMatch().above())
        tmpr.setW(tmpr.getW()+80)
        tmpr.setX(tmpr.getX()-20)
        y = tmpr.find("Videos")
        dragDrop(x,y)
        #locate item in video tab and verify playback
        click(y)
        if reg.m.exists(title):
            doubleClick(reg.m.getLastMatch())
            mirolib.verify_video_playback(self,reg)
            mirolib.delete_items(self,reg,title,"Videos")
        else:
            mirolib.delete_items(self,reg,title,"Videos")
            self.fail("item not found in videos tab")
Exemple #4
0
    def test_193(self):
        """http://litmus.pculture.org/show_test.cgi?id=193 torrent direct dl.

        1. Add clearbits.net page as a source
        2. click to dl the torrent file
        3. Verify file starts to download
        4. Cleanup
        """
        site_url = "http://www.clearbits.net/torrents/662-here-be-dragons-ipod"
        site = "ClearBits"
        title = "Dragons"
                        
        setAutoWaitTimeout(60)
        reg = mirolib.AppRegions()
        mirolib.cancel_all_downloads(self,reg)

        mirolib.add_source(self,reg,site_url,site)
        mirolib.click_source(self,reg,site)
        reg.m.click("Torrent file")
        mirolib.confirm_download_started(self,reg,title)

        mirolib.cancel_all_downloads(self,reg)
        mirolib.delete_site(self,reg,site)