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.
- Selenium IDE – A Firefox plugin to record and convert user actions into different programming language (Selenium tests)
- 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
- 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 =)
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.
LikeLike
Hi Peter,
Thanks for your comment. If i have the chance to write test case for Drupal, i will definitely try the SeLite. =D
Kit
LikeLike