示例#1
0
    def testEventClass(self):
        """Test adding and deleting event classes"""

        self.waitForElement("link=Events")
        self.selenium.click("link=Events")
        self.selenium.wait_for_page_to_load(self.WAITTIME)
        self.addDialog(new_id=("text", "testParent"))
        self.assert_(self.selenium.is_element_present("link=testParent"))
        self.selenium.click("link=testParent")
        self.selenium.wait_for_page_to_load(self.WAITTIME)
        self.addDialog(new_id=("text", "testChild1"))
        self.addDialog(new_id=("text", "testChild2"))
        self.addDialog(new_id=("text", "testChild3"))
        self.addDialog(new_id=("text", "testChild4"))
        self.addDialog(new_id=("text", "testChild5"))
        self.selenium.click(
            getByValue("organizerPaths:list", "testChild2", "subclasses"))
        self.selenium.click(
            getByValue("organizerPaths:list", "testChild4", "subclasses"))
        self.selenium.click("OrganizerlistremoveOrganizers")
        self.waitForElement("manage_deleteOrganizers:method")
        self.selenium.click("manage_deleteOrganizers:method")
        self.selenium.wait_for_page_to_load(self.WAITTIME)
        self.assert_(not self.selenium.is_element_present("testChild2"))
        self.assert_(not self.selenium.is_element_present("testChild4"))
        self.selenium.click("link=Events")
        self.selenium.wait_for_page_to_load(self.WAITTIME)
        self.deleteDialog(testData="testParent", form_name="subclasses")
        self.assert_(not self.selenium.is_element_present("testParent"))
    def testEventClass(self):
        """Test adding and deleting event classes"""

        self.waitForElement("link=Events")
        self.selenium.click("link=Events")
        self.selenium.wait_for_page_to_load(self.WAITTIME)
        self.addDialog(new_id=("text", "testParent"))
        self.assert_(self.selenium.is_element_present("link=testParent"))
        self.selenium.click("link=testParent")
        self.selenium.wait_for_page_to_load(self.WAITTIME)
        self.addDialog(new_id=("text", "testChild1"))
        self.addDialog(new_id=("text", "testChild2"))
        self.addDialog(new_id=("text", "testChild3"))
        self.addDialog(new_id=("text", "testChild4"))
        self.addDialog(new_id=("text", "testChild5"))
        self.selenium.click(getByValue("organizerPaths:list", "testChild2", "subclasses"))
        self.selenium.click(getByValue("organizerPaths:list", "testChild4", "subclasses"))
        self.selenium.click("OrganizerlistremoveOrganizers")
        self.waitForElement("manage_deleteOrganizers:method")
        self.selenium.click("manage_deleteOrganizers:method")
        self.selenium.wait_for_page_to_load(self.WAITTIME)
        self.assert_(not self.selenium.is_element_present("testChild2"))
        self.assert_(not self.selenium.is_element_present("testChild4"))
        self.selenium.click("link=Events")
        self.selenium.wait_for_page_to_load(self.WAITTIME)
        self.deleteDialog(testData="testParent", form_name="subclasses")
        self.assert_(not self.selenium.is_element_present("testParent"))
 def moveEventClassMappings(self, pathsList="ids:list", form_name="mappings", moveTo="/Unknown", stringVal="testingString"):
     """Test moving an EventClassMapping to /Unknown"""
     
     self.waitForElement(getByValue(pathsList, stringVal, form_name))
     self.selenium.click(getByValue(pathsList, stringVal, form_name))
     self.waitForElement("EventmappinglistmoveInstances")
     self.selenium.click("EventMappinglistmoveInstances")
     self.waitForElement("moveInstances:method")
     self.selenium.select("moveTarget", moveTo)
     self.selenium.click("moveInstances:method")
示例#4
0
    def moveEventClassMappings(self,
                               pathsList="ids:list",
                               form_name="mappings",
                               moveTo="/Unknown",
                               stringVal="testingString"):
        """Test moving an EventClassMapping to /Unknown"""

        self.waitForElement(getByValue(pathsList, stringVal, form_name))
        self.selenium.click(getByValue(pathsList, stringVal, form_name))
        self.waitForElement("EventmappinglistmoveInstances")
        self.selenium.click("EventMappinglistmoveInstances")
        self.waitForElement("moveInstances:method")
        self.selenium.select("moveTarget", moveTo)
        self.selenium.click("moveInstances:method")