如何使用 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 |
你检查过官方文档吗?他们有非常好的样板项目,这将有助于理解基本设置。
https://webdriver.io/docs/boilerplate.html
你应该找到一些工作示例,没有别的,检查这个存储库: https://github.com/webdriverio/cucumber-boilerplate