# ApiTest **Repository Path**: OliStranch/api-test ## Basic Information - **Project Name**: ApiTest - **Description**: pytest制作的自动化测试框架 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-09 - **Last Updated**: 2024-01-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 一个接口自动化框架 用于医疗管理云平台的接口测试 [结合全后端项目【医疗管理云平台】使用] - https://gitee.com/OliStranch/open-his - https://gitee.com/OliStranch/open-his-ui ### 生成Allure报告 1. 安装allure 2. 配置pytest.ini文件 [追加] ~~~ --alluredir ./report ~~~ 只需要在运行时添加该参数即可 可以在addopts运行参数中配置 ~~~ addopts = -vs --alluredir ./report ~~~ 或者采用pytest运行时添加参数 ~~~ pytest ~~~ 3. 输出报告 ~~~ pytest -vs --alluredir ./report ~~~ 该操作会运行当前项目,并生成报告,同时让allure开启一个web服务器用于输入网页版日志 运行报告 ~~~ allure serve ./report ~~~ 直接运行当前目录下的report的文件生成报告 YOU CAN ASK ME FOR EVERY QUESTION IF I COULD DEAL WITH, I HOPE WE CAN LEARN SOMETHING IN THIS PROCESS. BY OLI CONTACT ME AT 1243773994@qq.com