
Topics
- Behavioral Driven Development Introduction
- Gherkin Syntax Introduction (Part 1)
- Gherkin Syntax Introduction (Part 2)
- Specflow Introduction
- Specflow – Understanding features and Step Definitions
- Specflow – Understanding and working with Scenarios
- Specflow – Working with multiple data using Tables
- Specflow – Working with Scenario Outline
- Specflow – Understanding Scenario Context
- Specflow – Working with Tables using Assist.Dynamics
- Specflow – Understanding specflow bindings in detail
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!
Regards,
Anusha
Hi Anusha,
I think you can go through some of the vidoes available in Selenium Framework Design and development videos from this playlist https://www.youtube.com/playlist?list=PL6tu16kXT9PqKSouJUV6sRVgmcKs-VCqo
But the tutorial is in Java, but you can still get an idea.
Thanks,
Karthik KK
Hi Karthik,
I would like to know if its possible to use fluent assertions in Specflow BDD. can you please give me some link to follow that.
thanks,
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
Sravan
Hi sravan,
You can use Visual studio 2012/2013 community edition, which is free.
https://www.visualstudio.com/en-us/products/free-developer-offers-vs.aspx
Thanks,
Karthik KK
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.
Regards,
Sundeep.
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 !!!
Thanks,
Karthik KK
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?
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.
The video series on Specflow is very useful. Can you please a documentation on the same with screen shots with few examples
Hi,
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.
Thanks,
Neha
Neha,
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.
Thanks,
Karthik KK
Neha, were you able to find an answer how to write given-when-then for webservices?
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.
I was wondering if there was any way to get ahold of the powerpoints used in the tutorials. Thanks.
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
Check out this video https://www.youtube.com/watch?v=o9cDrOc85Mc and comments on video you still does not works !!
I have seen the video and did the exact thing which you have done but still for some reason I still can’t see the test in the Test Explorer.
Please let me know the suggestion.
Can you try to use NUnit v2.6.0 instead of 3.0
Thanks,
Karthik KK
I have NUnit v2.60 installed .
I corrected that problem by installing an extra plugin, NUnit3TestAdapter from the NuGet(Rightclick on your Project and then click on the NuGet selection. Then search for NUnit3Testadapter .. jut do the same thing you did to install specFlow). After that, my Test Explorer started showing the TCs.
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 .
Thanks,
Sri
I have made a solution to this, I don’t know where to publish it.
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.
Thanks,
Sushma
Visual studio will never crash if you run all test same time, can you send me the exception thrown by visual studio 2015
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.
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
Thanks,
Karthik KK
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!
Regards,
Gian
If you want to learn something advanced you can learn from here
https://www.udemy.com/framework-development-with-selenium-csharp-advanced/?instructorPreviewMode=guest
If you want to learn only BDD, then here https://www.youtube.com/playlist?list=PL6tu16kXT9Pp3wrsaYyNRnK1QkvVv6qdI
Thanks,
Karthik KK
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
SoapUI is best if you are not fond of programming, but I would vote Visual Studio with C#, since its more customizable and you can be the king of your code.
Here is the course for FREE https://www.udemy.com/api_db_testing
Thanks,
Karthik KK
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?
Hi Priyanka,
Please watch this course for detail, since running specflow + coded UI need additional handlers to be written which is covered in course with greater detail https://www.udemy.com/framework-development-with-cuit/
Thanks,
Karthik KK
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?
Karthik,
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?
Exactly, since Specflow is the C# binding of Cucumber.
Thanks
Karthik KK
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.
Hi, can BDD be used with CodedUI & C# ? How ?
Yes, its available in this course already https://www.udemy.com/framework-development-with-cuit/
Thanks,
Karthik KK
OpenQA.Selenium.WebDriverException : A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://hub-cloud.browserstack.com/wd/hub/session/6a9462564325d212d46b32980d2f14252f1e8313/keys. 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
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.
Hi KK
I would like to buy your BDD course from Udemy;
https://www.udemy.com/bdd-with-specflow-and-selenium-csharp/
Could you please send me the discount voucher please? I will be great thankful for.
Regards,
Rizwana
Hi Rizwana,
Please check your inbox for discount.
Thanks,
Karthik KK
Hi Karthik
I am completely new to automation and My manager has told me to create a framework in selenium using C#. I have come across this BDD and Specflow and went through few videos. can i go ahead with a framework design using these videos as i don’t have any guide to clarify my doubts. so can i depend on these videos.
You can checkout the complete framework from here https://www.udemy.com/framework-development-with-selenium-csharp-advanced/
Please let me know if you are interested, I can share you the discount coupon code.
Thanks,
Karthik KK
Hello,
I use the same scenario in more tests and when I had to change something in the main scenario I had to change it manually in all my tests.
There is another option? (when I change in the main scenario the others to automatically updated, not manual)
Best regards,
Sabina
Hi
I have Created a Class Library and done my coding using specflow and selenium. In specflow have used few tags such as [BeforeScenario] and [AfterScenario].
I have Another Load test Project in the same solution and added the Class library in reference. added the code to call the specflow.cs file
When I debug the Load test, [BeforeScenario] and [AfterScenario] is not considered. Pls help if any solution.
Thanks in Advance
Hi Karthik,
Is there any possibility to setup Selenium Grid along with Selenium Specflow C#?
If yes then could you please share you have any detailed document or any videos.
Hi Karthik,
Is there any possibility to implement Selenium Grid along with Specflow C#?
If yes then could you please share the detailed steps or any videos?
Hi, I want to do performance testing of my Acceptance Test case written in c# with specflow. what is the best tool to go with.
Note : I am new to Automation but experienced programmer.
Like Jmeter or Taurus tools should also be capable of CI integration.
Hi Karthik,
I am looking to automate mainframe . Can I use spec flow framework for that? will it support?
Specflow works with any technology if the automation is built using C#, if not it cannot be be used.
thank you
Hi Karthik,
Is there any way to run the coded ui tests in test machines having:
1. No internet connection
2. No Visual studio
3. No Test Agent/Controller
Intention: Take the DLLs to the test machine and run test cases there. (How to invoke them??)
Please help.
Hi Karthik,
I am facing compilation errors while running simple specflow scenario .I am using visual studio 2015.Please suggest.
Error CS0111 Type ‘EnterPointScenariosFeature’ already defines a member called ‘FeatureSetup’ with the same parameter types
Error CS0111 Type ‘EnterPointScenariosFeature’ already defines a member called ‘TestInitialize’ with the same parameter types
Hi Karthik,
Your videos are nice. Even persons without any prior knowledge can understand from your videos. Could you please make a video on using autoit in selenium with c# in visualstudio/ how to upload files in web application using selenium with c# with out copying file path name
Hi Karthik,
I have seen your videos for BDD Specflow automation testing and these are awesome. Thanks much for posting these videos.
I have developed Specflow BDD framework using c#. Now I want to setup my framework for cross browser testing and parallel testing without using any licence tool like Browser Stack (I have an idea of Browser Stack but my client don’t want to use it).
Could you please tell me how we can do browser testing / parallel testing with specflow?
Can we use selenium grid? If yes then what setup is required? Or else can we do using powershell script?
It will be great help to me. Please find my details below.
Thanks in advance.
Hope you already got my email !
Hi
I had a hard situation in case of going forward with cucumber with java or Specflow with .Net
Right now we have a company framework for automating web application which was designed within java and cucumber but there is a discussion going on that “Looks like all their applications are written in .net and why don’t i go a head and use specFlow with .net so that developers can able to understand the code level and can able to understand if any errors come when i integrate with devops CI/CD in future” but the company’s framework was designed in java (cucumber) and within eclipse..
May i know the major difference between Cucumber and Specflow and what issues i might face if i go with SpecFlow
can i get some points on these situation so that i can able to convince them from java perspective
Thank You
Hi Karthik
I am trying to create my own docker file for windows 10 machine but unable to find any command to install UFT through powershell commands.
In docker file through choco install installing google chrome & nodejs set ups but I am struck at installing UFT in remote machine through any specific command.Can you help me with creating docker file for UFT installation?We cannot use the existing online container linux images due to security reasons just FYI.
In this below link->Need to install LeanFT_14.53_Windows_Setup.exe file – silent installation
https://www.microfocus.com/en-us/products/automated-continuous-testing-integration-delivery-tools/download/
Hi Karthik,
I wanted to automate desktop application, and heard the Leanft can be used to automating desktop applications.
I couldn’t find any courses related to Leanft, could you please help if you are aware of it.
Please check your inbox for discount coupon code
Thanks
Hi Kartik,
Is there any way to integrate some manual test case result in step defination and based on pass/fail result of manual test can automate next step.otherwise throw failure error.Any utility to intervene manual test case. As we cannot automate scenerios which require manual intervention of running.Like switching off the machine.
Please let me know if Specflow support this or not