Example #1
0
    def test_605(self):
        """Team Edit Description

        http://litmus.pculture.org/show_test.cgi?id=605.      
        """
        sel = self.selenium
        sel.set_timeout(testvars.timeout)

        #login
        website.SiteLogIn(self, sel, testvars.siteuser, testvars.passw)
        #locate or create your team
        team = website.get_own_team(self, sel)
        print "testing team: " + team
        #open team manager settings and edit the description
        sel.open("teams/" + team)
        sel.click(testvars.manage_team)
        sel.wait_for_page_to_load(testvars.timeout)
        timestamp = time.strftime("%m%d%H%M%S", time.gmtime())
        print timestamp
        new_text = "Test 605: edit description for http://pculture.org "
        sel.type("id_description", new_text + timestamp)
        website.save_team_settings(self, sel)
        sel.wait_for_page_to_load(testvars.timeout)
        # logout and verify team no longer displayed
        sel.open("teams/" + team)
        self.assertTrue(sel.is_text_present(new_text))
Example #2
0
    def test_605(self):
        """Team Edit Description

        http://litmus.pculture.org/show_test.cgi?id=605.      
        """
        sel = self.selenium
        sel.set_timeout(testvars.timeout)
        
        #login
        website.SiteLogIn(self,sel,testvars.siteuser,testvars.passw)
        #locate or create your team
        team = website.get_own_team(self,sel)
        print "testing team: " + team
        #open team manager settings and edit the description
        sel.open("teams/"+team)
        sel.click(testvars.manage_team)
        sel.wait_for_page_to_load(testvars.timeout)
        timestamp = time.strftime("%m%d%H%M%S", time.gmtime())
        print timestamp
        new_text = "Test 605: edit description for http://pculture.org "
        sel.type("id_description", new_text+timestamp)
        website.save_team_settings(self,sel)
        sel.wait_for_page_to_load(testvars.timeout)
        # logout and verify team no longer displayed   
        sel.open("teams/"+team)
        self.assertTrue(sel.is_text_present(new_text))
Example #3
0
    def test_609(self):
        """Team Privacy Settings.

        http://litmus.pculture.org/show_test.cgi?id=609.      
        """
        sel = self.selenium
        sel.set_timeout(testvars.timeout)

        #login
        website.SiteLogIn(self, sel, testvars.siteuser, testvars.passw)
        #locate or create your team
        team = website.get_own_team(self, sel)
        print "testing with team: " + team
        #open team manager settings and mark as not public
        sel.open("teams/" + team)
        sel.click(testvars.manage_team)
        sel.wait_for_page_to_load(testvars.timeout)
        if str(sel.get_value("is_visible")) == "on":
            sel.click("is_visible")
            time.sleep(1)
        self.failIf(
            str(sel.get_value("is_visible")) == "on",
            "is_visible not set to off")
        website.save_team_settings(self, sel)
        # logout and verify team no longer displayed
        sel.click(testvars.WebsiteUI["Logout_Button"])
        website.open_teams_page(self, sel)
        website.search_teams(self, sel, team)
        self.failIf(sel.is_element_present("link=" + team))
        website.SiteLogIn(self, sel, testvars.siteuser, testvars.passw)
        website.open_teams_page(self, sel)
        website.search_teams(self, sel, team)
        self.assertTrue(
            sel.is_element_present("css=a[href*='/teams/" + team.lower() +
                                   "']"))
        # reset setting
        sel.open("teams/" + team.lower())
        sel.click(testvars.manage_team)
        sel.wait_for_page_to_load(testvars.timeout)
        if sel.get_value("id_is_visible") == "off":
            sel.click("id_is_visible")
            website.save_team_settings(self, sel)
Example #4
0
    def test_609(self):
        """Team Privacy Settings.

        http://litmus.pculture.org/show_test.cgi?id=609.      
        """
        sel = self.selenium
        sel.set_timeout(testvars.timeout)

        
        #login
        website.SiteLogIn(self,sel,testvars.siteuser,testvars.passw)
        #locate or create your team
        team = website.get_own_team(self,sel)
        print "testing with team: " +team
        #open team manager settings and mark as not public
        sel.open("teams/"+team)
        sel.click(testvars.manage_team)
        sel.wait_for_page_to_load(testvars.timeout)
        if str(sel.get_value("is_visible")) == "on":
            sel.click("is_visible")
            time.sleep(1)
        self.failIf(str(sel.get_value("is_visible")) == "on","is_visible not set to off")
        website.save_team_settings(self,sel)
        # logout and verify team no longer displayed
        sel.click(testvars.WebsiteUI["Logout_Button"])
        website.open_teams_page(self,sel)
        website.search_teams(self,sel,team)
        self.failIf(sel.is_element_present("link="+team))
        website.SiteLogIn(self,sel,testvars.siteuser,testvars.passw)
        website.open_teams_page(self,sel)
        website.search_teams(self,sel,team)
        self.assertTrue(sel.is_element_present("css=a[href*='/teams/"+team.lower()+"']"))
        # reset setting
        sel.open("teams/"+team.lower())
        sel.click(testvars.manage_team)
        sel.wait_for_page_to_load(testvars.timeout)
        if sel.get_value("id_is_visible") == "off":
            sel.click("id_is_visible")
            website.save_team_settings(self,sel)