{"id":20469925,"url":"https://github.com/budali/unittest","last_synced_at":"2026-04-20T07:31:30.679Z","repository":{"id":113834216,"uuid":"203495523","full_name":"budaLi/Unittest","owner":"budaLi","description":"自动化测试","archived":false,"fork":false,"pushed_at":"2020-08-11T03:16:36.000Z","size":559,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T01:55:26.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/budaLi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-21T03:03:18.000Z","updated_at":"2020-08-11T03:16:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d8563ad-5115-4a95-bd5a-ca7fe8633cab","html_url":"https://github.com/budaLi/Unittest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/budaLi%2FUnittest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/budaLi%2FUnittest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/budaLi%2FUnittest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/budaLi%2FUnittest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/budaLi","download_url":"https://codeload.github.com/budaLi/Unittest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242032154,"owners_count":20060728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T14:10:55.664Z","updated_at":"2025-12-06T07:02:20.950Z","avatar_url":"https://github.com/budaLi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 使用说明 \n\u003e本项目只需使用MyAutoTest目录。其余文件可自行删除。\n\u003e### 项目环境\n\u003e1.python环境 python 3.x\n\n\u003e2.其他依赖包 在req.txt中 可使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r req.txt下载依赖\n\n\u003e3.目录结构如下 \n\n![](https://github.com/budaLi/Unittest/blob/master/1.png)\n\n\n\u003e### 项目说明 \n\n\u003e1. Excel目录  存放Excel测试文件及生成结果的Exel\n\n\u003e2. Image目录  存在无关照片 \n  \n\u003e3. templete目录 为特殊接口类生成数据模板 登录接口单独提出\n\n\u003e4. TestMain目录 \n\n\u003e4.1    test_data_config.py 测试用例Excel读取配置 \n\n\u003e4.2    res_data_config.py 测试结果Excel读取配置 \n\n\u003e4.3    operationExcel.py 操作Excel封装\n\n\u003e4.4    operationsJson.py  操作Json数据封装\n\n\u003e4.5    runmain.py   post和get请求封装\n\n\u003e4.6    dependData.py  测试依赖  \n\n\u003e4.7    sendEmail.py  发送邮件\n\n\u003e4.8    showTables.py 测试结果可视化 目前只有饼状图\n\n\u003e4.9    utils.py  工具类\n\n\u003e4.10   mockData.py 模拟数据\n\n\u003e4.11   headers.py  请求头生成\n\n\u003e### 基础流程\n\n\u003e 配置好依赖包后 在主文件中 输入 python run_test.py -f +测试用例所在文件夹目录 即可\n\n\u003e1.测试用例示图\n\n\u003e ![测试用例示图](https://github.com/budaLi/Unittest/blob/master/ceshi.png)\n\n\u003e2.测试结果示图\n\n\u003e ![测试结果示图](https://github.com/budaLi/Unittest/blob/master/res.png)\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbudali%2Funittest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbudali%2Funittest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbudali%2Funittest/lists"}