1
- This proof of concept demonstrates using cucumber to do searches.
1
+ This proof of concept demonstrates using cucumber and concordion to do searches.
2
+
3
+ Cucumber
4
+ ========
2
5
3
6
Also, you may want to look at [ this tutorial] ( http://watir.com/2011/01/22/simple-cucumber-watir-page-object-pattern-framework/ )
4
7
and [ this blog series] ( http://www.cheezyworld.com/2010/12/16/ui-tests-putting-it-all-together/ )
5
8
6
9
Installation
7
- ============
10
+ ------------
8
11
9
12
This code is written in ruby and tested on 1.8.7
10
13
@@ -37,7 +40,7 @@ You will also require the installation of the following GEMS via the commands:
37
40
watir-webdriver (0.5.3)
38
41
39
42
Test using Rake
40
- ===============
43
+ ---------------
41
44
42
45
Ensure that you have rake installed and then to see the tests available, from the root directory run rake with the option to show tasks
43
46
@@ -47,7 +50,7 @@ Test using Rake
47
50
rake prod # Run Cucumber features
48
51
49
52
Sample run
50
- ===========
53
+ ----------
51
54
52
55
$ rake
53
56
@@ -83,4 +86,96 @@ Sample run
83
86
6 steps (1 pending, 5 passed)
84
87
0m8.368s
85
88
89
+ Concordion
90
+ ==========
91
+
92
+ Installation
93
+ ------------
94
+
95
+ This code was written using Eclipse, java and gradle
96
+
97
+ 1 . Ensure Eclipse is installed
98
+ 2 . Download [ gradle] ( http://gradle.org/ ) and add to bin folder to your path (eg export PATH=/usr/local/gradle/bin:$PATH in ~ /.profile)
99
+
100
+ 3 . Test gradle installation
101
+
102
+ $ gradle tasks
103
+ The reportsDir property has been deprecated and will be removed in the next version of Gradle. Please use the reporting.baseDir property instead.
104
+ :tasks
105
+
106
+ ------------------------------------------------------------
107
+ All tasks runnable from root project
108
+ ------------------------------------------------------------
109
+
110
+ Build tasks
111
+ -----------
112
+ assemble - Assembles all Jar, War, Zip, and Tar archives.
113
+ build - Assembles and tests this project.
114
+ buildDependents - Assembles and tests this project and all projects that depend on it.
115
+ buildNeeded - Assembles and tests this project and all projects it depends on.
116
+ classes - Assembles the main classes.
117
+ clean - Deletes the build directory.
118
+ jar - Assembles a jar archive containing the main classes.
119
+ testClasses - Assembles the test classes.
120
+
121
+ Documentation tasks
122
+ -------------------
123
+ groovydoc - Generates Groovydoc API documentation for the main source code.
124
+ javadoc - Generates Javadoc API documentation for the main source code.
125
+
126
+ Help tasks
127
+ ----------
128
+ dependencies - Displays the dependencies of root project 'concordion'.
129
+ help - Displays a help message
130
+ projects - Displays the sub-projects of root project 'concordion'.
131
+ properties - Displays the properties of root project 'concordion'.
132
+ tasks - Displays the tasks runnable from root project 'concordion' (some of the displayed tasks may belong to subprojects).
133
+
134
+ IDE tasks
135
+ ---------
136
+ cleanEclipse - Cleans all Eclipse files.
137
+ eclipse - Generates all Eclipse files.
138
+
139
+ Verification tasks
140
+ ------------------
141
+ check - Runs all checks.
142
+ test - Runs the unit tests.
143
+
144
+ Rules
145
+ -----
146
+ Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
147
+ Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.
148
+ Pattern: clean<TaskName>: Cleans the output files of a task.
149
+
150
+ To see all tasks and more detail, run with --all.
151
+
152
+ BUILD SUCCESSFUL
153
+
154
+ Total time: 5.658 secs
155
+
156
+
157
+ 4 . From the root of the project, prepare for loading in Eclipse.
158
+
159
+ $ cd concordion/
160
+ concordion$ gradle eclipse
161
+ $ gradle eclipse
162
+ The reportsDir property has been deprecated and will be removed in the next version of Gradle. Please use the reporting.baseDir property instead.
163
+ :eclipseClasspath
164
+ :eclipseJdt
165
+ :eclipseProject
166
+ :eclipse
167
+
168
+ BUILD SUCCESSFUL
169
+
170
+ Total time: 9.625 secs
171
+
172
+ 5 . Load into Eclipse workspace:
173
+
174
+ Import > Existing Projects into Workspace > Select root directory > Finish
175
+
176
+ Sample run
177
+ ----------
178
+
179
+ Run tests from Eclipse
86
180
181
+ Run as JUnit Tests
0 commit comments