Cucumber自学导航

Introduction | Cucumber 官方学习网站

一、基本概念了解

1、了解什么是cucumber ( 实现BDD的开源工具

2、了解什么是gerkin ( 让cucumber工具读得懂语言,告诉cucumber'做什么'

3、了解什么是step definition (让gerkin写的feature文件动起来,告诉cucumber '做的步骤,怎么做'

二、安装依赖

python环境

1、Unittest框架 : pip install Behave

unittest + cucumber 教程

2、Pytest框架 : pip install Pytest-BDD

pytest + cucumber 教程

js环境

1、Playwright框架 :

  • npm install --save-dev playwright-bdd
  • npm install --save-dev @cucumber/cucumber

playwright + cucumber 教程

三、Gerkin语法学习

四、step definition语法学习

五、执行命令

六、测试报告

相关推荐
xcLeigh14 分钟前
Python入门:Python3 requests模块全面学习教程
开发语言·python·学习·模块·python3·requests
xcLeigh15 分钟前
Python入门:Python3 statistics模块全面学习教程
开发语言·python·学习·模块·python3·statistics
YongCheng_Liang35 分钟前
从零开始学 Python:自动化 / 运维开发实战(核心库 + 3 大实战场景)
python·自动化·运维开发
鸽芷咕1 小时前
为什么越来越多开发者转向 CANN 仓库中的 Python 自动化方案?
python·microsoft·自动化·cann
秋邱1 小时前
用 Python 写出 C++ 的性能?用CANN中PyPTO 算子开发硬核上手指南
开发语言·c++·python
晚烛1 小时前
CANN + 物理信息神经网络(PINNs):求解偏微分方程的新范式
javascript·人工智能·flutter·html·零售
wazmlp0018873692 小时前
python第三次作业
开发语言·python
深蓝电商API2 小时前
住宅代理与数据中心代理在爬虫中的选择
爬虫·python
小迷糊的学习记录2 小时前
0.1 + 0.2 不等于 0.3
前端·javascript·面试
空&白3 小时前
vue暗黑模式
javascript·vue.js