Http://www.yiibai.com/jenkins/jenkins_automated_testing.html#article-start
A fundamental principle of continuous integration is that the build should be verifiable. You must be able to objectively determine whether a particular build is ready for the next stage of the build process, and the most convenient way to do this is to use automated testing. Without proper automated testing, you will find that you have to keep many manually generated artifacts, which is almost continuous integration testing. The following example shows how to run an automated Web test using selenium. 1th Step-Enter the admin plugin.
2nd Step-Locate the Hudson Selenium plugin and select Install. Restart the Jenkins instance.
3rd Step-Go to configuration system.
4th Step-Configure the Selenium server jar and click the Save button.
Note-Selenium jar file can be downloaded SELENIUMHQ: Click on the standalone server to download Selenium.
5th Step-Return to the dashboard and click the Configure (Configure) option HelloWorld Project.
6th Step-click the Add build step and select the "Seleniumhq htmlsuite Run" option.
7th Step-Add the necessary details to the selenium test. Here, Suitefile is using the Selenium IDE to generate the Testsuite. Click Save and perform the build. The post-build will now start the selenium driver and perform an HTML test.