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 =)