Selenium for automating web application UI testing

Selenium is an open source software which provides the functionality of automation testing for web applications. It supports lot of languages. Developers can benefit this  just having following three components

  • Selenium Remote Controller (Selenium RC)
  • Selenium IDE
  • Testing  Framework according to your language (Nunit for .net/Junit for java etc..)

Selenium RC  can automatically launch and kill browsers and execute tests in them. Most interesting component out of above is “Selenium IDE” which comes as a plugin for firefox. Developers just need to load their application into firefox, start the plugin and do whatever actions. Selenium IDE will record those actions and create a test case. Next you can export this test case to one of following language

  • C#
  • Java
  • Perl
  • PHP
  • Python
  • Ruby

Next you need to add this test case to your project. Selenium RC comes with plugins for support these languages. Go to the place where you extracted Selenium RC and you will see several plugins folders. In the case of C#, inside the plugins folder you will find several dll files. In the case of Java, it is couple of jars.

You can find enough tutorials of adding Selenium tests to a specific language. I’m just giving here an overview. Enjoy the benefits of Selenium 🙂