How to create Step definition from BDD feature file in visual studio using WDIO

700 Views Asked by At

How to create step definition from BDD feature file using WDIO framework

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  |
2

There are 2 best solutions below

0
On

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

0
On

You should find some working examples, nothing else, check this repository: https://github.com/webdriverio/cucumber-boilerplate