Code Monkey home page Code Monkey logo

freeautotest's Introduction

freeAutoTest简介

这是一个接口自动化测试框架,整套框架由requests + unittest + ddt +pymysql + BeautifulReport模块组成, 测试用例在yaml文件中,支持数据驱动、连数据库查询。 目前框架已使用jenkins做集成,每天定时执行,并发送测试报告给项目组人员

环境配置

1、requests
2、ddt
3、pymysql
4、BeautifulReport
5、yaml

注意事项

需要把BeautifulReport文件夹放到python的lib文件site-packages下面

avatar

pip install -r requirements.txt 执行这个命令安装依赖包

实现的功能

1、数据驱动

2、接口依赖

3、连接数据库查询

4、自动生成测试报告

5、自动发送测试邮件

模块介绍

avatar

1、common 中主要放公共方法,操作数据库、读取配置文件、写token、发送邮件等

2、conf主要放配置文件、测试环境地址、数据库地址等在配置文件中

avatar

3 、testCase放每个接口的测试脚本,脚本以test开头

4、testReport放测试报告

5、yaml内放的是每个接口测试用例

avatar

6、run.py是测试用例运行入口

avatar

测试报告

avatar

点击查看,可以查看具体报错信息,方便定位问题

avatar

freeautotest's People

Contributors

shaoyan163 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.