#15 - Understanding NUnit to write effective Selenium C# Tests⚡️

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2024
  • In this 15th instalment of our ongoing video series focused on Selenium with C# .NET, we will discuss understand the most use test framework in .NET which is NUnit. We will try to understand how [Attributes] in NUnit makes our life much easier with to write effective tests with NUnit
    In this video we will discuss, how we can
    → What NUnit is
    → Understanding different [Attributes]
    → Working with [Setup], [Test] and [TearDown] attributes
    → Cleanup our test with NUnit
    ► Entire Course is available in Udemy www.udemy.com/course/selenium...
    ➜ Earlier video of this video: • #14 - Using Selenium I...
    ► Use Coupon code EA_JAN_2024 in all my Udemy courses to avail huge discount
    ➜ Here is the full playlist of this video: • Selenium with C# .NET ...
    ➜ Advanced Course available in Udemy with latest discount coupon codes
    ► [Advanced Framework development Course in Selenium] www.udemy.com/course/framewor...
    ► [ Course in Udemy] www.udemy.com/course/framewor...
    ► [ E2E Testing with Cypress] www.udemy.com/course/e2e-cypr...
    #selenium #executeautomation #csharp #dotnet
    For more articles and videos, please follow
    ► [ExecuteAutomation] executeautomation.com
    ► [Twitter] @executeauto
    ► [Subscribe] @Execute Automation
    ► [Udemy] www.udemy.com/user/karthik-kk/
    ► [XUnit with Selenium] • XUnit with Selenium
    ► [Git Basics] • Git Basics - Everyday ...
    ► [SpringBoot for Testing] • Spring Boot for Automa...
    Selenium and C#
    ******************
    ► [C# for automation testing] • C# for Automation Testing
    ► [Selenium with C#] • Introduction to Seleni...
    ► [BDD with Specflow] • BDD and Specflow
    ► [BDD with Selenium] • BDD with Selenium and ...
    ► [Selenium .NET Core] • Playlist
    Selenium &Java
    ******************
    ► [Cucumber with Selenium] • Section 1 - Cucumber w...
    ► [Cucumber with Selenium] • Section 2 - Cucumber W...
    ► [Cucumber 4 Upgrade] • Section 3 - Upgrade to...
    ► [Selenium Grid] • Selenium Grid
    ► [Selenium framework development] • Selenium Framework Des...
    ► [Selenium 4] • Selenium 4
    ► [Selenium Grid with Docker] • Selenium Grid with Docker
    CI/CD with Microsoft Technologies
    *************************************
    ► [Azure DevOps Service] • Azure DevOps Service 2019
    ► [Automated Build deployment] • Automated Build+Deploy...
    ► [Build + Deploy + Test with Jenkins] • Build+Deploy+Test with...
    Docker & Kubernetes
    ************************
    ► [Understanding ABC of Docker] • Understanding ABC of D...
    ► [Understanding Docker for Windows] • Understanding Docker f...
    ► [Selenium Grid with Docker] • Selenium Grid with Docker
    ► [Kubernetes for Testers] • Kubernetes for Testers
    Mobile Testing
    ****************
    ► [Understanding Appium] • Introduction to Appium...
    ► [Appium with C#] • Introduction to Appium...
    ► [Appium with Java] • Setting stage ready fo...
    ► [Appium with C# (Advanced)] • Introduction to Appium...
    ► [Appium Framework development] • Introduction to appium...
    ► [Mobile Automation testing with Xamarin.UITesting] • Part 1 - Introduction ...
    ► [Android automation with Robotium] • Part1 - Introduction t...
    ► [Flutter app automation with Flutter Driver] • Part 1 - Introduction,...

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

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

    I need one session on popup window how to close it once it is loaded

  • @DYOS666
    @DYOS666 3 หลายเดือนก่อน

    Hi Karthik, thanks for the material, is awesome!
    I have an issue, ´_driver´ at the private IWebDriver it says: "NUnit1032: The field _driver should be Disposed in a method annotated with [TearDownAttribute]" the interesting thing is that I already added that attribute at the end with the correct disposal: _driver.Quit();
    The test is running without issues but still the _driver is highlighted 🤔

    • @DYOS666
      @DYOS666 3 หลายเดือนก่อน

      Have fixed the issue! looking at your DotNetSelenium.csproj I noticed you were using different versions of PackageReference than the ones I was using, I updated all of them to match your versions and it fixed the issue somehow, however the test execution was really slow, so I move back the versions to the ones I was having in the first place and then I tried one by one in order to determine which one was causing the issue, I figured out that it was the NUnit.Analyzers, I was using version 3.9.0 and you are using the 3.6.1. So that's it, after doing this the error on _driver was cleared and the test execution is running like normal.
      In conclusion: Bug detected on the Nunit.Analyzers version 3.9.0, workaround is to use previous version.
      UPDATE: Test execution is running very slow sometimes and sometimes is quick..
      UPDATE2: If I update all NUnit package reference to the versions you are using then the tests are executed faster all the times

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

      Having the same issue at NUnit Analyzer 4.2.0 aswell.