Exemplo n.º 1
0
 def testFacilityMapWidget(self):
     self.testname="TestFacilityMapWidget"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "Facility")
     do.login()
     facility_name = "Facility for Auto Mapping from Widget"  +do.getTimeId()
     last_created_object_link = do.createObject("Facility",facility_name)
     do.navigateToObjectWithSearch(facility_name, "Facility")
     for obj in grcobject.facility_map_to_widget: 
         do.mapAObjectWidget(obj)
Exemplo n.º 2
0
 def testOrgGroupMapWidget(self):
     self.testname="TestOrgGroupMapWidget"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "OrgGroup")
     do.login()
     org_group_name = "OrgGroup for Auto Mapping from Widget"  +do.getTimeId()
     last_created_object_link = do.createObject("OrgGroup",org_group_name)
     do.navigateToObjectWithSearch(org_group_name, "OrgGroup")
     for obj in grcobject.org_group_map_to_widget: 
         do.mapAObjectWidget(obj)
Exemplo n.º 3
0
 def testProgramMapWidget(self):
     self.testname="TestProgramMapWidget"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "Program")
     do.login()
     program_name = "Program for Auto Mapping from Widget" + do.getTimeId()
     last_created_object_link = do.createObject("Program", program_name)
     do.navigateToObjectWithSearch(program_name, "Program")
     for obj in grcobject.program_map_to_widget: 
         do.mapAObjectWidget(obj, True, ("Control"))
Exemplo n.º 4
0
 def testPolicyMapWidget(self):
     self.testname="TestRPolicyMapWidget"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util)
     do.login()
     program_name = "Policy for Auto Mapping from Widget"  +do.getTimeId()
     last_created_object_link = do.createObject("Policy", program_name)
     #object_name = str(util.getTextFromXpathString(last_created_object_link)).strip() 
     do.navigateToObject("Policy",last_created_object_link)
     for obj in grcobject.policy_map_to_widget: 
         do.mapAObjectWidget(obj)