Tag Info

Hot answers tagged

6

As a general rule of thumb, everytime a test fails or has an indeterminate outcome it requires investigation. If you ignore a failing/indeterminate test then you increase the risk of missing or overlooking a bug. The value of automation is to execute tests that we deem important enough that we want to run them repeatitively, or tests that are executed more ...


4

You can create an Even listener: EventListeners (NUnit 2.4.4) Interface The extension object passed to Install must implement the EventListener interface: public interface EventListener { void RunStarted( string name, int testCount ); void RunFinished( TestResult result ); void RunFinished( Exception exception ); void ...


3

Is it possible to wrap around Selenium 2.0 WebDriver Test Cases with anything other than NUnit for C# code? Yes. Extending the user246’s answer, Selenium is just a library that allows you to manipulate with web pages. Unit Test Framework wraps your tests and helps you to run the tests and produce the test execution report with number of ...


3

Is NUnit a viable choice for a starting long term project these days? Yes because it is open source and even if there is no more further development for it you can use it and recomile it for a newer runtime. You can compare the maintanace situation with the log4net project that had very few updates in the last 5 years but is still the state of the art. ...


1

We also have same issue in our production monitoring automation suite. To solve this problem to some extent, whenever a test is failed it is marked as INTERMITTENT and same test is repeated for max. 3 times or until it is passed. If it is getting passed in any one of next repetition then issue is left as Intermittent and not alerted. If it is failing all the ...


1

I have a somewhat similar setup, however we decouple our non unit tests (Anything requiring an install to a server) from the typical unit tests which can run directly on the team city build server. In my solution we created a windows service polling team city for new builds via the rest API and when we find a new build we add it to the queue to execute our ...


1

The EventListener is the way to go. However there is a knack: the UnhandledException will not be fired when an Assertion in your test fails. Rather use the TestFinished event to handle failed tests: public void TestFinished(TestResult result) { if (result.Executed && result.IsFailure) { Console.WriteLine(string.Format("Failure in ...


1

it might help someone. As My mistake assuming that visual Nunit will show the test in test View but it will show tests by selecting View-> otherwindows-> Visual Nunit. Then It will display all your tests. Also If you want to see all you nunit tests in test View just like mstest then you have to install nunit for VS.


1

Typically people hook a continuous integration server up with selenium to provide a web interface. You can use Jenkins, it's open source, and can allow you to execute tests remotely, track success/failures, etc. Also try MbUnit/Gallio instead of nUnit, it provides a much more robust package to perform typical testing tasks, and includes better reporting ...


1

A few things to look at. Are you sure that the LinkText is correct? Are you missing spaces, non breaking spaces, etc that may appear in the html but you don't see as a user? Are you sure the xpath is correct? Is this a timing issue? Are you trying to find the elements before the page is finished loading or before those elements are loaded?


1

Yes. I’ve also used to think that NUnit is an old tool and tried to find more “modern” tool for unit tests. But I have found out that NUnit is that modern tool. In compare to MSTest, NUnit is more extended with testing features. NUnit provides better assert error logging. For instance, when you are using CollectionAssert.Contains from MSTest it will throw ...



Only top voted, non community-wiki answers of a minimum length are eligible