Child pages
  • Automatic Integration Testing with Selenium
Skip to end of metadata
Go to start of metadata

Overview

Selenium has two components: Selenium IDE (a Firefox add-on that does simple record-and-playback of interactions with the browsers) and Selenium WebDriver (an api that operates on web browsers).

We will be using Selenium WebDriver to create robust test scripts for regression functional testing.

The first cut of the project emory-test-selenium is now in subversion at emoryoit/project/emory-test-selenium. The idea is that we can have one folder/directory inside this project per project testing (For example, to for test WebEase web application, we can put all testing codes inside the test/edu/emory/oit/webease folder).  Then, developers or quality assurance personnel can run testing code through either eclispe or ant scripts. 

Code base at subversion is at https://svn.service.emory.edu:8443/cgi-bin/viewvc.cgi/emoryoit/project/emory-test-selenium/

Examples

To run the test

1) check out the emory-test-selenium project from subversion

2) open the project with Eclipse IDE

3) run individual class file as junit tests

gwtsample

jmssend

webease

 

Skills

Java, Junit

Html, xpath

One suggestion/comment about emory-webease-webapp is that if we can have more id or name attribute inside html element.  That way, it would be easier to find that element for testing.  Currently, testing for webease is mostly by using xpath to find html elements.

How to Create Selenium Test for Other Projects

1) check out the emory-test-selenium project form subversion

2) create a new package following the WebEase example

3) create appropriate junit test following the above examples

Reference

http://seleniumhq.org/

  • No labels