Appium Python behave 自动化测试框架搭建(2) - behave 知识准备

  1. behave 知识准备
    BDD
    Behavior-driven development (or BDD) is an agile software development technique that encourages collaboration between developers, QA and non-technical or business participants in a software project.

behave uses tests written in a natural language style, backed up by Python code.
BDD是一个敏捷软件开发技术旨在鼓励开发人员,QA和非技术和商业合作者共同的努力
behave 用自然语言风格编写测试代码,基于Python语言

Gherkin
http://pythonhosted.org/behave/gherkin.html
example:
新建一个features/文件夹,创建一个文件example.feature
Scenario: Replaced items should be returned to stock
Given that a customer buys a blue garment
and I have two blue garments in stock
but I have no red garments in stock
and three black garments in stock.
When he returns the garment for a replacement in black,
then I should have three blue garments in stock
and no red garments in stock,
and two black garments in stock.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值