Commit 588b4ac
committed
Big changeset here:
Features/fixes/changes:
- BaseAbstractTest - amended to as the config is now a singleton
- u.c.e.w.configuration.Configured* - added interface and implementations for each driver to allow us to use the grid configuration that comes from the config file and only to download the binaries if we're local
- ConfigurationLoader - removed some of the options for the builder so we can use it in the TestConfigManager singleton
- TestConfigManger - a singleton to make the configuration available anywhere and to only have one instance of it
- GridConfig - data model to represent the object in the config file
- RunType - enum for local or grid runs
- WebDriverConfig - some additiona fields for exception tolerance, grid, run type and generic test config
- ClickUtils - a tolerant click that handles the exceptions passed in the config file and retries once
- RadioButtonUtils - methods to select radio buttons by visible labels
- JavaScriptUtils - added method to handle running javascript on a specific WebElement
- WindowUtils - added scrollIntoView method (which uses new methods in JavaScriptUtils)
- SelectBoxUtils - making itemByIndex work not on 0 based numbers (so that the argument can be presented logically i.e. 1 instead of 0)
- WebDriverBuilder - refactored after the introduction of ConfgiuredDrivers and a TestConfigManager
- WebDriverListener - a few fixes for screenshots - found issue #13 here
- Dates - added a method for getting todays date
Test (see issue #7):
- Added more unit tests
- Added integration tests for browser driver loading locally - these tests are platorm dependant (mac or windows) because of the browsers. They depend on the browsers being installed
- Added integration test for the helper utilities
- Added a small sample web app that is embedded with jetty to allow us to have a sample HTML page to test the helper utilites in bad situations, this is still WIP, and is dependant on port 4442 being open.
Dependencies:
- Added jetty-server and jetty-servlet (probably need to remove jetty-servlet (see issue #14)
- Added surefire plugin to run integration tests - these can now be ran on `mvn verify`1 parent 81350a3 commit 588b4ac
File tree
44 files changed
+1029
-66
lines changed- src
- main/java/uk/co/evoco
- tests
- webdriver
- configuration
- driver
- utils
- data
- test
- java/uk/co/evoco/webdriver
- configuration
- driver
- utils
- resources
- fixtures
- www
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+1029
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
128 | 142 | | |
129 | 143 | | |
130 | 144 | | |
| |||
136 | 150 | | |
137 | 151 | | |
138 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
139 | 169 | | |
140 | 170 | | |
141 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 28 | + | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
| |||
41 | 36 | | |
42 | 37 | | |
43 | 38 | | |
44 | | - | |
| 39 | + | |
45 | 40 | | |
46 | | - | |
47 | 41 | | |
48 | 42 | | |
49 | | - | |
| 43 | + | |
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
| |||
Lines changed: 15 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 3 | | |
11 | | - | |
| 4 | + | |
| 5 | + | |
12 | 6 | | |
13 | 7 | | |
| 8 | + | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | | - | |
22 | | - | |
| 16 | + | |
23 | 17 | | |
24 | | - | |
| 18 | + | |
25 | 19 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
30 | 23 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 24 | | |
37 | 25 | | |
38 | 26 | | |
| |||
43 | 31 | | |
44 | 32 | | |
45 | 33 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 34 | + | |
| 35 | + | |
50 | 36 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 37 | + | |
54 | 38 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 39 | + | |
58 | 40 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 41 | + | |
62 | 42 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 43 | + | |
66 | 44 | | |
67 | | - | |
68 | | - | |
| 45 | + | |
69 | 46 | | |
70 | 47 | | |
71 | 48 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 49 | | |
81 | 50 | | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments