Exemplo n.º 1
0
    def test_5(self):
        """http://litmus.pculture.org/show_test.cgi?id=5 update install.

        Litmus Test Title:: 5 - upgrade from an earlier version of miro (3.5.1)
        Description: 
        1. Copy in Miro 3.5.1 database
        2. Launch miro and verify it is upgraded to current version.
        """
        
        miro = MiroApp()
        miro.quit_miro()
        db = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","databases","351sqlitedb")
        myLib.config.replace_database(db)
        #set the search regions
        miro.restart_miro()
        waitVanish("Upgrading")
        waitVanish("Preparing")
        time.sleep(10)
        miro.handle_crash_dialog('5', db=False, test=False)
        reg = MiroRegions()
        miro = MiroApp()
        
        miro.click_sidebar_tab(reg, "Downloading")
        miro.quit_miro()
        myLib.config.set_def_db_and_prefs()
Exemplo n.º 2
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 = MiroRegions() 
        miro = MiroApp()
        
        url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
        feed = "Static"
        term = "Gimp"
        title = "GimpKnowHow"
        
        #1. add feed
        miro.add_feed(reg, url, feed)
        #2. search
        miro.tab_search(reg, term)
        reg.mtb.click("button_save_as_podcast.png")
        #3. verify search saved
        miro.click_last_podcast(reg)
        #4. cleanup
        type(Key.DELETE)
        #Last chance to verify Gimp is the saved search feed.
        self.assertTrue(reg.m.exists("GIMP"),5)
        miro.remove_confirm(reg, action="remove")
        miro.delete_feed(reg, "Static List")
        miro.handle_crash_dialog('215', db=False, test=False)
Exemplo n.º 3
0
    def test_54(self):
        """http://litmus.pculture.org/show_test.cgi?id=54 Test Crash Reporter no DB.

        1. Perform a search of crash inducing text
        2. Submit crash dialog
        3. Quit Miro
        """
        print self.id()
        setAutoWaitTimeout(60)
        reg = MiroRegions()
        miro = MiroApp()

        term ="LET'S TEST DTV'S CRASH REPORTER TODAY"
        miro.click_sidebar_tab(reg, "Search")
        miro.search_tab_search(reg, term)
        miro.handle_crash_dialog( '54', db=False, test=True)
Exemplo n.º 4
0
    def test_55(self):
        """http://litmus.pculture.org/show_test.cgi?id=55 Test Crash Reporter with DB.

        1. Perform a search of crash inducing text
        2. Submit crash dialog with db
        3. Quit Miro
        """
       
        setAutoWaitTimeout(60)
        reg = MiroRegions()
        miro = MiroApp()

        term ="LET'S TEST DTV'S CRASH REPORTER TODAY"
        miro.click_sidebar_tab(reg, "Search")
        miro.search_tab_search(reg, term)
        miro.handle_crash_dialog( '55', test=True)
        miro.search_tab_search(reg, term=" ",engine=None)
Exemplo n.º 5
0
    def test_682(self):
        """http://litmus.pculture.org/show_test.cgi?id=54 Test Crash Reporter with DB.

        1. Perform a search of crash inducing text
        2. Submit crash dialog
        3. Quit Miro
        """
        print self.id()
        reg = MiroRegions()
        miro = MiroApp()

        if myLib.config.get_os_name() == "osx":
            reg.tl.click("Dev")
        else:
            type('f',KEY_ALT)
            time.sleep(1)
            type(Key.LEFT)
        reg.t.click("Test Soft")
        miro.handle_crash_dialog( '682', db=True, test=True)      
Exemplo n.º 6
0
    def test_321(self):
        """http://litmus.pculture.org/show_test.cgi?id=321 delete slow to load site.

        1. Add slow feed as a source
        2. delete it before is loads
        """
        site_url = "http://pculture.org/feeds_test/slowsite.php"
        site = "pculture"
        alt_site = "Miro Guide"
        
        setAutoWaitTimeout(60)                
        reg = MiroRegions() 
        miro = MiroApp()

        miro.add_source_from_tab(reg, site_url)
        miro.click_last_source(reg)
        type(Key.DELETE)
        type(Key.ENTER)
        miro.handle_crash_dialog(db=False,test=False)
Exemplo n.º 7
0
    def test_681(self):
        """http://litmus.pculture.org/show_test.cgi?id=54 Test Crash Reporter no DB.

        1. Perform a search of crash inducing text
        2. Submit crash dialog
        3. Quit Miro
        """
        print self.id()
        setAutoWaitTimeout(60)
        reg = MiroRegions()
        miro = MiroApp()
        if myLib.config.get_os_name() == "osx":
            type(Key.F2, KeyModifier.CTRL)
            for x in range(0,11):
                type(Key.RIGHT)
            type(Key.DOWN)
        else:
            type('f',KEY_ALT)
            time.sleep(1)
            type(Key.LEFT)
        reg.t.click("Test Soft")
        miro.handle_crash_dialog( '681', db=False, test=True)
Exemplo n.º 8
0
 def tearDown(self):
     miro = MiroApp()
     miro.handle_crash_dialog(self, self.id())
     type(Key.ESC)  #get rid of any leftover dialogs on teardown
     print "finished test: ",self.id()
     self.assertEqual([], self.verificationErrors)