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. Search in the tab 3. From Sidebar -> New Search feed, create saved search channel 4. Verify Search saved 5. Cleanup """ reg = MiroRegions() miro = MiroApp() url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml" feed = "Static" term = "Voice" #1. add feed miro.add_feed(reg, url,feed) miro.tab_search(reg, term) #2. search miro.new_search_feed(reg, term, radio="Podcast", source=feed, defaults=True) #3. verify search saved miro.click_last_podcast(reg) self.assertTrue(reg.m.exists(term, 45)) #4. cleanup miro.click_remove_podcast(reg) miro.remove_confirm(reg, action="remove") miro.delete_feed(reg, "Static List")
def test_721(self): """http://litmus.pculture.org/show_test.cgi?id=721 Menu New Search Watched 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 = MiroRegions() miro = MiroApp() feed = "TestData" term = "monkey" folder_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","WatchTest") #1. add feed miro.add_watched_folder(reg, folder_path) if reg.s.exists("WatchTest"): miro.log_result("678","test_721") #2. search miro.tab_search(reg, term) miro.new_search_feed(reg, term,radio="Podcast",source=feed,watched=True) #Remove Watched Folder miro.open_prefs(reg) prefs = PreferencesPanel() folder_tab = prefs.open_tab("Folders") folder_tab.remove_watched_folder("ArtTest") folder_tab.close_prefs()
def test_78(self): """http://litmus.pculture.org/show_test.cgi?id=78 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 = MiroRegions() miro = MiroApp() url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml" feed = "Static" term = "touring" term2 = "Biking" title = "Travelling Two" dummy_feed_url = "http://pculture.org/feeds_test/2stupidvideos.xml" #1. add feed miro.add_feed(reg, url,feed) miro.add_feed(reg, dummy_feed_url,"TWO STUPID") #2. search miro.new_search_feed(reg, term,radio="Podcast",source=feed) time.sleep(5) #3. verify search saved miro.click_last_podcast(reg) self.assertTrue(reg.m.exists(term2)) #4. cleanup miro.click_remove_podcast(reg) miro.remove_confirm(reg, action="remove") miro.delete_feed(reg, "Static List")
def test_79(self): """http://litmus.pculture.org/show_test.cgi?id=79 Search - New Search Podcast: Engine Steps to Perform: 1. Select Sidebar -> New Search Podcast 2. Enter a search term 3. Select the Search Engine radio button 4. Select a search engine from the pulldown menu 5. Select Create Podcast """ reg = MiroRegions() miro = MiroApp() #Set Global Preferences miro.open_prefs(reg) prefs = PreferencesPanel() podcasts_tab = prefs.open_tab("Podcasts") podcasts_tab.autodownload_setting("Off") podcasts_tab.close_prefs() searches = { "Yahoo": "Canada", "DailyMotion": "Ontario", "YouTube": "toronto"} radio = "Search" for source, term in searches.iteritems(): miro.new_search_feed(reg, term,radio,source,defaults=False,watched=False) time.sleep(10) #give some time for everything to load up miro.click_podcast(reg, source) miro.shortcut("r") time.sleep(5) miro.tab_search(reg, term) try: self.assertTrue(reg.m.exists(source)) miro.delete_feed(reg, source) except: miro.log_result("79","test_79, failed for " +source+": "+term, status="fail") #cleanup for x in searches.keys(): miro.delete_feed(reg, x)
def test_80(self): """http://litmus.pculture.org/show_test.cgi?id=80 Search - New Search Channel: URL 1.Select Sidebar -> New Search Podcast 2.Enter the search term: MP3 3.Select the URL radio button and enter, http://www.ubu.com in the text box 4.Click Create Podcast 5.In the warning dialog - click Yes. """ reg = MiroRegions() miro = MiroApp() source = "http://www.ubu.com" term = "mp3" search_term = "Gertrude" radio = "URL" miro.new_search_feed(reg, term,radio,source,defaults=False,watched=False) if exists("compatible",45): type(Key.ENTER) time.sleep(30) # scraping takes a while - need to wait before confirming element present. miro.click_sidebar_tab(reg, "Podcasts") miro.tab_search(reg, search_term,confirm_present=True) miro.delete_feed(reg, term)