I want to have our Selenium tests to run automatically the same way as our other NUnit tests does. This means that I want to have the Selenium Server started automatically before running the test cases.
- I started by downloading the Selenium RC and unzipped it to C:SeleniumSelenium-RC
- I created a .NET
… Fortsätt läsa
I tried to run my WatiN tests in the test runner in SharpDevelop and got stuck on the following error:
System.Threading.ThreadStateException : The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer.
If you are running your tests with MBUnit you can add the following to your TestFixture:
[TestFixture(ApartmentState = ApartmentState.STA)]… Fortsätt läsa