Selenium Test using NUnit Framework

I have write a simple testcase as below

using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using NUnit.Framework;

namespace ToolsQA
{
class NUnitTest
{

IWebDriver driver;

[SetUp]
public void initialize()
{
driver = new FirefoxDriver();
}

[Test]
public void OpenAppTest()
{
driver.Url = “http://www.demoqa.com”;
}

[TearDown]
public void Endtest()
{
driver.Close();
}
}

}

 

but when i try to Run Test, it shows this error message of Test discovery was cancelled after 30 s for executable. Can anyone help me about this.

 

Thank You

Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.