Example #1
0
 def __init__(self):
     '''初始化'''
     datafile = os.path.join(data_path, 'Data_API.xlsx')  # 定位数据文件
     self.readexcel = ExcelReadTools(datafile)
     self.req = RequestTools()
     self.log = LogTools()
     self.db = DataBaseTools()
Example #2
0
 def __init__(self, reportname=None):
     '''初始化'''
     datafile = os.path.join(data_path, 'Data_API.xlsx')  #定位API数据文件
     self.readexcel = ExcelReadTools(datafile)
     self.writeexcel = ExcelWriteTools(reportname)
     self.req = RequestTools()
     self.log = LogTools()
 def setUpClass(self):
     self.log = LogTools()
     self.yaml = YamlTools()
     self.req = RequestTools()
     self.db = DataBaseTools()
     self.log.info(
         '>>>>>>>>>>>>>>>>>>>>>[ZC_api_start]<<<<<<<<<<<<<<<<<<<<')
 def setUp(self):
     self.log = LogTools()
     self.yaml = YamlTools()
     self.req = RequestTools()
     self.db = DataBaseTools()
     self.api = CommonApiTools()
     self.log.info(
         '>>>>>>>>>>>>>>>>>>>>>[ResCode_api_start]<<<<<<<<<<<<<<<<<<<<')
Example #5
0
 def setUpClass(self):
     self.log = LogTools()
     self.yaml = YamlTools()
     self.req = RequestTools()
     self.db = DataBaseTools()
     self.api = CommonApiTools()
     self.api.login_api_pwd()  # 密码登陆
     self.log.info('>>>>>>>>>>>>>>>>>>>>>[PDDT_api_start]<<<<<<<<<<<<<<<<<<<<')
 def setUpClass(self):
     self.exceltest = ExcelDDTTools()
     self.db = DataBaseTools()
     self.log = LogTools()
     self.log.info('>>>>>>>>>>>>>>>>>>>>>[DL_api_abnl_start]<<<<<<<<<<<<<<<<<<<<')
Example #7
0
 def setUpClass(self):
     self.exceltest = ExcelDDTTools()
     self.log = LogTools()
     self.log.info('>>>>>>>>>>>>>>>>>>>>>[PDDT_api_abnl_start]<<<<<<<<<<<<<<<<<<<<')
 def setUpClass(self):
     self.log=LogTools()
     self.yaml=YamlTools()
     self.req=RequestTools()
     self.log.info('>>>>>>>>>>>>>>>>>>>>>[XTPZ_api_start]<<<<<<<<<<<<<<<<<<<<')
 def setUp(self):
     self.log = LogTools()
     self.yaml = YamlTools()
     self.req = RequestTools()
     self.db = DataBaseTools()
     self.api = CommonApiTools()