A feature file is a point of entry into the Specflow test. This is the file in which you will describe your tests in Descriptive language (Like English). It is an essential component of Specflow because it serves as both an automation test script and live documents. A scenario can be contained in a single feature file or multiple scenarios can be contained 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) Make a Feature File.
1) In the Feature Folder, right-click and select Add -> New Item...
2) In the middle, select Specflow Feature File and give it a logical name; for the purposes of this tutorial, please use the same name ‘Users' as shown in the screenshot below.
Refer the below Swagger document url
Comments
Post a Comment