Version 38.1 by Ravi Mendis on 2009/10/14 18:24

Show last authors
1 = How to test a Diva app with Selenium =
2
3 In a 100% ajax world it becomes more than necessary to maintain a set of tests for your application.
4 Here's how to get started with Selenium testing a Diva app.
5
6 === Setup ===
7
8 1. Add the WebObjects ##ERSelenium## framework to your project build path Libraries.
9 1. Create the folder ##Selenium## in the project ##Resources## directory.
10 1. Place your Selenium tests in this folder
11 1. Enable the [[ERSelenium>>Project WONDER-Frameworks-ERSelenium]] test-runner by adding ##SeleniumTestsEnabled=true## to the command-line arguments of the app (or to the ##Properties## file).
12
13 You will find an in depth explanation of creating Selenium tests for WebObjects [[here>>Project WONDER-Frameworks-ERSelenium]].
14
15 {{info title="Note"}}
16
17 The semantically rich markup of [ERDivaLook|ERDivaLook] makes it *easy* to write *maintainable* Selenium tests
18
19 {{/info}}
20
21 === Running Selenium Tests ===
22
23 Launch your application in development mode (i.e with ##er.extensions.ERXApplication.developmentMode=true##).
24 Then click on //Run Test// link in your page menu:
25
26 [[image:RunTests.png||width="85"]]
27
28 Next you will see the [[ERSelenium>>Project WONDER-Frameworks-ERSelenium]] test runner:
29
30 [[image:TestRunner.png||width="600"]]
31
32 You may run the entire suite of Selenium tests or run them individually by clicking on the buttons marked by the oval.
33
34 See also: [[WO:Selenium]]