[英]How to create Step definition from BDD feature file in visual studio using WDIO
How to create step definition from BDD feature file using WDIO framework如何使用 WDIO 框架从 BDD 功能文件创建步骤定义
Scenario Outline: Verify the weatherForecast Application whether user can able to lunch the application for mentioned city
When I open the url http://localhost:3000/
Then I should be able to launch the application with header "Five Day Weather Forecast foreee"
When I enter the <cityName> for weatherForecast
Examples:
| cityName |
| aberdeen |
Did you check the official docs?你查过官方文档吗? They have really good boilerplate projects which will help in understanding the base setup.他们有非常好的样板项目,这将有助于理解基本设置。
https://webdriver.io/docs/boilerplate.html https://webdriver.io/docs/boilerplate.html
You should find some working examples, nothing else, check this repository: https://github.com/webdriverio/cucumber-boilerplate你应该找到一些工作示例,没有别的,检查这个存储库: https://github.com/webdriverio/cucumber-boilerplate
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.