GithubHelp home page GithubHelp logo

hazelrunner / python3_interface Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pgsheng/python3_interface

1.0 1.0 0.0 41.73 MB

接口自动化测试框架——基于python3 + unittest + ddt + excel实现的一套框架

Python 99.65% Java 0.35%

python3_interface's Introduction

接口测试框架(基于python3 + unittest + ddt + excel实现的一套测试框架)

1.环境准备:

  • python3.7
  • requests
  • xlrd
  • openpyxl
  • HTMLTestRunner

2.目前实现的功能:

  • 封装requests请求方法
  • 封装excel表读取和写入方法
  • 在excel填写接口请求参数、断言判断等,运行完后,把结果写入excel
  • 用unittest+ddt+excel数据驱动模式执行
  • 使用HTMLTestRunner生成可视化的html报告
  • 可使用全局变量存储上个请求的结果是下个请求的参数,如token。
  • 封装Logger日志类
  • 实现通过邮箱发送测试报告功能

3.项目结构图:

python3_interface's People

Contributors

pgsheng avatar

Stargazers

 avatar

Watchers

James Cloos 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.