def process_abot_test_result(file_path):
""" Process ABoT Result """
with open(file_path) as test_result:
data = json.load(test_result)
res = []
for tests in data:
tests = update_data(tests)
try:
flatten_steps = tests['elements'][0].pop('flatten_steps')
for steps in flatten_steps:
steps['result'] = steps['step_status']
res.append(steps)
except:
logging.error("Could not post data to ElasticSearch host")
raise
return res
评论列表
文章目录