GithubHelp home page GithubHelp logo

yalehu / autotest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cnboysliber/autotest

0.0 0.0 0.0 668 KB

自动化接口测试框架,支持http协议,支持md5、rsa等对称加密和非对称加密方式,支持DNS自定义解析

Home Page: https://github.com/chengboliber/TestAuto

Shell 0.05% JavaScript 1.93% Python 43.67% CSS 0.83% HTML 53.52%

autotest's Introduction

自动化测试系统

平台技术:python + flask + mysql + redis + jquery + html实现的前后端分离框架 用例运行可批次化运行、单独运行,批次运行使用的是线程池方式 支持报表定时邮件发送指定人员

1.部署方式:

安装依赖包: pip install -r requirements.txt 线上环境配置:
默认启动即可(python AutoTest.py或uwsgi启动)

开发环境配置(可以pycharm设置里配置启动参数即可):
python AutoTest.py devel

2.支持测试内容:

目前只支持HTTP接口测试,可以对同一个域名自定义DNS解析,实现相同用例同时测试不同环境

3.用例中接口参数化设置

在接口中可以设置动态参数,配置规则是: 接口支持在URL/包头/json内容中自定义参数预留位,稍后在用例中可以为预留位指定参数值

方法为:使用${}将需要预定义参数的地方包裹起来

json例子:

{ "head":{ "a": 1, "param1": ${param1} }, "body": { "b": 2, "param2": ${param1} } }

其中param1及param2为需要替换的预留参数位, 使用${param1}以及${param2}代替

动态参数支持默认值设置,如上设置param1的默认值我们可以${param1==default}这样设置,default就是param1默认值

4.接口支持自定义加密方式:

如果测试的项目接口需要签名或者加密,可以在自动化项目代码中加入响应的加密算法,然后配置把加密方法名称配置到加密表格中
在定义接口时,就可配置对应的加密方式

autotest's People

Contributors

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