目录 测试需求 实现思路 完整框架 2.1 初始化数据 (test_data.xlsx) 2.2 核心脚本 (api_client.py) 2.3 测试用例 (test_interfaces.py) 2.4 日志 (logging) 2.5 pytest配置文件 (pytest.ini) 2.6 测试报告 (pytest-html) 2.7 入口函数 (run_tests.py) 2.8 完整流程 注意事项 测试