Giter VIP home page Giter VIP logo

hogwarts's Introduction

霍格沃茨项目实战

pytest测试实战(一)作业

  • 补全计算器(加减乘除)的测试用例

  • 使用数据驱动完成测试用例的自动生成

  • conftest.py中创建fixture 完成setup和teardown

  • 在调用测试方法之前打印【开始计算】,在调用测试方法之后打印【计算结束】

pytest测试实战(二)作业

  • 课后作业1

    • 使用参数化数据驱动,完成加减乘除测试用例的自动生成
    • 修改测试用例为check_开头,修改测试用例的执行规则,执行所有check_开头和test_开头的测试用例
  • 课后作业2

    • 控制测试用例顺序按照【加-减-乘-除】这个顺序执行,
    • 减法依赖加法, 除法依赖乘法
  • 课后作业3

    • 注册一个命令行参数env,env默认值是test,表示测试环境,另外还有两个值 (dev,st)不同的环境读取不同的数据。
  • 理解

    • 测试数据的数据驱动
    • 测试步骤的数据驱动
    • 思考应用场景

参考

霍格沃茨测试开发14期pytest直播课程

hogwarts's People

Contributors

captainji avatar

Stargazers

Contrarian.W avatar  avatar

Watchers

 avatar  avatar

Forkers

mahelin123

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.