Exemple #1
0
    def test_215(self):
        """http://litmus.pculture.org/show_test.cgi?id=215 Feed search, saved search feed

        1. Add list of guide feeds (Static List)
        2. Perform a search and save it.
        3. Verify Search saved
        4. Cleanup

        """
        reg = mirolib.AppRegions()
        
        url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
        feed = "Static"
        term = "Gimp"
        title = "GimpKnowHow"
        
        #1. add feed
        mirolib.add_feed(self,reg,url,feed)
        #2. search
        mirolib.tab_search(self,reg,term)
        reg.mtb.click("button_save_as_podcast.png")
        #3. verify search saved
        mirolib.click_last_podcast(self,reg)
        #4. cleanup
        type(Key.DELETE)
        #Last chance to verify Gimp is the saved search feed.
        self.assertTrue(reg.m.exists("GIMP"),5)
        mirolib.remove_confirm(self,reg,action="remove")
        mirolib.delete_feed(self,reg,"Static List")
        mirolib.handle_crash_dialog(self,db=False,test=False)
Exemple #2
0
    def test_214(self):
        """http://litmus.pculture.org/show_test.cgi?id=214 Feed search, search with spaces

        1. Add 3 blip videos feed
        2. Perform a search with spaces
        3. Verify Search saved
        4. Cleanup

        """
        reg = mirolib.AppRegions()
        
        url = "http://pculture.org/feeds_test/3blipvideos.xml"
        feed = "ThreeBlip"
        term = "strange creature"
        title = "Joo Joo"
        
        #1. add feed
        mirolib.add_feed(self,reg,url,feed)
        #2. search
        mirolib.tab_search(self,reg,term)
        reg.mtb.click("button_save_as_podcast.png")
        #3. verify search saved
        mirolib.click_last_podcast(self,reg)
        mirolib.tab_search(self,reg,term,confirm_present=True)
        
        #4. cleanup
        mirolib.click_remove_podcast(self,reg)
        mirolib.remove_confirm(self,reg,action="remove")
        mirolib.delete_feed(self,reg,"blip")
Exemple #3
0
    def test_720(self):
        """http://litmus.pculture.org/show_test.cgi?id=720 Menu New Search Feed.

        1. Add list of guide feeds (Static List)
        2. From Sidebar -> New Search feed, create saved search channel
        3. Verify Search saved
        4. Cleanup

        """
        reg = mirolib.AppRegions()
        
        url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
        feed = "Static"
        term = "Voice"
        dummy_feed_url = "http://pculture.org/feeds_test/2stupidvideos.xml"
        
        #1. add feed
        mirolib.add_feed(self,reg,dummy_feed_url,"TwoStupid")
        mirolib.add_feed(self,reg,url,feed)
        mirolib.tab_search(self,reg,term)
        #2. search
        mirolib.new_search_feed(self,reg,term,radio="Podcast", source=feed,defaults=True)
                        
        #3. verify search saved
        mirolib.click_last_podcast(self,reg)
        self.assertTrue(reg.m.exists(term))
        
        #4. cleanup
        mirolib.click_remove_podcast(self,reg)
        mirolib.remove_confirm(self,reg,action="remove")
        mirolib.delete_feed(self,reg,"Static List")
Exemple #4
0
    def test_339(self):
    	"""http://litmus.pculture.org/show_test.cgi?id=339 delete feed with dl items.

        Litmus Test Title:: 339 - channels delete a feed with downloaded items
        Description: 
        1. Add the 2-stupid-videos feed, and download both items in the feed.  
        2. Remove Feed and Keep the videos.  
        3. Verify videos are displayed in the non-feed section of the Library
        4. Cleanup
        """

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

    	url = "http://pculture.org/feeds_test/2stupidvideos.xml"
    	feed = "TwoStupid"

    	#1. Add the feed and start dl
    	mirolib.add_feed(self,reg,url,feed)
    	time.sleep(3)
    	mirolib.toggle_normal(reg)
#    	mirolib.count_images(self,reg, "item-context-button.png",region="mainright",num_expected=2)
    	mirolib.set_podcast_autodownload(self,reg,setting="All")
    	mirolib.wait_for_item_in_tab(self,reg,"videos","Flip")
    	mirolib.wait_for_item_in_tab(self,reg,"videos","Dinosaur")
    	mirolib.click_podcast(self,reg,feed)
    	type(Key.DELETE)
    	mirolib.remove_confirm(self,reg,action="keep")
    	mirolib.click_sidebar_tab(self,reg,"videos")
    	mirolib.tab_search(self,reg,"Flip",confirm_present=True)
    	mirolib.tab_search(self,reg,"Dinosaur",confirm_present=True)
    	#4. cleanup
    	mirolib.delete_items(self,reg,"Flip","videos")
    	mirolib.delete_items(self,reg,"Dinosaur","videos")
Exemple #5
0
    def test_117(self):
        """http://litmus.pculture.org/show_test.cgi?id=117 delete multiple feeds then cancel.

        Litmus Test Title:: 117 - delete multiple feeds then cancel
        Description: 
        1. Add several feeds from list of guide feeds
        2. Select them all
        3. Delete, the cancel the delete
        4. Cleanup
        """
        setAutoWaitTimeout(testvars.timeout)
        #set the search regions
        reg = mirolib.AppRegions()      
        prefs.set_autodownload(self,reg,setting="Off")
        prefs.set_default_view(self,reg,setting="Standard")

        url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
        feed = "Static"
        feedlist = ["Center", "Earth"]

        #1. Add the feed and start dl
        mirolib.add_feed(self,reg,url,feed)
        for f in feedlist:
            mirolib.tab_search(self,reg,f)
            self.assertTrue(reg.m.exists("Add this"))
            reg.m.click("Add this")
            time.sleep(4)
        mirolib.tab_search(self,reg,"")
        mirolib.toggle_normal(reg)

        p = mirolib.get_podcasts_region(reg)
        mirolib.click_sidebar_tab(self,reg,"Music")
        mirolib.click_podcast(self,reg,feed)            
        #2. Select them all
       
        keyDown(Key.SHIFT)  
        for x in feedlist:
            if p.exists(x):
                p.click(x)
            else:
                print "could not find feed" +str(x)
            time.sleep(2)
        keyUp(Key.SHIFT)
        #3. Delete then cancel.  Verify still exists Static List
        if reg.m.exists("Delete",4) or reg.m.exists("button_mv_delete_all.png",4):
            click(reg.m.getLastMatch())
        else:
            self.fail("Can't find Delete All button in main view")
        mirolib.remove_confirm(self,reg,"cancel")
        p = mirolib.get_podcasts_region(reg)
        time.sleep(5)
        self.assertTrue(p.exists("Static",5))
        #4. Cleanup
        feedlist.append("Static")
        for x in feedlist:
            print x
            mirolib.delete_feed(self,reg,x)
Exemple #6
0
    def skiptest_120(self): ## No feed counter, this test is no longer valid.
        """http://litmus.pculture.org/show_test.cgi?id=120 full feed counter.

        Litmus Test Title:: 120 full feed counter
        Description: 
        Verify full feed counter accurately displays the number of items in a feed or folder.
        1. Add 2 feeds and verify number of items
        2. Put them in a folder
        3. Update and verify counter
        4. Cleanup
        """
        setAutoWaitTimeout(testvars.timeout)
        #set the search regions
        reg = mirolib.AppRegions()

        FEEDS = {"my feed": "http://bluesock.org/~willg/cgi-bin/newitemsfeed.cgi",
                 "recent posts": "http://blip.tv/rss?pagelen=1",
                 }

        #1. Add the feeds and check num items
        for feed, url in FEEDS.iteritems():
            mirolib.add_feed(self,reg,url,feed)
            
        #2. Select them and add to a folder    
        try:
            reg.s.click("my feed")
            time.sleep(2)
            keyDown(Key.SHIFT)
            reg.s.click("recent posts")
            self.assertTrue(reg.m.exists("Delete"))
            self.assertTrue(reg.m.exists("New Folder"))
        except:
            self.verificationErrors.append("multi select failed")
        finally:
            keyUp(Key.SHIFT)
        #3. Delete then cancel.  Verify still exists Static List
        reg.m.click("New Folder")
        time.sleep(2)
        type("Counter Test \n")
        mirolib.click_feed(self,reg,feed="Counter Test")
        mirolib.toggle_list(reg)
        mirolib.count_images(self,reg,img="Download",region="main",num_expected=6)
        self.assertTrue(tmpr.exists("15 Items"))
        mirolib.shortcut("r",shift=True)
        time.sleep(3)
        self.assertTrue(tmpr.exists("20 Items"))
        #4. Cleanup
        type(Key.DELETE)
        mirolib.remove_confirm(self,reg,action="remove")
Exemple #7
0
    def test_143(self):
        """http://litmus.pculture.org/show_test.cgi?id=143 multiple delete and cancel.

        1. Add clearbits and archive.org
        2. select bogh and delete, the cancel
        3. verify sites not deleted.
        4. Cleanup
        """
        site_url = "http://clearbits.net"
        site_url2 = "http://archive.org"
        site = "ClearBits"
        site2 = "Internet"
        setAutoWaitTimeout(60)
        reg = mirolib.AppRegions()

        mirolib.add_source(self,reg,site_url,site)
        mirolib.add_source(self,reg,site_url2,site2)
        p = mirolib.get_sources_region(reg)
        p.click(site)
        keyDown(Key.SHIFT)
        p.click(site2)
        keyUp(Key.SHIFT)
        if reg.m.exists("Delete All",5) or \
           reg.m.exists(Pattern("button_mv_delete_all.png"),5):
            click(reg.m.getLastMatch())
        else:
            self.fail("Delete All button for multi-select not found")
        mirolib.remove_confirm(self,reg,"cancel")
        time.sleep(3)
        p = mirolib.get_sources_region(reg)
        time.sleep(3)
        self.assertTrue(p.exists(site))
        self.assertTrue(p.exists(site2))

        #Cleanup
        mirolib.delete_site(self,reg,site)
        mirolib.delete_site(self,reg,site2)
Exemple #8
0
            mirolib.click_sidebar_tab(self,reg,"Converting")
            mirolib.wait_conversions_complete(self,reg,item_title,str(x))
            # 5. Verify playback
            mirolib.click_sidebar_tab(self,reg,"Videos")
            aplaybackList = ("Droid", "iPhone", "MP4", "Ogg Theora", "Playstation")
            for x in aplaybackList:
                mirolib.tab_search(self,reg,"Converted to "+str(x))
                if reg.m.exists("item_play_unplayed.png"):
                    doubleClick(reg.m.getLastMatch())
                    find(Pattern("playback_bar_video.png"))
                    mirolib.shortcut("d")
                    waitVanish(Pattern("playback_bar_video.png"),20)
                    mirolib.log_result("102","test_620 stop video playback verified.")
                    time.sleep(2)
                    type(Key.DELETE)
                    mirolib.remove_confirm(self,reg,"remove")     
                    time.sleep(3)
                else: self.fail("converted item not found")
        except FindFailed, debugging:
            self.verificationErrors.append(debugging)
        finally:
            while reg.m.exists("Converted to",3):
                click(reg.m.getLastMatch())
                type(Key.DELETE)
                mirolib.remove_confirm(self,reg,"remove")  
        # 6. Cleanup
        mirolib.delete_items(self,reg,item_title,"Videos")
        
            
# Post the output directly to Litmus
if __name__ == "__main__":