def testPolicyCreate(self): self.testname="testPolicyCreate" self.setup() util = WebdriverUtilities() util.setDriver(self.driver) element = Elements() do = Helpers() do.setUtils(util) do.Login() last_created_object_link =do.CreateObject("Policy") do.NavigateToObjectAndOpenObjectEditWindow("Policy",last_created_object_link) do.deleteObject()
def testSystemCreate(self): self.testname = "testSystemCreate" self.setup() util = WebdriverUtilities() util.setDriver(self.driver) do = Helpers() do.setUtils(util) do.Login() last_created_object_link = do.CreateObject("System") #object_name = str(util.getTextFromXpathString(last_created_object_link)).strip() do.NavigateToObjectAndOpenObjectEditWindow("System", last_created_object_link) do.deleteObject()
def testControlEdit(self): self.testname="testControlEdit" self.setup() util = WebdriverUtilities() util.setDriver(self.driver) element = Elements() do = Helpers() grcobject = GRCObject() do.setUtils(util) do.Login() last_created_object_link = do.CreateObject("Control") object_name = util.getTextFromXpathString(last_created_object_link) do.NavigateToObjectAndOpenObjectEditWindow("Control",last_created_object_link) do.PopulateObjectInEditWindow( object_name , grcobject.control_elements, grcobject.control_values) do.ShowHiddenValues() do.verifyObjectValues( grcobject.control_elements, grcobject.control_values) do.deleteObject()