The type or namespace name 'NUnit' could not be found

If you are new to selenium rc/ selenium webdriver and when you run your code you may see these types of errors

The type or namespace name 'NUnit' could not be found.

The type or namespace name 'TestFixture' could not be found

The type or namespace name 'ISelenium' could not be found

The type or namespace name 'SetUpAttribute' could not be found

If you are getting the above errors, It means you have not added required dll's to your project.

So add the following dll's to your project

nmock.dll
nunit.core.dll
nunit. framework.dll
ThoughtWorks.Selenium.Core.dll
ThoughtWorks.Selenium.IntegrationTests.dll and
ThoughtWorks.Selenium.UnitTests.dll

To add the above dll's --> right click on reference in the solution explorer and select add reference and browse for the required dll.

The NUNIT dll's can be downloaded from the NUNIT website. http://www.nunit.org/index.php?p=download

And the dll's related to selenium can be downloaded from http://docs.seleniumhq.org/download/


Hope this post helps you.

For more posts related to selenium rc/selenium Webdriver See this : Selenium RC/ Selenium Webdriver


No comments:

Post a Comment