Wiki source code of How to Selenium Test a D2W app

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

Show last authors
1 = How to Selenium Test a D2W app =
2
3 === Setup ===
4
5 1. Add the WebObjects ##ERSelenium## framework to your project build path Libraries.
6 1. Create the folder(s) ##Selenium/actions## in the project ##Resources## directory.
7 1. Place your Selenium tests in this folder
8 1. Enable the [[ERSelenium>>Project WONDER-Frameworks-ERSelenium]] test-runner by adding ##SeleniumTestsEnabled=true## to the ##Properties## file.
9
10 You will find an in depth explanation of creating Selenium tests for WebObjects [[here>>Project WONDER-Frameworks-ERSelenium]].
11
12 === Running Selenium Tests ===
13
14 Launch your application in D2W development mode (i.e with ##er.extensions.ERXApplication.developmentMode = false##).
15 Then click on //Run Test// link in your page menu:
16
17 [[image:RunTests.png||width="85"]]
18
19 Next you will see the test runner:
20
21 [[image:TestRunner.png||width="600"]]
22
23 You may run the entire suite of Selenium tests or run them individually by clicking on the buttons marked by the oval.