Selenium Introduction

Last modified by Ray Kiddy on 2009/09/03 12:18

Introduction

Selenium is a versatile and power Application Functional Test tool. While Selenium tests can be created and executed using your FireFox browser, Project Wonder makes it easy to integrate Selenium testing into your own WebObjects application using the ERSelenium framework from Project Wonder. The advantage of this is that test tools do not have to be installed on non-development machines to run the tests. Also the tests are part of the project resources and thus ERSelenium usage for Selenium testing is most effective for WebObjects development teams who are using Subversion or something like that for source code management. Finally ERSelenium provides meta tags that allow you to extend your Selenium tests. The operation of ERSelenium test script meta tags is similar to the use of server side includes in html files in apache for example.

Finally Selenium is easy to set up and quick to develop tests for. It does not replace unit testing by a tool like JUnit or TestNG, but it does provide an easy entry into functionally testing your app. Everyone should have some kind of automated testing for their app, right?

Concepts

Review the following resources to get a good overview of the concepts of Selenium before you dive in.

http://www.openqa.org/selenium/

Neal Ford's NJFS presentation slides on Selenium

Read the following short sections of the Selenium documentation:

http://www.openqa.org/selenium-core/usage.html
http://www.openqa.org/selenium-rc/tutorial.html

Watch the short video on recording tests by using the Selenium IDE at:

http://wiki.openqa.org/display/SIDE/Recording+a+Test

See also: Selenium