1.本地CLI运行测试场景
(复制命令后本地cmd运行,用于生成详细的json报告。) 示例:apifox run https://api.apifox.cn/api/v1/projects/160018/api-test/ci-config/005140/detail?token=************ -r json,cli --verbose 2.脚本解析apifox-reports下的***.json文件 import json,pprint import uu import openpyxl import pandas import numpy as np from pandas import ExcelWriter (模块根据实际用到的进行删减,只作为参考,需自修改。) ex=pandas.DataFrame() ex.to_excel('csyl.xlsx') with open(r'D:\apifox-report.json', 'r',encoding='utf8') as fp: json_data = json.load(fp) eee = json_data['collection']['item'][0]['item'] for e in range(1, len(eee) - 1):