In BDD and Specflow video series, we will discuss on the concept of Behavioral Driven Development and working with Specflow.



  1. Anusha says:

    Hi Karthik,

    I have listened few of your videos on Selenium with C#. Very useful.
    Actually I have a question. I am new to automation. I got selenium task from my client.
    I have automated 3 scenarios using BDD specflow by going through some videos and tutorials.
    I would like to implement a framework in BDD with SpecFlow.
    Please explain how to do implement framework for BDD SpecFlow?

    Thank You!


  2. sravan says:

    Hi Karthik,

    I am new to C# but I would like to implement some selenium automation for my web application project. So could you tell which version of Visual Studio I could install in my personal PC to get some learning and I am only looking for free version if possible.

    Thank you

  3. Sundeep says:

    Hi Karthik,

    I have worked on Selenium with Java and had to work on a project with C#. I came across your site and its very helpful that its specialized in C#. Regarding Specflow, my understanding was that Specflow is similar to Cucumber and will be used with Selenium with C# for UI automation. However, I understand from few sites that Specflow can be independently used with C# without bringing Selenium into play. Is my understanding correct? I haven’t been able to figure out though I googled a lot so thought you’d be able to answer this for me. Thanks.


    • karthik KK says:

      Yes you are correct.

      If you want to do UI automation, then the API is Selenium or even Coded UI.

      But its not required that you need to use Selenium with Specflow, since Specflow is just a tool to perform BDD.

      Hope this answers your question !!!

      Karthik KK

      • Sundeep says:

        Thanks Karthik for your reply and it did answer my question.
        Are there any advantages of using CodedUI over Selenium or vice-versa? What are the differences between CodedUI and Selenium?

  4. Shaik says:

    Hi Karthik ,

    Can you please provide some sample examples for BDD testing using SpecFlow for Window Based applications, as all your examples are on only dummy data.

    So if you provide any sample window based examples it would be helpful.

    Thanks and Regards.

  5. Neha says:


    I want to automate cross platform applications using Specflow for one End to End scenario.

    Platforms include Java, WPF and Java webserivces.

    Please suggest if this is possible.


    • Karthik kk says:


      WPF and WebService – Coded UI Testing and specflow on the top of it.
      Java – I believe you are talking about the language used to build the application

      Unless until your UI is going to be just WPF and service is going to be web service, its still automatable.

      Karthik KK

  6. Vijender Malav says:

    Hi, I am able to connect and get the data(Test cases or Defects) from HP ALM using ALM Rest API in C# but facing issue while updating test run status(Passed or Failed) in test lab. I would be thankful for any help.

  7. Gopinath says:

    I have just gone through your videos on BDD specflow and i have tried to followed your steps , but for some reason I couldn’t see the tests on the Test explorer when I run from Test- windows-test explorer, could you please let me know if I am doing anything wrong

  8. Srikanth says:

    Hi karthik,

    I am trying to read the data from excel to the feature file(specflow),
    Do you have any solution for the above,please let me know .


  9. sushma says:

    Hi Karthik,

    When I click on Run All option present in the test explorer to execute all the automation scripts, VSTS was crashing bcz of this reason I am able to run 2 to 3 scripts at a time,Could you please provide solution how to run all the selenium scripts at time

    Using specflow and Nunit frame works.


    • Karthik kk says:

      Visual studio will never crash if you run all test same time, can you send me the exception thrown by visual studio 2015

  10. Ashish Mishra says:

    Hi Karthik,

    I have this big doubt, i mean there are stuffs and things that can be done by using C# coding and the same things are being done by Specflow. For example the way you have displayed use of Table can also be implemented by using plain C# code. my question is :
    Does spec flow provides some additional features/libraries that further simplifies our task or is there something more to it.

    • Karthik kk says:

      What do you mean further simplify ?

      Since Table class is already simple in Specflow, all you have to do is just call the methods provided by it

      Karthik KK

  11. Kojie says:

    Hi Karthik,
    Good day!
    I am new to automation testing, can you give me a list of your tutorial after I learn the Selenium Automation with C#? Like BDD and Specflow.

    Hope you will help me in my question, thanks and have a great day!


  12. sandy says:

    Hi Karthik,

    Planning to start API automation using C# with spec flow, Which framework is more opt for API automation, as well looking extensive report generation like (PDF format) and should execute in jenkins too.

    Am looking for ur valuable suggestion

    So far we were used soapui and pro for API automation

  13. Priyanka says:

    Hi Karthik,

    I am quite new to automation but with the help of your wonderful videos I have managed to create a test automation framework with BDD using Specflow and Coded UI. I am fetching the test data from an excel file but for now I am running the scenarios from visual studio itself.
    I want to keep the test case names in an excel and mention them as executable or not, and run the executable ones with the help of c# code because its difficult to select the scenarios from specflow feature files and run when I have a very large set.
    Could you please help me with this?

  14. Niraj says:

    Hi Karthik ,

    This article help me more. I have one doubt. How we can set the test case priority if they belongs from two different feature file. I have four test case . I need to run in the priority base in my framework. Could you please help me out?

  15. Mallesh says:


    I am basically .Net developer and I am asked to implement BDD for projects. I am new to Specflow and Selenium and I have watched some videos of BDD and Specflow from you. My understanding from that is, one should understand Selenium with C# before jumping to Specflow. Am I correct?

  16. PD says:

    We have a new project where we have to create BDD Automation Framework from scratch. Within the same project group, we already have Automation framework built using CodedUI and Specflow, and we are working on re-using the same.

    While we are working on re-using, we figured that Object Repository maintenance and SpecRun(Component of Specflow which contributes for BDD feature execution and reporting) Integration is bit of a challenge in CodedUI. To overcome this challenge we are thinking of using Selenium .Net. But we need to uncover challenges of Selenium .Net implementation. So, Selenium .Net or CodedUI for BDD? Could you please help us decide.

  17. umar says:

    OpenQA.Selenium.WebDriverException : A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL The status of the exception was KeepAliveFailure, and the message was: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
    —-> System.Net.WebException : The
    Problem occurs when tests run using TFS release nightly build

    I have tried upgrade all nuget packages with latest version then old chrome version but still getting problem

  18. Anindita Rudra says:

    Hi …I wanted to know what future prospects does leanFT and specflow has. Is leanFT used for desktop application? I didnt find much online tutorial for LeanFT.

Leave a Reply

Your email address will not be published. Required fields are marked *