GithubHelp home page GithubHelp logo

unittest's Introduction

使用说明

本项目只需使用MyAutoTest目录。其余文件可自行删除。

项目环境

1.python环境 python 3.x

2.其他依赖包 在req.txt中 可使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r req.txt下载依赖

3.目录结构如下

项目说明

  1. Excel目录 存放Excel测试文件及生成结果的Exel
  1. Image目录 存在无关照片
  1. templete目录 为特殊接口类生成数据模板 登录接口单独提出
  1. TestMain目录

4.1 test_data_config.py 测试用例Excel读取配置

4.2 res_data_config.py 测试结果Excel读取配置

4.3 operationExcel.py 操作Excel封装

4.4 operationsJson.py 操作Json数据封装

4.5 runmain.py post和get请求封装

4.6 dependData.py 测试依赖

4.7 sendEmail.py 发送邮件

4.8 showTables.py 测试结果可视化 目前只有饼状图

4.9 utils.py 工具类

4.10 mockData.py 模拟数据

4.11 headers.py 请求头生成

基础流程

配置好依赖包后 在主文件中 输入 python run_test.py -f +测试用例所在文件夹目录 即可

1.测试用例示图

测试用例示图

2.测试结果示图

测试结果示图

unittest's People

Contributors

budali avatar

Stargazers

yuanhao avatar  avatar 洗象 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.