A feature
file is an entry point to the Specflow test. This is
a file where you will describe your tests in Descriptive language (Like
English). It is an essential part of Specflow, as it serves as an
automation test script as well as live documents. A feature file can
contain a scenario or can contain many scenarios in a single feature file but
it usually contains a list of scenarios. Let’s create one such file.
Please follow
swagger document we used this to test api
https://petstore.swagger.io/v2/
Before moving
the head for writing the first script, let’s create a nice folder structure of
the project.
1)Create a new Folder by right click on the ‘Project ‘and navigating to Add -> New Folder
Once the folder for feature file is
created, we are good to go to create a feature file.
3) Create a Feature File
1) On the Feature Folder Right-click and navigate
to Add -> New Item…
2) Select Specflow Feature File in the middle
and give it a logical name, for the sake of this tutorial, please use the same
name ‘Users ‘referred in the below screenshot.
Comments
Post a Comment