Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

What are the good automated web UI testing tools?

I want to be able to use it in the .Net world - but it doesn't have to written in .net.

Features such as a record mode, integration into build process\ continuous integration would be nice.

Im going to look at:

  • Watir
  • Selenium

Are there any others I should look at?

like image 665
Dan Avatar asked Apr 30 '09 08:04

Dan


People also ask

Which framework is used to automate UI testing for a web application?

Appium: Appium is the most popular test automation framework for testing mobile apps.


2 Answers

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.

like image 94
Igor Brejc Avatar answered Oct 04 '22 05:10

Igor Brejc


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/

like image 26
Chad Grant Avatar answered Oct 04 '22 05:10

Chad Grant