Selenium – Automation Tools for Web Application Testing

Selenium is a suite of tool to automate web application testing. Unlike the unit testing in backend application, it is hard to test user interface in frontend application. Thanks Selenium, it makes frontend testing much easier and fun.

Selenium are 3 sets of tools.

  1. Selenium IDE – A Firefox plugin to record and convert user actions into different programming language (Selenium tests)
  2. Selenium Remote Control – Help you to automate the frontend testing by providing the following components
    • Selenium-RC client library – Libraries/API for writing Selenium tests
    • Selenium Server – Run the Selenium tests in browsers
  3. Selenium Grid – A hub to control multiple Selenium Remote Controls for Selenium tests

 

Thanks Selenium, developers can now use the Selenium IDE to record the user action in the browser and check if the correct view is rendered. These recorded testcases could be exported in different programming languages.

  • Java (TestNG)
  • Java (JUnit)
  • Groovy (JUnit)
  • C#
  • Perl
  • PHP
  • Python
  • Ruby (Test/Unit)
  • Ruby (RSpec)

 

It just like using Excel Marco to create VBA codes and then you can customize the codes into complete testcases with the Selenium-RC client library. The next thing is to integrate them into you application build.

And most importantly, Selenium is fully integrated with Maven.

For more Selenium information, you can go the the Selenium Official Site.

That’s all. I will show you how to integrate the Selenium tests into the Maven build later.
 

Done =)

About these ads

2 thoughts on “Selenium – Automation Tools for Web Application Testing

  1. Peter Kehl

    Hi Ying Kit,

    Selenium IDE can do more now – with help of SeLite. It’s a framework for Selenium IDE that allows your test to access (read and write to) a test DB (isolated from the DB of the tested application).

    You may be even more interested in SeLite, since you use Drupal. SeLite is ideal for Drupal, because all Drupal text content is in DB. Also, Drupal 7 can work with SQLite DB, which is perfect for SeLite – so if your test deployment can use SQLite, your test data lifecycle would be very easy.

    See https://code.google.com/p/selite/wiki/ProjectHome and https://code.google.com/p/selite/wiki/DrupalTutorial.

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s