Saturday, October 12, 2019

Specflow in Automation Testing




                                         SpecFlow - Cucumber for .NET

What is Specflow?

Specflow is a testing framework supporting BDD practices in .NET framework. It’s an open source framework hosted on GitHub. It aids in using ATDD (Acceptance test driver development) for .NET Applications. With this, we can define scenario in plain English defined by Gherkin language that is clearly understandable by anyone.

Use SpecFlow to define, manage and automatically execute human-readable acceptance tests in .NET projects. Writing easily understandable tests is a cornerstone of the BDD paradigm and also helps build up a living documentation of your system.
SpecFlow is open source and provided under a BSD license. As part of the Cucumber Family, SpecFlow uses the official Gherkin parser and supports the .NET framework, Xamarin and Mono.

SpecFlow integrates with Visual Studio, but can be also used from the command line (e.g. on a build server). SpecFlow supports popular testing frameworks: MSTest v2, NUnit 3 and xUnit 2.
SpecFlow+ adds additional functionality to SpecFlow, such as Visual Studio Test Explorer integration, a dedicated test runner with advanced test execution options, execution reports (HTML, XML, JSON) and much more.


The essence in three easy steps


                                     SpecFlow - Binding Business Requirements to .NET Code


Spep 1: Specify

Describe the behavior of your system using human-readable syntax. Define specifications in the problem domain using the language of your stakeholders and build up a living documentation of your system

Step 2: Automate

Bind your test specifications to your application code to automate the testing of your system. Ensure that all your tests pass!

Step 3:  Enjoy!

Relax in the knowledge that SpecFlow will automatically identify breaking changes covered by your tests. Cut down on forensic development and enjoy the peace of mind that comes from knowing exactly what your software does and is supposed to do – even months later.




Ref: Specflow.org

No comments:

Post a Comment

WebService, API and their Difference

Web service (WS) A service offered by an electronic device to another electronic device, communicating with each other via the World W...