Writing Test method using NUnit in Selenium C# -- Part 4 (Selenium automation with C#)

preview_player
Показать описание
In this part we will write a very simple NUnit test methods for running Selenium with C# tests. We will also use Setup and TearDown attributes to execute the tests.

To learn more from ExecuteAutomation, please subscribe and check out below playlists of FREE courses

Selenium and C#
**************

Selenium and Java
***************

API Testing
*********

CI/CD with Microsoft Technologies
****************************

Docker
******

Mobile Testing
*************

Рекомендации по теме
Комментарии
Автор

what a quality of content, this channel is a jewel. Thank you master for making knowledge available to everyone.

andergarcia
Автор

Karthik,
Your videos are amazing. Please keep up the great work. I have more than 10 years experience in SQA and am still hooked onto what you have to offer!

Mrfusionfan
Автор

Hi Karthik,
This is the best tutorial of all that I've ever seen.
Thank you so much for detail explanation.

bslava
Автор

Hey Karthik, videos are excellent and very well explained....Thanks.

suryak
Автор

Thank you Karthik. You made my day.previously I was with Java and eclipse.due to company need moved to visual studio.i had couple of issues in Munir which got solved

yashwantbeeram
Автор

Hi Kartik,

Awesome video thank you for your great effort.

VarinderSingh-zkyd
Автор

hi .. your videos are amazing .. thank you so much.. I followed your sample up to Part 4 ... where you separated all the code with NUNIT.. I added the reference and the using statement for NUNIT framework .. but some how is not running . no error with those [SetUp] .. attributes in place .. I step thru the code and looks like it stuck in the Main function ( which is empty ) .. really appreciated with any advice or comment. KH

mouseable
Автор

Okay for this to run in 2019 . You should add NuGet packages
1. Nunit.ConsoleRunner
2. Nunit3TestAdapter
3. Microsoft.Net.Test.sdk

monakarmi
Автор

Hi Karthik,
Thanks for such an informative video. Could you please share some videos/links on using Selenium C# with MS Unit tests instead of NUnit?

natashabatra
Автор

Hi, I like your videos. I am using VS 2015 community edition having the latest chrome, selenium and chrome web driver version. But, I am not able to run any test case. Can u tell me which version of selenium, chrome webDriver and NUnit should I use to make my code work?
Thanks in advance!

asthakhire
Автор

I faced the same Issue where no tests were displayed under Test Explorer, but Installing the NUnit 3 Test Adapter resolved this issue.

RammohanBanda
Автор

Thanks Katrik, i enjoy your videos very much. Can you explain how to reactivate the driver, as after we driver.close() the first test, the second test will not get any driver so the browser will not open

adamkeren
Автор

My 2nd test always fails. I get an "Invalid session id". My code looks just like yours so not sure what the issue is? I added the 2nd test just like you did at 7:00

vneckbmx
Автор

Okay for this to run in Visual Studio 2019 in a Console Application. You should add the below NuGet packages
1. Nunit.ConsoleRunner
2. Nunit3TestAdapter
3. Microsoft.Net.Test.sdk

ashwinireddy
Автор

I have some doubts Karthik.As I started journey with Java and eclipse automation learning from 6 months sudden change to c# visual studio so I started concentration on
1. C# basics initially I didn't see ur playlist now just I saw it.i was doing Dev person c# of some guy.but I will follow its from now on.
2. Selenium which is again urs
3. Bdd which is needed for our office needed. So started and did small program. I believe u also have Bdd .
What is ur suggestions
Fist I need to complete c# then selenium and finally Bdd using c#. Any more suggestions please add.what efforts needed to become good in c# selenium automation.

yashwantbeeram
Автор

Thank you sir or this awesome videos. Please kindly speak slowly so I can catch up well

RosalynAbankwah
Автор

Do you have a detailed video series for someone who is starting off with selenium in c#? I don't mind if its paid content but can you direct me to one. Much appreciated.

IndiPopMasala
Автор

Hi Karthik, I tried the tests using "UnitTestProject" instead of a console Application, the setup, test, and teardown attribute builds fine, but the test methods are not appearing in test explorer and my test failed. Pls help
(I added NUnit references to my UnitTestProject)

priyaravichandran
Автор

Great Work!!
Will you please let me know how I can send Selenium Reports(test results) through mail with selenium webdriver Nunit with C#..

Thank you in Advance!!

YogeshKumar-xmqy
Автор

hi there
instead of using Nunit as the framework for visual studio can we use TestNG for visual studio.

bcoleone
welcome to shbcf.ru