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();
}
}
I wrote a simple testcase, but when I try to Run Test using Visual Studio 2017, it shows this error message of Test discovery was cancelled after 30 s for executable. Can anyone help me about this?
Try this code example:
I think You are missing setup of driver.
try this example, hope it helps,