def testCreateUpdateDeleteRegulation(self):
     self.testname="TestCreateUpdateDeleteRegulation"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers(self)
     do.setUtils(util)
     myUtil = do.getUtils()
     do.login()
     
     last_created_object_link = do.createObject("Regulation")
     object_name = str(do.util.getTextFromXpathString(last_created_object_link)).strip()
     do.navigateToObjectAndOpenObjectEditWindow("Regulation", last_created_object_link)
     do.populateObjectInEditWindow(object_name , grcobject.regulation_elements, grcobject.regulation_values)
     do.openObjectEditWindow()
     do.verifyObjectValues(grcobject.regulation_elements, grcobject.regulation_values)
     do.deleteObject()
 def testCreateUpdateDeleteSystem(self):
     self.testname="TestCreateUpdateDeleteSystem"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers(self)
     do.setUtils(util)
     myUtil = do.getUtils()
     do.login()
     
     aEmail = "*****@*****.**" #already exists in the database
     
     last_created_object_link = do.createObject("System")
     object_name = str(do.util.getTextFromXpathString(last_created_object_link)).strip()
     do.navigateToObjectAndOpenObjectEditWindow("System", last_created_object_link)
     do.populateObjectInEditWindow(object_name , grcobject.system_elements, grcobject.system_values, aEmail)
     do.openObjectEditWindow()
     do.verifyObjectValues(grcobject.system_elements, grcobject.system_values)
     do.deleteObject()