Copied liberally from "cs.wlu.edu: Lab 6: Testing with Selenium"
Goals
After completing this lab, you should be able to
- Create and run test suites using Selenium.
Selenium
Installation in Firefox
- Go to Selenium's Home Page.
- Scroll down to where it says "To install Selenium-IDE into
firefox, go here".
- Select the two remote sites you just created and select "Finish".
- Download/Install version 1.0 Beta. You may need to give permission
to Selenium to allow a download/installation. Restart Firefox
Using Selenium with Firefox
In Firefox, under "Tools", select "Selenium IDE". (It may be an icon on the far right toolbar) You should get a
pop-up window that looks like this:

Here is a brief tour:
- You will create test cases, which are a series of events, by
having Selenium record what you do. You can then replay these test
cases. Typically, each test case will test some specific
functionality.
- Use your mouse to hover over the red button. It should say "Now
Recording. Click to stop recording."
- The green arrows are used to replay the test cases.
- You can choose to replay the test case as fast or slow as you
want.
- The commands that make up the test case are in the command
window. There are lots of different commands available. See
the Selenium Web Page for more information about the
available commands
Testing Login Functionality
Create test cases for your Login functionality.
- One test case will test the functionality when a user enters a
valid username and password. You should go to the
authentication page to verify too.
- One test case will test the functionality when a user enters an
invalid username and password. Again, go to the authentication page
as well.
- For each test case, verify the title of the response page using
the assertTitle command.
- Name the test cases appropriately.
Testing other functionality of your choosing
Create test cases for your functionality of interest.
- One test case will test ??
- One test case will test????.
- For each test case, verify something using
the assertNNNN command.
- Name the test cases appropriately.