How to get name of the current test / spec / method / scenario with C# NUnit?

How to get name of the current test / spec / method / scenario with C# NUnit?

Hi Dipen!

To get name of the current test / spec / method / scenario with C# NUnit, you can use the below code snippet in your automation scripts.

{
     driver = new FirefoxDriver();
     driver.Url = test_url;
     driver.Manage().Window.Maximize();
     System.Threading.Thread.Sleep(2000);
}