【问题标题】:How to create Step definition from BDD feature file in visual studio using WDIO如何使用 WDIO 从 Visual Studio 中的 BDD 功能文件创建步骤定义
【发布时间】:2020-06-06 09:24:30
【问题描述】:

如何使用 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  |

【问题讨论】:

  • 到目前为止您尝试过什么?您使用哪个 IDE?您为 IDE 安装了哪些插件?

标签: javascript cucumber bdd webdriver-io wdio-v5


【解决方案1】:

您查看过官方文档吗?他们有非常好的样板项目,这将有助于理解基本设置。

https://webdriver.io/docs/boilerplate.html

【讨论】:

    【解决方案2】:

    您应该找到一些工作示例,仅此而已,请检查此存储库: https://github.com/webdriverio/cucumber-boilerplate

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-22
      • 1970-01-01
      • 2015-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-27
      相关资源
      最近更新 更多