Specflow, Gherkin

 Specflow is a BDD framework

- purpose of using Specflow is when you want to apply BDD methodology (because Selenium is not enough to implement BDD)

BDD

Behavior-driven development (BDD) is an agile software development methodology that focuses on collaboration and communication between developers, testers, and business stakeholders

Selenium is also a framework

NUnit is also a framework

In feature file part, will use Gherkin syntax to write test case (will only include human language test case)

Step definition will bridge the human language with the code

To use Specflow, need to install below NuGet packages


Creating a feature file: Folder > Add > New Item > Specflow




The tag can be used to tag the test case. Example, @positive / @smoke / @regression etc

What is Gherkin?

Given, When, Then - These are Gherkin syntax

Creating the step definition:





Comments

Popular posts from this blog

DevOps, Github

Test Automation tool, VS, selenium, Github, Gitbash