简体   繁体   English

如何使用 WDIO 在 visual studio 中从 BDD 特征文件创建步骤定义

[英]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.

相关问题 如何在 VS 中从特征文件导航到步骤定义文件 - how to navigate from feature file to step definition file in VS 如何使用正则表达式将数据从特征文件传递到步骤定义文件? - How to pass data from the feature file to step definition file using regular expressions? 如果我使用 cypress-cucumber,是否必须为每个特征文件创建 Step definition 文件夹? - Do I have to create Step definition folder for each feature file if I am using cypress-cucumber? cypress cucumber - 如何识别调用步骤定义的功能文件? - cypress cucumber - How to identify the which feature file calling step definition? 如何在 Cypress 中编写场景大纲特征的步骤定义文件 - How to write step definition file of scenario outline feature in Cypress 重用功能文件中的变量(javascript,wdio,cucumber) - Reuse variables from feature file (javascript, wdio, cucumber) 如何为cucumber-js中的每个特征文件指定步骤定义文件? - How can I specify step definition file for each feature file in cucumber-js? 如何将功能文件与cucumber.js中的步骤定义相关联(黄瓜为javascript) - How to link feature file with step definition in cucumber.js (cucumber for javascript) 如何使用 WebStorm 在 TypeScript 而不是 JavaScript 中创建 Cucumber 步骤定义文件? - How can I use WebStorm to create a Cucumber step definition file in TypeScript instead of JavaScript? 使用来自 react 打字稿项目的 @wdio/sync - Using @wdio/sync from a react typescript project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM