Giter Club home page Giter Club logo

interface-automation-test's Introduction

Interface-Automation-Test

基于python requests + unittest 实现的接口自动化测试脚本
技术栈:python 3.7 + requests + unittest

依赖库:
pip3 install requests==2.6.0
pip3 install xlrd==1.1.0
pip3 install XlsxWriter
pip3 install pandas

实现功能:
1.在excel中编写测试用例,自动执行测试用例,自动生成测试报告;
2.token(令牌)自动认证,开始输入账号和密码,将自动获取token,后续请求需要token的地方将自动填充;
3.多excel支持。

使用方式:
1.将一个或n个测试用例文件放在cases目录下,测试用例扩展名为.xlsx;
2.执行runner.py;
3.自动执行测试;
4.最后在report目录下生成 n+1 个测试报告。包括一个聚合报告和n个以cases目录下用例excel名为基础的分类报告。

项目目录结构:
image
用例填写说明:
image image
报告说明:
image image image
执行控制台输出:
image
token(令牌)获取: image
升级日志:
image 项目目录结构:
image

interface-automation-test's People

Contributors

yzqyfly avatar

Watchers

 avatar

Forkers

gaojk

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.