Arthur-Wu committed this file on 2024-11-25
This commit is contained in:
@ -44,3 +44,6 @@ class Common():
|
||||
return str(timestamp_milliseconds)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -98,8 +98,8 @@ class NotificationModule():
|
||||
"Debug": "7aedbee7239870e3e653748a2889d8bf063c61efa9213c7099bd57476066dc86",
|
||||
"Formal": "80b026022a28166cfc9eebaf8f6a880cc06f56a14b8803e8d67e7fb3cb05844e"
|
||||
}
|
||||
# self.urlInfo = datainfo["Domain"] + datainfo["Debug"]
|
||||
self.urlInfo = datainfo["Domain"] + datainfo["Formal"]
|
||||
self.urlInfo = datainfo["Domain"] + datainfo["Debug"]
|
||||
# self.urlInfo = datainfo["Domain"] + datainfo["Formal"]
|
||||
self.ReportUrl = ProCfgData["ReportsURL"]
|
||||
self.ExecutionEnvironment = ProCfgData["ExecutionEnv"]
|
||||
|
||||
|
@ -13,7 +13,20 @@ class YamlHandler():
|
||||
return yaml.load(f.read(), Loader=yaml.FullLoader)
|
||||
except Exception as e:
|
||||
print("ERROR: read yaml file error::".format(e))
|
||||
return 'failed to read avata autotest config file.'
|
||||
return 'failed to read config file.'
|
||||
|
||||
def read_some_yamls(self, YamlFilePathsList, encoding='utf-8'):
|
||||
try:
|
||||
result = []
|
||||
for YamlFilePath in YamlFilePathsList:
|
||||
with open(YamlFilePath, encoding=encoding) as f:
|
||||
data = yaml.load(f.read(), Loader=yaml.FullLoader)
|
||||
result.append(data)
|
||||
return result
|
||||
except Exception as e:
|
||||
print("ERROR: read some yaml files error::".format(e))
|
||||
return 'failed to read config file.'
|
||||
|
||||
|
||||
class ReadExcel(object):
|
||||
'''@Author:: Arthur Wu
|
||||
|
Reference in New Issue
Block a user