示例#1
0
 def testContractMapLHN(self):
     self.testname="TestContractMapLHN"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "Contract")
     do.login()
     contract_name = "Contract for Auto Mapping from LHN"  +do.getTimeId()
     last_created_object_link = do.createObject("Contract", contract_name)
     do.navigateToObjectWithSearch(contract_name, "Contract")
     for obj in grcobject.contract_map_to_lhn: 
         do.mapAObjectLHN(obj)
示例#2
0
 def testMarketMapLHN(self):
     self.testname="TestMarketMapLHN"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "Market")
     do.login()
     system_name = "Market for Auto Mapping from LHN"  +do.getTimeId()
     last_created_object_link = do.createObject("Market", system_name)
     #object_name = str(util.getTextFromXpathString(last_created_object_link)).strip() 
     do.navigateToObjectWithSearch(system_name, "Market")
     for obj in grcobject.market_map_to_lhn: 
         do.mapAObjectLHN(obj)
示例#3
0
 def testSystemsMapLHN(self):
     self.testname="TestSystemMapLHN"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util)
     do.login()
     system_name = "System for Auto Mapping from LHN"  +do.getTimeId()
     last_created_object_link = do.createObject("System", system_name)
     #object_name = str(util.getTextFromXpathString(last_created_object_link)).strip() 
     do.navigateToObject("System",last_created_object_link)
     for obj in grcobject.system_map_to_lhn: 
         do.mapAObjectLHN(obj)
         util.refreshPage()