Git Product home page Git Product logo

pytest_interface's Introduction

基于pytest自动化测试框架

API:接口层,根据接口文档编写对应的维护单接口API,提供给测试用例层调用

common:公共服务层,用于放置一些公共方法,如统一加密方法、时间格式转换等

utils:配置层,用于放置一些数据库,host等配置

data:数据层,用于放置测试数据,或根据逻辑算法对数据进行前期准备,数据断言,提供给测试用例层作为接口层的入参进行接口调用

db:数据库层,用于编写sql等提供给测试用例层调用或者断言

test_suitus:测试用例集层,内部会有不同业务线的测试用例层,编写测试用例逻辑,调用API层,进行接口流程自动化测试,并真的测试预期结果进行断言

备注:推荐使用pytest单元测试框架+jenkins持续集成+allure报告,教程见:https://www.jianshu.com/p/200601e444a8

pytest_interface's People

Contributors

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