摘要: 1. config 配置文件的目录 config.ini 配置文件 globalconfig.py 获得日志路径,测试用例路径,测试报告路径,测试数据路径等。 __init__.py 2. data 测试数据 TestData 测试数据路径 TestData.xlsx 3. log 日志 log.p 阅读全文
posted @ 2020-07-04 22:48 静惜 阅读(23) 评论(0) 推荐(0)
摘要: import logginglogLevelDict = { 1:logging.DEBUG, 2:logging.INFO, 3:logging.WARNING, 4:logging.ERROR, 5:logging.CRITICAL}class Logger: def __init__(self 阅读全文
posted @ 2020-07-04 22:33 静惜 阅读(131) 评论(0) 推荐(0)
摘要: import configparserclass GetConfig(): def __init__(self,file): self.cf = configparser.ConfigParser() self.cf.read(file) def getConfigValue(self,sectio 阅读全文
posted @ 2020-07-04 22:21 静惜 阅读(156) 评论(0) 推荐(0)
摘要: import xlrdclass ReadExcel: def __init__(self,filename,sheetname): self.workbook = xlrd.open_workbook(filename) self.sheetname = self.workbook.sheet_b 阅读全文
posted @ 2020-07-04 21:51 静惜 阅读(139) 评论(0) 推荐(0)