def __init__(self): configdata = ReadConfig.ReadConfig() self.db_ip = configdata.get_data('DATABASE', 'db_ip') self.db_port = configdata.get_data('DATABASE', 'db_port') self.db_username = configdata.get_data('DATABASE', 'db_username') self.db_password = configdata.get_data('DATABASE', 'db_password') self.db_dbname = configdata.get_data('DATABASE', 'db_dbname')
def __init__(self, casename=None): self.readconfighandle = ReadConfig.ReadConfig() self.version = self.readconfighandle.get_data('INTERFACE', 'version_num') self.formatconversionhandle = FormatConversion.FormatConversion() self.readrelyjsonhandle = ReadJson.ReadJson('RelyOn', 'RELYON') self.readcasejsonhandle = ReadJson.ReadJson(casename, 'CASE')
def __init__(self): readconfighandle = ReadConfig.ReadConfig() self.url = readconfighandle.get_data('INTERFACE', 'url_app') self.version = readconfighandle.get_data('INTERFACE', 'version_num') self.systemtoken = readconfighandle.get_data('INTERFACE', 'system_token') self.formatconversionhandle = FormatConversion.FormatConversion() self.readheaderjsonhandle = ReadJson.ReadJson('Header', 'HEADER') self.readrelyjsonhandle = ReadJson.ReadJson('RelyOn', 'RELYON')
def __init__(self, casename=None): if casename is not None: self.casedata = ReadExcl.ReadExcl(casename).get_xls_next() readconfighandle = ReadConfig.ReadConfig() self.url = readconfighandle.get_data('INTERFACE', 'url_app') self.version = readconfighandle.get_data('INTERFACE', 'version_num') self.formatconversionhandle = FormatConversion.FormatConversion() self.readcasejsonhandle = ReadJson.ReadJson(casename) self.readrelyjsonhandle = ReadJson.ReadJson('RelyOn', 'RELYON')
def __init__(self, ): self.configdata = ReadConfig.ReadConfig() self.msg = email.mime.multipart.MIMEMultipart() self.msg['from'] = self.configdata.get_data('EAMAIL', 'email_sendaddr') self.msg['to'] = self.configdata.get_data('EAMAIL', 'email_recipientaddrs') self.msg['subject'] = self.configdata.get_data('EAMAIL', 'email_subject') content = self.configdata.get_data('EAMAIL', 'email_content') txt = email.mime.text.MIMEText(content, 'plain', 'utf-8') self.msg.attach(txt)
def __init__(self): self.readenvjsonhandle = ReadJson.ReadJson('Env', 'ENV') self.readrelyjsonhandle = ReadJson.ReadJson('RelyOn', 'RELYON') self.readredishandle = ReadRedis.ReadRedis() self.readdbhandle = ReadDB.ReadDB() self.readconfighandle = ReadConfig.ReadConfig() self.version = self.readconfighandle.get_data('INTERFACE', 'version_num') self.formatconversionhandle = FormatConversion.FormatConversion() self.runmethodhandle = RunMain.RunMethod()
def __init__(self, casename=None): readconfighandle = ReadConfig.ReadConfig() self.url = readconfighandle.get_data('INTERFACE', 'url_app') self.version = readconfighandle.get_data('INTERFACE', 'version_num') self.formatconversionhandle = FormatConversion.FormatConversion() self.readreportjsonhandle = ReadJson.ReadJson(casename, 'REPORT') self.readcasejsonhandle = ReadJson.ReadJson(casename) self.readdbhandle = ReadDB.ReadDB() self.readredishandle = ReadRedis.ReadRedis() self.readrelyjsonhandle = ReadJson.ReadJson('RelyOn', 'RELYON')
def __init__(self): configdata = ReadConfig.ReadConfig() self.host = configdata.get_data('REDIS','redis_host') self.port = configdata.get_data('REDIS','redis_port')
def __init__(self): self.readconfighandle = ReadConfig.ReadConfig()