What is the best automated website UI testing framework [closed] What is the best automated website UI testing framework [closed] asp.net asp.net

What is the best automated website UI testing framework [closed]


I definitively recommend Selenium, you can use it from .NET, supports different browsers, works in automatic builds and CI processes (we use it from CCNet). The code is stable. It has a few quirks, but after all they all do.

Whichever tool you choose, I recommend making your own test facade class(es) around it. The facade should be designed to suite your concrete testing needs, without exposing too much the details of the testing tool's API. This will make the test code easier to write and maintain.

UPDATE: if you use ASP.NET view state in your app, you could have problems using a pure HTTP test tool. This is where browser-controllers (like Selenium) are much better.


WatiN

Automates FF and IE

[Test] public void SearchForWatiNOnGoogle(){ using (IE ie = new IE("http://www.google.com")) {  ie.TextField(Find.ByName("q")).TypeText("WatiN");  ie.Button(Find.ByName("btnG")).Click();  Assert.IsTrue(ie.ContainsText("WatiN")); }}

http://watin.sourceforge.net/


Watin is pretty unstable to use it in serious projects. It often fails with unexpected reasons like "EI is busy" or something like "Error with COM object". Selenium is much more stable and it already has a lot of supporting tools. For example Selenium GRID is a solution which allows significantly decrease run time of tests. (Our smoke tests on Watin takes 6 hours to run).