Exemplo n.º 1
0
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),
    }
Exemplo n.º 2
0
	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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
	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()
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
 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)
Exemplo n.º 7
0
	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)
Exemplo n.º 8
0
 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)
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
	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)
Exemplo n.º 11
0
	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)
Exemplo n.º 12
0
	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()
Exemplo n.º 14
0
 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)
Exemplo n.º 15
0
 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)
Exemplo n.º 16
0
 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)
Exemplo n.º 17
0
 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)
Exemplo n.º 18
0
 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()
Exemplo n.º 19
0
 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()
Exemplo n.º 22
0
 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)
Exemplo n.º 23
0
	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)
Exemplo n.º 24
0
	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()
Exemplo n.º 25
0
 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)
Exemplo n.º 26
0
 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)
Exemplo n.º 27
0
 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)
Exemplo n.º 28
0
	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.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()
Exemplo n.º 30
0
 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)
Exemplo n.º 31
0
 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)
Exemplo n.º 32
0
 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()
Exemplo n.º 33
0
	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()
Exemplo n.º 34
0
 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)
Exemplo n.º 35
0
 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)
Exemplo n.º 36
0
	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()
Exemplo n.º 37
0
	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)
Exemplo n.º 38
0
 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)
Exemplo n.º 39
0
 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)
Exemplo n.º 40
0
 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)
Exemplo n.º 41
0
 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()
Exemplo n.º 42
0
 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()
Exemplo n.º 43
0
 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()
Exemplo n.º 44
0
 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)
Exemplo n.º 45
0
	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)
Exemplo n.º 46
0
	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)
Exemplo n.º 47
0
	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)
Exemplo n.º 48
0
	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()
Exemplo n.º 49
0
 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)
Exemplo n.º 50
0
	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)
Exemplo n.º 51
0
	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)
Exemplo n.º 52
0
	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)
Exemplo n.º 53
0
	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)
Exemplo n.º 54
0
	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)
Exemplo n.º 55
0
	def __init__(self):
		self.log = log()
Exemplo n.º 56
0
 def __init__(self, driver):
     self.driver = driver
     self.log = log()
     self.envelopePage = EnvelopePage(driver)
     self.cmf = commonFun(driver)
     self.frameElem = frameElement(driver)
Exemplo n.º 57
0
 def __init__(self, driver):
     self.driver = driver
     self.log = log()
     self.mountpage = MountPage(driver)
     self.cmf = commonFun(driver)
     self.frameElem = frameElement(driver)
Exemplo n.º 58
0
	def __init__(self, driver):
		self.driver = driver
		self.getElem = getElement(driver)
		self.frameElem = frameElement(driver)
		self.log = log()
		self.cnEn = cnEncode()