@@ -49,13 +49,14 @@ export PATH=$M2:$PATH
4949
5050Install OpenJDK
5151```
52- $ sudo apt-get install openjdk-7 -jdk
52+ $ sudo apt-get install openjdk-8 -jdk
5353```
5454
5555Initial Startup (With Jenkins)
5656---------------
5757* [ Install Maven via Jenkins] ( https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch04s06.html )
5858* [ Install Java via Jenkins] ( https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch04s05.html )
59+ * Make sure to configure jenkins wiith to download and install Oracle JDK 8 build 121, and name it as: JDK8u121
5960* [ Install Jenkins Gatling Plugin] ( https://wiki.jenkins-ci.org/display/JENKINS/Gatling+Plugin )
6061* ![ Gatling Plugin] ( https://wiki.jenkins-ci.org/download/attachments/65669112/dashboard.png )
6162
@@ -77,15 +78,39 @@ Running Tests for REST APIS
7778
7879With Jenkins
7980---------------
81+
82+ # Configure
83+ * Add the generic test to the jenkins jobs folder:
8084```
8185sudo mkdir /var/lib/jenkins/jobs/SouJava_Scala_Gatling_Generic_Test
82-
8386sudo cp jenkins/config.xml /var/lib/jenkins/jobs/SouJava_Scala_Gatling_Generic_Test/
8487```
85- [ Reload jenkins configurations from disk] ( https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch04s02.html )
88+
89+ * Configure the permissions for jenkins user to be able to see it:
90+ ` sudo chown -R jenkins:jenkins /var/lib/jenkins/jobs/SouJava_Scala_Gatling_Generic_Test/ `
91+
92+ * Check its all correct
93+ `$ ls -l
94+ total 8
95+ -rw-r--r-- 1 jenkins jenkins 8013 mrt 23 13:07 config.xml`
96+
97+ * Restart jenkins
98+ ` sudo service jenkins restart `
99+
100+ OR Reload jenkins configurations from disk.
101+
102+ Steps: Click Manage Jenkins and then on icon:
103+ * ` Reload Configuration from Disk `
104+ * ` Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk. `
86105
87106Open the job and run o/
88107
108+
109+ ## I just Forgot my jenkins user password :(
110+ Change to root user: ` sudo su - `
111+ Copy the password: ` xclip -sel clip < /var/lib/jenkins/secrets/initialAdminPassword `
112+ Login with admin user and press ` ctrl + v ` on password input box.
113+
89114Without Jenkins
90115---------------
91116
@@ -116,138 +141,7 @@ Simulation soujava.BenchmarkGeneric started...
116141
117142================================================================================
118143
119-
120- ================================================================================
121- 2015-05-05 19:24:43 5s elapsed
122- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
123- [---- ] 0%
124- waiting: 95 / active: 5 / done:0
125- ---- Requests ------------------------------------------------------------------
126- > Global (OK=0 KO=0 )
127-
128- ================================================================================
129-
130-
131- ================================================================================
132- 2015-05-05 19:24:48 10s elapsed
133- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
134- [-------- ] 0%
135- waiting: 90 / active: 10 / done:0
136- ---- Requests ------------------------------------------------------------------
137- > Global (OK=62 KO=0 )
138- > HELLO_WORLD_VERTEX (OK=62 KO=0 )
139- ================================================================================
140-
141-
142- ================================================================================
143- 2015-05-05 19:24:53 15s elapsed
144- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
145- [------------ ] 0%
146- waiting: 84 / active: 16 / done:0
147- ---- Requests ------------------------------------------------------------------
148- > Global (OK=476 KO=0 )
149- > HELLO_WORLD_VERTEX (OK=476 KO=0 )
150- ================================================================================
151-
152-
153- ================================================================================
154- 2015-05-05 19:24:58 20s elapsed
155- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
156- [---------------- ] 0%
157- waiting: 79 / active: 21 / done:0
158- ---- Requests ------------------------------------------------------------------
159- > Global (OK=1064 KO=0 )
160- > HELLO_WORLD_VERTEX (OK=1064 KO=0 )
161- ================================================================================
162-
163-
164- ================================================================================
165- 2015-05-05 19:25:03 25s elapsed
166- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
167- [------------------- ] 0%
168- waiting: 75 / active: 25 / done:0
169- ---- Requests ------------------------------------------------------------------
170- > Global (OK=1805 KO=0 )
171- > HELLO_WORLD_VERTEX (OK=1805 KO=0 )
172- ================================================================================
173-
174-
175- ================================================================================
176- 2015-05-05 19:25:08 30s elapsed
177- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
178- [----------------------- ] 0%
179- waiting: 69 / active: 31 / done:0
180- ---- Requests ------------------------------------------------------------------
181- > Global (OK=2721 KO=0 )
182- > HELLO_WORLD_VERTEX (OK=2721 KO=0 )
183- ================================================================================
184-
185-
186- ================================================================================
187- 2015-05-05 19:25:13 35s elapsed
188- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
189- [--------------------------- ] 0%
190- waiting: 64 / active: 36 / done:0
191- ---- Requests ------------------------------------------------------------------
192- > Global (OK=3807 KO=0 )
193- > HELLO_WORLD_VERTEX (OK=3807 KO=0 )
194- ================================================================================
195-
196-
197- ================================================================================
198- 2015-05-05 19:25:18 40s elapsed
199- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
200- [------------------------------ ] 0%
201- waiting: 60 / active: 40 / done:0
202- ---- Requests ------------------------------------------------------------------
203- > Global (OK=5061 KO=0 )
204- > HELLO_WORLD_VERTEX (OK=5061 KO=0 )
205- ================================================================================
206-
207-
208- ================================================================================
209- 2015-05-05 19:25:23 45s elapsed
210- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
211- [---------------------------------- ] 0%
212- waiting: 55 / active: 45 / done:0
213- ---- Requests ------------------------------------------------------------------
214- > Global (OK=6458 KO=0 )
215- > HELLO_WORLD_VERTEX (OK=6458 KO=0 )
216- ================================================================================
217-
218-
219- ================================================================================
220- 2015-05-05 19:25:28 50s elapsed
221- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
222- [-------------------------------------- ] 0%
223- waiting: 49 / active: 51 / done:0
224- ---- Requests ------------------------------------------------------------------
225- > Global (OK=8041 KO=0 )
226- > HELLO_WORLD_VERTEX (OK=8041 KO=0 )
227- ================================================================================
228-
229-
230- ================================================================================
231- 2015-05-05 19:25:33 55s elapsed
232- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
233- [------------------------------------------ ] 0%
234- waiting: 44 / active: 56 / done:0
235- ---- Requests ------------------------------------------------------------------
236- > Global (OK=9766 KO=0 )
237- > HELLO_WORLD_VERTEX (OK=9766 KO=0 )
238- ================================================================================
239-
240-
241- ================================================================================
242- 2015-05-05 19:25:38 60s elapsed
243- ---- HELLO_WORLD_VERTEX --------------------------------------------------------
244- [--------------------------------------------- ] 0%
245- waiting: 40 / active: 60 / done:0
246- ---- Requests ------------------------------------------------------------------
247- > Global (OK=11633 KO=0 )
248- > HELLO_WORLD_VERTEX (OK=11633 KO=0 )
249- ================================================================================
250-
144+ (...)
251145
252146================================================================================
2531472015-05-05 19:25:38 60s elapsed
@@ -300,8 +194,6 @@ Please open the following file: /opt/scala/scala-gatling-bootstrap-mvn/target/ga
300194[INFO] Finished at: Tue May 05 19:25:41 CEST 2015
301195[INFO] Final Memory: 8M/240M
302196[INFO] ------------------------------------------------------------------------
303-
304-
305197```
306198
307199
@@ -327,18 +219,30 @@ Running tests for SOAP XML WSDL Testing
327219REPORTS
328220========
329221
330- Jenkins introduced a security change that breaks Gatling reports display.
222+ If you haven't read this section yet, chances are that you are not being able open the generate the HTML report,
223+ don't you worry, we got you covered.
224+
225+ Explanation: Jenkins introduced a security change that breaks Gatling reports display.
331226You sadly have to disable it to get them back, see how-to:
332227
333228Open Jenkins CFG file:
334229` sudo vi /etc/default/jenkins `
335230
336231Add the following configuration:
337232
233+ Before:
234+ ```
235+ # arguments to pass to java
236+ JAVA_ARGS="-Djava.awt.headless=true"
237+ ```
238+
239+ After:
338240```
339- JAVA_ARGS="-Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-scripts; style-src 'unsafe-inline' *;script-src 'unsafe-inline' *;\"" # Allow graphs etc. to work even when an X server is present
241+ JAVA_ARGS="-Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-scripts; style-src 'unsafe-inline' *;script-src 'unsafe-inline' *;\""
340242```
341243
244+ Then restart jenkins in order to have the configurations enabled:
245+ ` sudo service jenkins restart `
342246
343247Gatling 2.1.7 - JAVA 7 - JDK 7
344248===============================
0 commit comments