How to Selenium Test a D2W app

Version 27.1 by Ravi Mendis on 2009/07/30 03:50

How to Selenium Test a D2W app

Setup

  1. Add the WebObjects ERSelenium framework to your project build path Libraries.
  2. Create the folder(s) Selenium/actions in the project Resources directory.
  3. Place your Selenium tests in this folder
  4. Enable the ERSelenium test-runner by adding SeleniumTestsEnabled=true to the Properties file.

You will find an in depth explanation of creating Selenium tests for WebObjects here.

Running Selenium Tests

Launch your application in D2W development mode (i.e with er.extensions.ERXApplication.developmentMode = false).
Then click on Run Test link in your page menu:

RunTests.png

Next you will see the test runner:

TestRunner.png

You may run the entire suite of Selenium tests or run them individually by clicking on the buttons marked by the oval.