def get_list_intersection_counts() -> Dict[str, int]: """Return the error intersection counts between a set of resolved, unresolved and backlog lists - intersection_counts: Dict[str, int] """ # Generate the three lists required for this calculation error_lists = _generate_lists() resolved, unresolved, backlog = error_lists['resolved'], error_lists[ 'unresolved'], error_lists['backlog'] # create three lists for error_codes of each type resolved_codes = [d['code'] for d in resolved] unresolved_codes = [d['code'] for d in unresolved] backlog_codes = [d['code'] for d in backlog] # Calculate how many errors with *the same error code* are shared between the possible pairs of lists. log('Generating the intersection counts between a set of resolved, unresolved and backlog lists.', logger='API') resolved_unresolved_codes = set(resolved_codes).intersection( set(unresolved_codes)) resolved_backlog_codes = set(resolved_codes).intersection( set(backlog_codes)) unresolved_backlog_codes = set(unresolved_codes).intersection( set(backlog_codes)) # Then return a Dict of intersection counts return { 'resolved_unresolved': len(resolved_unresolved_codes), 'resolved_backlog': len(resolved_backlog_codes), 'unresolved_backlog': len(unresolved_backlog_codes), }
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.resource = Resource(driver) self.net = NetworkResource(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.loginFun = loginPage(self.driver) self.cmf = commonFun(self.driver) self.dataFile = dataFileName() self.comsuit = CommonSuiteData(self.driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.testrole = testRole(driver) self.backup = Backuprestore(driver) self.data = dataFileName()
def __init__(self, driver): self.driver = driver self.log = log() self.rolemutex = roleMutex(driver) self.role = testRole(driver) self.cmf = commonFun(driver) self.frameElem = frameElement(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.regroup = Regroup(driver) self.dptment = Department(driver)
def __init__(self,driver): self.driver = driver self.log = log() self.role = Role(driver) self.cmf = commonFun(driver) self.tableElem = tableElement(driver) self.frameElem = frameElement(driver)
def __init__(self, driver): self.driver = driver self.dataFile = dataFileName() self.frameElem = frameElement(driver) self.cmf = commonFun(driver) self.log = log() self.syslog = Syslog(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.resource = Resource(driver) self.window = WindowsResource(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.frameElem = frameElement(driver) self.resource = Resource(driver) self.database = DatabaseResource(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.testrole = testRole(driver) self.resource = Resource(driver) self.net = NetworkResource(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.role = Role(driver) self.testrole = testRole(driver) self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.dptment = Department(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.linux = LinuxResource(driver) self.account = Accountmgr(driver) self.data = dataFileName()
def __init__(self,driver): self.driver = driver self.dataFile = dataFileName() self.frameElem = frameElement(driver) self.cmf = commonFun(driver) self.log = log() self.ntp = NtpService(driver) self.comm = CommonSuiteData(driver)
def __init__(self, driver): #selenium驱动 self.driver = driver self.cn = cnEncode() self.log = log() self.getElem = getElement(driver) self.frameElem = frameElement(driver) self.selectElem = selectElement(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.command = CommandRule(driver) self.sso = testSso(driver) self.comsuit = CommonSuiteData(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.getElem = getElement(driver) self.select = selectElement(driver) self.frameElem = frameElement(driver) self.cmf = commonFun(driver) self.cnEnde = cnEncode()
def __init__(self, driver): self.driver = driver self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(driver) self.log = log() self.resource = Resource(driver) self.account = Accountmgr(driver) self.cnEn = cnEncode()
def __init__(self, driver): self.driver = driver self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(driver) self.cnEn = cnEncode() self.acproval = Accapproval(driver) self.command = CommandRule(driver) self.log = log()
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.role = Role(driver) self.dataFile = dataFileName()
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.dataFile = dataFileName() self.frameElem = frameElement(self.driver) self.user = UserPage(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.frameElem = frameElement(driver) self.testrole = testRole(driver) self.resource = Resource(driver) self.database = DatabaseResource(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.data = dataFileName() self.cmf = commonFun(driver) self.acproval = Accapproval(driver) self.loginElem = loginPage(self.driver) self.authElem = AuthorizationPage(self.driver) self.flow = Flowcontrol(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.useauth = UseAuth(driver) self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.dataFile = dataFileName() self.frameElem = frameElement(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.tableElem = tableElement(self.driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.testrole = testRole(driver) self.command = CommandRule(driver) self.sso = testSso(driver) self.comsuit = CommonSuiteData(driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cnEnde = cnEncode() self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(self.driver) self.cmF = commonFun(driver) self.dataFileName = dataFileName() self.session = sessionConfig(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.testrole = testRole(driver) self.command = CommandRule(driver) self.comsuit = CommonSuiteData(driver) self.timerule = TimeRule(driver) self.retime = RetimeRule(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.authMethod = AuthMethodPage(driver) self.cmf = commonFun(driver) self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(driver) self.login = loginPage(self.driver) self.cnEnde = cnEncode()
def __init__(self,driver): self.driver = driver self.log = log() self.authMethod = AuthMethodPage(driver) self.cmf = commonFun(driver) self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(driver) self.login = loginPage(self.driver) self.cnEnde = cnEncode()
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.tableElem = tableElement(self.driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(self.driver) self.confReport = ConfReportPage(self.driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.testrole = testRole(driver) self.resource = Resource(driver) self.linux = LinuxResource(driver) self.role = Role(driver) self.data = dataFileName()
def __init__(self, driver): self.driver = driver self.log = log() self.data = dataFileName() self.cmf = commonFun(driver) self.acproval = Accapproval(driver) self.comsuit = CommonSuiteData(self.driver) self.loginElem = loginPage(self.driver) self.authElem = AuthorizationPage(self.driver) self.flow = Flowcontrol(self.driver)
def __init__(self, driver): self.driver = driver self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(driver) self.cmf = commonFun(driver) self.log = log() self.cnEn = cnEncode() self.loginElem = loginPage(self.driver) self.authElem = AuthorizationPage(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.actions = ActionChains(self.driver) self.tableElem = tableElement(self.driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(self.driver)
def __init__(self, driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.command = CommandRule(driver) self.comsuit = CommonSuiteData(driver) self.timerule = TimeRule(driver) self.getElem = getElement(driver) self.loginElem = loginPage(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.getElem = getElement(driver) self.dataFile = dataFileName() self.select = selectElement(driver) self.frameElem = frameElement(driver) self.cmf = commonFun(driver) self.ntp = NtpService(driver) self.cnEnde = cnEncode()
def __init__(self,driver): self.driver = driver self.getElem = getElement(driver) self.dataFile = dataFileName() self.select = selectElement(driver) self.frameElem = frameElement(driver) self.cmf = commonFun(driver) self.log = log() self.cnEnde = cnEncode() self.network = Network(driver) self.initDriver = initDriver()
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.tableElem = tableElement(self.driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(self.driver) self.systemLog = SystemLogPage(self.driver) self.userElem = UserPage(driver)
def __init__(self,driver): self.driver = driver self.log = log() self.user = UserPage(driver) self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.selectElem = selectElement(driver) self.dataFile = dataFileName() self.frameElem = frameElement(self.driver) self.tableEle = tableElement(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.authElem = AuthorizationPage(self.driver) self.tableElem = tableElement(self.driver) self.selectElem = selectElement(driver) self.dataFile = dataFileName() self.frameElem = frameElement(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.frameElem = frameElement(driver) self.testrole = testRole(driver) self.command = CommandRule(driver) self.comsuit = CommonSuiteData(driver) self.timerule = TimeRule(driver) self.getElem = getElement(driver) self.loginElem = loginPage(self.driver)
def __init__(self,driver): #selenuim驱动 self.driver = driver self.getElem = getElement(self.driver) self.selectElem = selectElement(self.driver) self.frameElem = frameElement(self.driver) self.commElem = commonFun(self.driver) self.cmf = commonFun(self.driver) self.dataFile = dataFileName() self.login = loginPage(self.driver) self.cnEnde = cnEncode() self.log = log()
def __init__(self,driver): self.driver = driver self.log = log() self.session = sessionConfig(driver) self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.selectElem = selectElement(driver) self.dataFile = dataFileName() self.frameElem = frameElement(self.driver) self.tableEle = tableElement(self.driver) self.pwdstr = PwdStrategy(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.ssoElem = SsoPage(self.driver) self.tableElem = tableElement(self.driver) self.selectElem = selectElement(driver) self.dataFile = dataFileName() self.frameElem = frameElement(self.driver) self.commSuite = CommonSuiteData(self.driver)
def __init__(self, driver): self.driver = driver self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(driver) self.cmf = commonFun(driver) self.log = log() self.cnEn = cnEncode() self.depart = Department(driver) self.loginElem = loginPage(self.driver) self.authElem = AuthorizationPage(self.driver) self.acproval = Accapproval(driver)
def __init__(self, driver): self.driver = driver self.getElem = getElement(driver) self.selectElem = selectElement(driver) self.frameElem = frameElement(driver) self.cmf = commonFun(driver) self.cnEn = cnEncode() self.comsuit = CommonSuiteData(self.driver) self.command = CommandRule(self.driver) self.tableElem = tableElement(driver) self.log = log() self.userElem = UserPage(self.driver) self.role = Role(driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.confReport = ConfReportPage(self.driver) self.optReport = OptReportPage(self.driver) self.tableElem = tableElement(self.driver) self.selectElem = selectElement(driver) self.dataFile = dataFileName() self.frameElem = frameElement(self.driver) self.loginFun = loginPage(self.driver) self.commonSuite = CommonSuiteData(self.driver) self.authElem = AuthorizationPage(self.driver)
def __init__(self,driver): self.driver = driver self.log = log() self.cmf = commonFun(driver) self.getElem = getElement(driver) self.cnEnde = cnEncode() self.userElem = UserPage(driver) self.systemLog = SystemLogPage(self.driver) self.auditLog = AuditLogPage(self.driver) self.systemLog = SystemLogPage(self.driver) self.tableElem = tableElement(self.driver) self.selectElem = selectElement(driver) self.dataFile = dataFileName() self.frameElem = frameElement(self.driver) self.resource = Resource(driver) self.commonSuite = CommonSuiteData(self.driver)
def __init__(self): self.log = log()
def __init__(self, driver): self.driver = driver self.log = log() self.envelopePage = EnvelopePage(driver) self.cmf = commonFun(driver) self.frameElem = frameElement(driver)
def __init__(self, driver): self.driver = driver self.log = log() self.mountpage = MountPage(driver) self.cmf = commonFun(driver) self.frameElem = frameElement(driver)
def __init__(self, driver): self.driver = driver self.getElem = getElement(driver) self.frameElem = frameElement(driver) self.log = log() self.cnEn = cnEncode()