Complete SpecFlow Selenium C# Tutorial | Learn SpecFlow in 40 Minutes | LambdaTest

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 46

  • @syedaislam8952
    @syedaislam8952 3 ปีที่แล้ว +3

    Waiting to get a video on SpecFlow Page Object Model as from 3.11 version of Selenium C# Bindings, Page Factory is deprecated!

    • @LambdaTest
      @LambdaTest  3 ปีที่แล้ว +1

      Hey Syeda,
      Glad that you are watching our videos and coming up with suggestions. We are in the process of creating new videos with Selenium 4. Will keep you posted

  • @naredlaanjani5850
    @naredlaanjani5850 2 ปีที่แล้ว +2

    Hi, can you do same testing in unit test project.. That mean can u pick unit test project and build specflow execution..

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว +1

      Hey Naredla, let us get back to you on this!

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว +1

      Naredla,
      There is no rule of thumb to use SpecFlow. However, our recommendation is to use BDD frameworks (like SpecFlow) to test out business (or domain level) requirements. The requirements purely depend on the project type.
      Having said that, you could still use SpecFlow for unit testing if the intent is to write unit tests that take the behavioral aspects (something offered by BDD) into consideration.
      You might also need to look into mocking SpecFlow’s ScenarioContext (in case required).
      Before closing, can you please share your use case so that we can help you further?

  • @sindug707
    @sindug707 2 ปีที่แล้ว +2

    Can we use this combination for WPF application. C# + selenium + spec flow.

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Sindu, let us get back to you on this

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Sindu, WPF applications are Client Applications that run on the Windows platform. Selenium Supports only Web-based Application Testing. However, you can still use Spec Flow as its help to Write BDD Scenarios.

  • @diyer9645
    @diyer9645 2 ปีที่แล้ว +2

    Tests are not displayed in the Test Explorer. I added NUnit3TestAdaptor, config file is updated with "MSTest" for unitTestProvider but still test is not getting displayed in the TE. Any thoughts on how I can get this working. Thanks

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว +1

      Hi Diyer, Let us get back to you on this

    • @diyer9645
      @diyer9645 2 ปีที่แล้ว

      Okay, thank you. Let me know. I tried lot of the suggestions from Stack Overflow but none of them worked for me.

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      @Diyer
      Can you try below points .
      1. Install MSTest TestAdapter
      2. Build the entire project once you add new Test .
      3. Check Test Methods are public
      4. Upgrade all NuGet packages

    • @diyer9645
      @diyer9645 2 ปีที่แล้ว +1

      @@LambdaTest figured out the issue, it is just that the Group Summary section in the Test Explorer was set wider than the Test details section. So I undocked the TE and opened full size then I could see the Test Details section on the side. So I had to dock it to the bottom to be able to see the Test Details section.
      Thank you for your help

  • @ramrio4898
    @ramrio4898 ปีที่แล้ว +1

    Can we install specflow in vs code?

    • @LambdaTest
      @LambdaTest  ปีที่แล้ว

      Hello,
      You can install SpecFlow in VS Code by installing the C# extension. Search for and install the SpecFlow for VS Code extension and configure SpecFlow to add the necessary dependencies to your project. Finally, write and run SpecFlow tests using the Gherkin syntax and appropriate test runner.

  • @jeelpatel7455
    @jeelpatel7455 ปีที่แล้ว +1

    Hey it's a good informative video. Just wondering about selenium 4.12 have you make any automation with 4.12 using lambda test ?

    • @LambdaTest
      @LambdaTest  ปีที่แล้ว +1

      Hi Jeel,
      Glad you liked the video :)
      While we currently support version 4.12 at LambdaTest, we are actively working on creating more content around it. In the meantime, you can explore our blog post on Selenium 4.11.0 here: www.lambdatest.com/blog/selenium-manager-in-selenium-4-11-0/. Additionally, @faisalkhatriqa (who frequently contributes to LamdaTest Blog) has created a video tutorial covering Selenium 4.12, which you can watch here: th-cam.com/video/uHLYoJmZxWc/w-d-xo.html.
      Since there are no changes in RemoteWebDriver, you can also try version 4.12.0 on LambdaTest.

    • @faisalkhatriqa
      @faisalkhatriqa ปีที่แล้ว +1

      Thanks @LambdaTest for sharing the video link..

    • @LambdaTest
      @LambdaTest  11 หลายเดือนก่อน

      You're welcome! Glad you found the video link helpful. If you have any questions or need further assistance, feel free to reach out. Happy learning!

  • @sonasona6
    @sonasona6 3 ปีที่แล้ว +1

    hi what is the local host vale given in the driver class please ..what should i give for my test ..could u please explain that

    • @LambdaTest
      @LambdaTest  3 ปีที่แล้ว

      Hi Sona,
      Can you elaborate more on your question?

    • @armanhatefi360
      @armanhatefi360 3 ปีที่แล้ว +1

      Hi Sona,
      If you mean the "localhost:4444/wd/hub" at minute 11:05 of the video, that is the url of the browser driver that is running on presenter's system. In the video, a few seconds right after that, you will see that he points to a powershell prompt window which shows it is running GeckoDriver service which is developed by FireFox. You can see more info on these URLs:
      www.selenium.dev/documentation/webdriver/getting_started/
      www.selenium.dev/documentation/webdriver/getting_started/install_drivers/

    • @sonasona6
      @sonasona6 3 ปีที่แล้ว

      @@armanhatefi360 thank you so much .. I will have a look at the powershell script .. thanks

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว +1

      @@armanhatefi360 Thanks for answering this

  • @Zealousk
    @Zealousk 2 ปีที่แล้ว

    Hi, I couldn't find the support document. Can you share it please?

    • @LambdaTest
      @LambdaTest  ปีที่แล้ว

      Hey there 👋🏻
      Please refer to the following link for LambdaTest support doc www.lambdatest.com/support/docs/specflow-with-selenium-running-specflow-automation-scripts-on-lambdatest-selenium-grid/

  • @ExecuteAutomation
    @ExecuteAutomation 3 ปีที่แล้ว +2

    Glad to see the video compiled pretty well !

    • @LambdaTest
      @LambdaTest  3 ปีที่แล้ว +1

      Thanks Karthik :)

  • @tanneruraviteja3312
    @tanneruraviteja3312 2 ปีที่แล้ว +2

    Hi, really great video. I have a doubt for the below one: in a web based application having 100 respondents each respondent have different ids. i have to run my test cases for all respondents using id which are listed in test data file. file consists of 100 respondent ids, using this file i have to select an id in backend and run the application. here i have to choose the id before the application launched. so, in this case can we use Before feature hook to access that file to select option in backend. is it possible for specflow hooks to access the data from file. Please provide answer for this🙏🙏🙏

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว +1

      Hi Tanneru, Let us get back to you on this

    • @tanneruraviteja3312
      @tanneruraviteja3312 2 ปีที่แล้ว +1

      @@LambdaTest waiting for your reply on this 🙏

  • @annonymus2579
    @annonymus2579 2 ปีที่แล้ว

    I followed your instructions to the letter, but there is no "generate step definitions" option in the contex menu when i right click anywhere in the feature file, any tips?

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hi Anno, Let us get back to you

    • @deceptivelysmallman
      @deceptivelysmallman 2 ปีที่แล้ว

      I just manually typed out what I could see on the screen. I'm using Visual Studio 2022, that might be why

    • @JeatBunkie
      @JeatBunkie ปีที่แล้ว

      You probably don’t have the specflow extension installed properly

    • @mahmoudhassan8577
      @mahmoudhassan8577 ปีที่แล้ว

      Me too I have same issue

  • @kikomachinexe9533
    @kikomachinexe9533 2 ปีที่แล้ว

    I am using a Mac and using visual studio 2022. I can't generate step definition because when i right click the editor, there is no option "Generate step definition".
    Anyone can help guys?

    • @LambdaTest
      @LambdaTest  2 ปีที่แล้ว

      Hey there,
      Can you try using the shortcut CTRL+SHIFT+Q

  • @seanh2409
    @seanh2409 ปีที่แล้ว +3

    Copy and pasting example code is not as informative as going through code and replacing things, and explaining what you are replacing and why. Anyone can go to a sample site and copy/paste code, but the value added here should be in explanation and showing why things are to be modified. I think this misses the mark in helping people understand why things are done, due to this.

    • @LambdaTest
      @LambdaTest  ปีที่แล้ว

      Hey Sean 👋🏻
      Thank you for taking the time to provide feedback on the video.
      We understand the importance of providing a detailed explanation of the code and the concepts involved.
      We will take your feedback into consideration and try to improve our future videos by providing more detailed explanations of the code including the changes and concepts involved.

  • @SpecFlowBDD
    @SpecFlowBDD 3 ปีที่แล้ว +3

    Great! :)

  • @pljjy2224
    @pljjy2224 ปีที่แล้ว +1

    14:13

    • @LambdaTest
      @LambdaTest  ปีที่แล้ว

      lambdatest.github.io/sample-todo-app/

    • @jeelpatel7455
      @jeelpatel7455 ปีที่แล้ว

      Hey have you tried in selenium 14.12?