bauxite 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,7 +94,7 @@
94
94
 
95
95
  <footer id="validator-badges" role="contentinfo">
96
96
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
97
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
97
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
98
98
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
99
99
  </footer>
100
100
 
@@ -101,7 +101,7 @@
101
101
 
102
102
  <footer id="validator-badges" role="contentinfo">
103
103
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
104
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
104
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
105
105
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
106
106
  </footer>
107
107
 
@@ -101,7 +101,7 @@
101
101
 
102
102
  <footer id="validator-badges" role="contentinfo">
103
103
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
104
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
104
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
105
105
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
106
106
  </footer>
107
107
 
@@ -101,7 +101,7 @@
101
101
 
102
102
  <footer id="validator-badges" role="contentinfo">
103
103
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
104
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
104
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
105
105
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
106
106
  </footer>
107
107
 
@@ -97,7 +97,7 @@ module.</p>
97
97
 
98
98
  <footer id="validator-badges" role="contentinfo">
99
99
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
100
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
100
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
101
101
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
102
102
  </footer>
103
103
 
@@ -319,7 +319,7 @@ first logger.</p>
319
319
 
320
320
  <footer id="validator-badges" role="contentinfo">
321
321
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
322
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
322
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
323
323
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
324
324
  </footer>
325
325
 
@@ -159,7 +159,7 @@ action succeeded, failed or was skipped).</p>
159
159
 
160
160
  <footer id="validator-badges" role="contentinfo">
161
161
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
162
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
162
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
163
163
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
164
164
  </footer>
165
165
 
@@ -209,7 +209,7 @@ file specified in the <code>file</code> logger option.</p>
209
209
 
210
210
  <footer id="validator-badges" role="contentinfo">
211
211
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
212
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
212
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
213
213
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
214
214
  </footer>
215
215
 
@@ -328,7 +328,7 @@ href="../Context.html#method-i-debug">Bauxite::Context#debug</a>).</p>
328
328
 
329
329
  <footer id="validator-badges" role="contentinfo">
330
330
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
331
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
331
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
332
332
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
333
333
  </footer>
334
334
 
@@ -585,7 +585,7 @@
585
585
 
586
586
  <footer id="validator-badges" role="contentinfo">
587
587
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
588
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
588
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
589
589
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
590
590
  </footer>
591
591
 
@@ -283,7 +283,7 @@
283
283
 
284
284
  <footer id="validator-badges" role="contentinfo">
285
285
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
286
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
286
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
287
287
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
288
288
  </footer>
289
289
 
@@ -371,7 +371,7 @@ parser can&#39;t handle the file.</p>
371
371
 
372
372
  <footer id="validator-badges" role="contentinfo">
373
373
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
374
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
374
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
375
375
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
376
376
  </footer>
377
377
 
@@ -197,7 +197,7 @@
197
197
 
198
198
  <footer id="validator-badges" role="contentinfo">
199
199
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
200
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
200
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
201
201
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
202
202
  </footer>
203
203
 
@@ -502,7 +502,7 @@ child control element, including input, select, textarea and button).</p>
502
502
 
503
503
  <footer id="validator-badges" role="contentinfo">
504
504
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
505
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
505
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
506
506
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
507
507
  </footer>
508
508
 
@@ -276,7 +276,7 @@ href="Context.html#method-i-find">Bauxite::Context#find</a>.</p>
276
276
 
277
277
  <footer id="validator-badges" role="contentinfo">
278
278
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
279
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
279
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
280
280
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
281
281
  </footer>
282
282
 
data/doc/README_md.html CHANGED
@@ -68,6 +68,7 @@
68
68
  <li><a href="#label-Extending+Bauxite">Extending Bauxite</a>
69
69
  <li><a href="#label-Functional+extensions">Functional extensions</a>
70
70
  <li><a href="#label-Coded+plugins">Coded plugins</a>
71
+ <li><a href="#label-Jenkins+Integration">Jenkins Integration</a>
71
72
  </ul>
72
73
  </div>
73
74
 
@@ -430,13 +431,107 @@ click &quot;custom=login&quot;</pre>
430
431
  we can type:</p>
431
432
 
432
433
  <pre>bauxite -e plugins my_test.bxt</pre>
434
+
435
+ <h2 id="label-Jenkins+Integration">Jenkins Integration<span><a href="#label-Jenkins+Integration">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
436
+
437
+ <p>If you want to run <a href="Bauxite.html">Bauxite</a> tests in your <a
438
+ href="http://jenkins-ci.org/">Jenkins CI</a> server you must install
439
+ <code>xvfb</code> and <code>selenium-server-standalone</code>. Googling for
440
+ <code>selenium headless jenkins &lt;your distro&gt;</code> is a great
441
+ start. Assuming you installed Ruby and <a href="Bauxite.html">Bauxite</a>
442
+ for the <code>jenkins</code> user (see the instructions above), you can
443
+ create an execute shell build task with the following text:</p>
444
+
445
+ <pre>#!/bin/bash
446
+ source ~/.rvm/scripts/rvm
447
+ bauxite -l echo -u http://localhost:4444/wd/hub \
448
+ -t 60 -o 240 --csv-summary &quot;$WORKSPACE/test.csv&quot; \
449
+ &quot;$WORKSPACE/test/suite.bxt&quot;</pre>
450
+
451
+ <p>Assuming you have Selenium Server running on localhost and your workspace
452
+ (e.g. GIT repo) contains a folder named <code>test</code> with a file named
453
+ <code>suite.bxt</code> the configuration above should work like a charm.</p>
454
+
455
+ <p><code>suite.bxt</code> could be something like:</p>
456
+
457
+ <pre># === suite.bxt === #
458
+ test login.bxt
459
+ test register.bxt
460
+ test browse_arround.bxt
461
+ test purchase_something.bxt
462
+ # more tests here...</pre>
463
+
464
+ <p>Note the <code>--csv-summary</code> option in the configuration above. That
465
+ option generates a single-ling CSV file ideal to feed the <code>Plot</code>
466
+ Jenkins plugin. I won&#39;t go into the details of configuring the Plot
467
+ plugin, but instead here is a fragment of a possible Jenkins config.xml
468
+ plotting the <a href="Bauxite.html">Bauxite</a> test results:</p>
469
+
470
+ <pre>&lt;publishers&gt;
471
+ ...
472
+ &lt;hudson.plugins.plot.PlotPublisher plugin=&quot;plot@1.5&quot;&gt;
473
+ &lt;plots&gt;
474
+ &lt;hudson.plugins.plot.Plot&gt;
475
+ &lt;title&gt;Number of tests&lt;/title&gt;
476
+ &lt;yaxis&gt;Number of tests&lt;/yaxis&gt;
477
+ &lt;series&gt;
478
+ &lt;hudson.plugins.plot.CSVSeries&gt;
479
+ &lt;file&gt;test.csv&lt;/file&gt;
480
+ &lt;label&gt;&lt;/label&gt;
481
+ &lt;fileType&gt;csv&lt;/fileType&gt;
482
+ &lt;strExclusionSet&gt;
483
+ &lt;string&gt;OK&lt;/string&gt;
484
+ &lt;string&gt;Failed&lt;/string&gt;
485
+ &lt;string&gt;Total&lt;/string&gt;
486
+ &lt;/strExclusionSet&gt;
487
+ &lt;inclusionFlag&gt;INCLUDE_BY_STRING&lt;/inclusionFlag&gt;
488
+ &lt;exclusionValues&gt;Total,OK,Failed&lt;/exclusionValues&gt;
489
+ &lt;url&gt;&lt;/url&gt;
490
+ &lt;displayTableFlag&gt;false&lt;/displayTableFlag&gt;
491
+ &lt;/hudson.plugins.plot.CSVSeries&gt;
492
+ &lt;/series&gt;
493
+ &lt;group&gt;Test&lt;/group&gt;
494
+ &lt;numBuilds&gt;100&lt;/numBuilds&gt;
495
+ &lt;csvFileName&gt;1620406039.csv&lt;/csvFileName&gt;
496
+ &lt;csvLastModification&gt;0&lt;/csvLastModification&gt;
497
+ &lt;style&gt;line&lt;/style&gt;
498
+ &lt;useDescr&gt;false&lt;/useDescr&gt;
499
+ &lt;/hudson.plugins.plot.Plot&gt;
500
+ &lt;hudson.plugins.plot.Plot&gt;
501
+ &lt;title&gt;Test Execution Time&lt;/title&gt;
502
+ &lt;yaxis&gt;Test time (s)&lt;/yaxis&gt;
503
+ &lt;series&gt;
504
+ &lt;hudson.plugins.plot.CSVSeries&gt;
505
+ &lt;file&gt;test.csv&lt;/file&gt;
506
+ &lt;label&gt;&lt;/label&gt;
507
+ &lt;fileType&gt;csv&lt;/fileType&gt;
508
+ &lt;strExclusionSet&gt;
509
+ &lt;string&gt;Time&lt;/string&gt;
510
+ &lt;/strExclusionSet&gt;
511
+ &lt;inclusionFlag&gt;INCLUDE_BY_STRING&lt;/inclusionFlag&gt;
512
+ &lt;exclusionValues&gt;Time&lt;/exclusionValues&gt;
513
+ &lt;url&gt;&lt;/url&gt;
514
+ &lt;displayTableFlag&gt;false&lt;/displayTableFlag&gt;
515
+ &lt;/hudson.plugins.plot.CSVSeries&gt;
516
+ &lt;/series&gt;
517
+ &lt;group&gt;Test&lt;/group&gt;
518
+ &lt;numBuilds&gt;100&lt;/numBuilds&gt;
519
+ &lt;csvFileName&gt;336296054.csv&lt;/csvFileName&gt;
520
+ &lt;csvLastModification&gt;0&lt;/csvLastModification&gt;
521
+ &lt;style&gt;line&lt;/style&gt;
522
+ &lt;useDescr&gt;false&lt;/useDescr&gt;
523
+ &lt;/hudson.plugins.plot.Plot&gt;
524
+ &lt;/plots&gt;
525
+ &lt;/hudson.plugins.plot.PlotPublisher&gt;
526
+ ...
527
+ &lt;/publishers&gt;</pre>
433
528
  </main>
434
529
 
435
530
 
436
531
 
437
532
  <footer id="validator-badges" role="contentinfo">
438
533
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
439
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
534
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
440
535
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
441
536
  </footer>
442
537
 
data/doc/created.rid CHANGED
@@ -1,46 +1,47 @@
1
- Wed, 29 Jan 2014 17:44:15 -0300
2
- README.md Wed, 29 Jan 2014 09:10:40 -0300
3
- lib/bauxite/actions/js.rb Mon, 27 Jan 2014 11:02:44 -0300
4
- lib/bauxite/actions/exec.rb Mon, 27 Jan 2014 11:02:44 -0300
5
- lib/bauxite/actions/wait.rb Mon, 27 Jan 2014 11:02:44 -0300
6
- lib/bauxite/actions/assert.rb Mon, 27 Jan 2014 11:02:44 -0300
7
- lib/bauxite/actions/ruby.rb Mon, 27 Jan 2014 11:02:44 -0300
8
- lib/bauxite/actions/store.rb Mon, 27 Jan 2014 11:02:44 -0300
9
- lib/bauxite/actions/assertv.rb Mon, 27 Jan 2014 11:02:44 -0300
10
- lib/bauxite/actions/alias.rb Mon, 27 Jan 2014 11:02:44 -0300
11
- lib/bauxite/actions/tryload.rb Mon, 27 Jan 2014 11:02:44 -0300
12
- lib/bauxite/actions/test.rb Mon, 27 Jan 2014 11:02:44 -0300
13
- lib/bauxite/actions/load.rb Mon, 27 Jan 2014 11:02:44 -0300
14
- lib/bauxite/actions/submit.rb Tue, 28 Jan 2014 16:05:51 -0300
15
- lib/bauxite/actions/open.rb Wed, 29 Jan 2014 09:10:40 -0300
16
- lib/bauxite/actions/reset.rb Mon, 27 Jan 2014 11:02:44 -0300
17
- lib/bauxite/actions/write.rb Mon, 27 Jan 2014 11:02:44 -0300
18
- lib/bauxite/actions/replace.rb Mon, 27 Jan 2014 11:02:44 -0300
19
- lib/bauxite/actions/select.rb Tue, 28 Jan 2014 16:04:12 -0300
20
- lib/bauxite/actions/echo.rb Mon, 27 Jan 2014 11:02:44 -0300
21
- lib/bauxite/actions/set.rb Mon, 27 Jan 2014 11:02:44 -0300
22
- lib/bauxite/actions/params.rb Mon, 27 Jan 2014 11:02:44 -0300
23
- lib/bauxite/actions/debug.rb Mon, 27 Jan 2014 11:02:44 -0300
24
- lib/bauxite/actions/return.rb Mon, 27 Jan 2014 11:02:44 -0300
25
- lib/bauxite/actions/click.rb Mon, 27 Jan 2014 11:02:44 -0300
26
- lib/bauxite/actions/source.rb Mon, 27 Jan 2014 11:02:44 -0300
27
- lib/bauxite/actions/break.rb Mon, 27 Jan 2014 11:02:44 -0300
28
- lib/bauxite/core/selector.rb Wed, 29 Jan 2014 09:10:40 -0300
29
- lib/bauxite/core/errors.rb Mon, 27 Jan 2014 11:02:44 -0300
30
- lib/bauxite/core/context.rb Wed, 29 Jan 2014 17:41:23 -0300
31
- lib/bauxite/core/parser.rb Tue, 28 Jan 2014 16:48:43 -0300
32
- lib/bauxite/core/action.rb Tue, 28 Jan 2014 16:48:43 -0300
33
- lib/bauxite/core/logger.rb Wed, 29 Jan 2014 15:46:07 -0300
34
- lib/bauxite/parsers/default.rb Mon, 27 Jan 2014 11:02:44 -0300
35
- lib/bauxite/parsers/html.rb Mon, 27 Jan 2014 11:02:44 -0300
36
- lib/bauxite/parsers/csv.rb Mon, 27 Jan 2014 11:02:44 -0300
37
- lib/bauxite/application.rb Wed, 29 Jan 2014 17:33:50 -0300
38
- lib/bauxite/selectors/frame.rb Wed, 29 Jan 2014 09:10:40 -0300
39
- lib/bauxite/selectors/attr.rb Mon, 27 Jan 2014 11:02:44 -0300
40
- lib/bauxite/selectors/sid.rb Wed, 29 Jan 2014 09:10:40 -0300
41
- lib/bauxite/selectors/smart.rb Wed, 29 Jan 2014 09:10:40 -0300
42
- lib/bauxite/loggers/terminal.rb Mon, 27 Jan 2014 11:04:47 -0300
43
- lib/bauxite/loggers/echo.rb Mon, 27 Jan 2014 11:03:37 -0300
44
- lib/bauxite/loggers/composite.rb Mon, 27 Jan 2014 11:02:44 -0300
45
- lib/bauxite/loggers/xterm.rb Mon, 27 Jan 2014 11:02:44 -0300
46
- lib/bauxite/loggers/file.rb Mon, 27 Jan 2014 11:02:44 -0300
1
+ Thu, 30 Jan 2014 21:35:43 -0300
2
+ README.md Thu, 30 Jan 2014 21:30:21 -0300
3
+ lib/bauxite/actions/break.rb Mon, 27 Jan 2014 20:58:50 -0300
4
+ lib/bauxite/actions/assert.rb Mon, 27 Jan 2014 20:58:50 -0300
5
+ lib/bauxite/actions/wait.rb Mon, 27 Jan 2014 20:58:50 -0300
6
+ lib/bauxite/actions/assertv.rb Mon, 27 Jan 2014 20:58:50 -0300
7
+ lib/bauxite/actions/open.rb Tue, 28 Jan 2014 20:06:47 -0300
8
+ lib/bauxite/actions/submit.rb Tue, 28 Jan 2014 19:04:23 -0300
9
+ lib/bauxite/actions/return.rb Mon, 27 Jan 2014 20:58:50 -0300
10
+ lib/bauxite/actions/select.rb Tue, 28 Jan 2014 19:04:23 -0300
11
+ lib/bauxite/actions/ruby.rb Mon, 27 Jan 2014 20:58:50 -0300
12
+ lib/bauxite/actions/echo.rb Mon, 27 Jan 2014 20:58:50 -0300
13
+ lib/bauxite/actions/js.rb Mon, 27 Jan 2014 20:58:50 -0300
14
+ lib/bauxite/actions/replace.rb Mon, 27 Jan 2014 20:58:50 -0300
15
+ lib/bauxite/actions/write.rb Mon, 27 Jan 2014 20:58:50 -0300
16
+ lib/bauxite/actions/params.rb Mon, 27 Jan 2014 20:58:50 -0300
17
+ lib/bauxite/actions/set.rb Mon, 27 Jan 2014 20:58:50 -0300
18
+ lib/bauxite/actions/failif.rb Thu, 30 Jan 2014 21:06:02 -0300
19
+ lib/bauxite/actions/click.rb Mon, 27 Jan 2014 20:58:50 -0300
20
+ lib/bauxite/actions/reset.rb Mon, 27 Jan 2014 20:58:50 -0300
21
+ lib/bauxite/actions/debug.rb Mon, 27 Jan 2014 20:58:50 -0300
22
+ lib/bauxite/actions/source.rb Mon, 27 Jan 2014 20:58:50 -0300
23
+ lib/bauxite/actions/exec.rb Mon, 27 Jan 2014 20:58:50 -0300
24
+ lib/bauxite/actions/store.rb Mon, 27 Jan 2014 20:58:50 -0300
25
+ lib/bauxite/actions/tryload.rb Mon, 27 Jan 2014 20:58:50 -0300
26
+ lib/bauxite/actions/load.rb Mon, 27 Jan 2014 20:58:50 -0300
27
+ lib/bauxite/actions/test.rb Mon, 27 Jan 2014 20:58:50 -0300
28
+ lib/bauxite/actions/alias.rb Mon, 27 Jan 2014 20:58:50 -0300
29
+ lib/bauxite/parsers/html.rb Mon, 27 Jan 2014 20:58:50 -0300
30
+ lib/bauxite/parsers/csv.rb Mon, 27 Jan 2014 20:58:50 -0300
31
+ lib/bauxite/parsers/default.rb Mon, 27 Jan 2014 20:58:50 -0300
32
+ lib/bauxite/application.rb Thu, 30 Jan 2014 20:35:05 -0300
33
+ lib/bauxite/core/errors.rb Mon, 27 Jan 2014 20:58:50 -0300
34
+ lib/bauxite/core/selector.rb Tue, 28 Jan 2014 21:05:35 -0300
35
+ lib/bauxite/core/context.rb Thu, 30 Jan 2014 20:50:42 -0300
36
+ lib/bauxite/core/logger.rb Mon, 27 Jan 2014 20:58:50 -0300
37
+ lib/bauxite/core/action.rb Mon, 27 Jan 2014 20:58:50 -0300
38
+ lib/bauxite/core/parser.rb Mon, 27 Jan 2014 20:58:50 -0300
39
+ lib/bauxite/selectors/sid.rb Tue, 28 Jan 2014 19:32:32 -0300
40
+ lib/bauxite/selectors/attr.rb Mon, 27 Jan 2014 20:58:50 -0300
41
+ lib/bauxite/selectors/smart.rb Tue, 28 Jan 2014 21:11:30 -0300
42
+ lib/bauxite/selectors/frame.rb Tue, 28 Jan 2014 19:38:40 -0300
43
+ lib/bauxite/loggers/terminal.rb Mon, 27 Jan 2014 20:58:50 -0300
44
+ lib/bauxite/loggers/file.rb Mon, 27 Jan 2014 20:58:50 -0300
45
+ lib/bauxite/loggers/composite.rb Mon, 27 Jan 2014 20:58:50 -0300
46
+ lib/bauxite/loggers/echo.rb Mon, 27 Jan 2014 20:58:50 -0300
47
+ lib/bauxite/loggers/xterm.rb Mon, 27 Jan 2014 20:58:50 -0300
data/doc/index.html CHANGED
@@ -461,13 +461,107 @@ click &quot;custom=login&quot;</pre>
461
461
  we can type:</p>
462
462
 
463
463
  <pre>bauxite -e plugins my_test.bxt</pre>
464
+
465
+ <h2 id="label-Jenkins+Integration">Jenkins Integration<span><a href="#label-Jenkins+Integration">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
466
+
467
+ <p>If you want to run <a href="Bauxite.html">Bauxite</a> tests in your <a
468
+ href="http://jenkins-ci.org/">Jenkins CI</a> server you must install
469
+ <code>xvfb</code> and <code>selenium-server-standalone</code>. Googling for
470
+ <code>selenium headless jenkins &lt;your distro&gt;</code> is a great
471
+ start. Assuming you installed Ruby and <a href="Bauxite.html">Bauxite</a>
472
+ for the <code>jenkins</code> user (see the instructions above), you can
473
+ create an execute shell build task with the following text:</p>
474
+
475
+ <pre>#!/bin/bash
476
+ source ~/.rvm/scripts/rvm
477
+ bauxite -l echo -u http://localhost:4444/wd/hub \
478
+ -t 60 -o 240 --csv-summary &quot;$WORKSPACE/test.csv&quot; \
479
+ &quot;$WORKSPACE/test/suite.bxt&quot;</pre>
480
+
481
+ <p>Assuming you have Selenium Server running on localhost and your workspace
482
+ (e.g. GIT repo) contains a folder named <code>test</code> with a file named
483
+ <code>suite.bxt</code> the configuration above should work like a charm.</p>
484
+
485
+ <p><code>suite.bxt</code> could be something like:</p>
486
+
487
+ <pre># === suite.bxt === #
488
+ test login.bxt
489
+ test register.bxt
490
+ test browse_arround.bxt
491
+ test purchase_something.bxt
492
+ # more tests here...</pre>
493
+
494
+ <p>Note the <code>--csv-summary</code> option in the configuration above. That
495
+ option generates a single-ling CSV file ideal to feed the <code>Plot</code>
496
+ Jenkins plugin. I won&#39;t go into the details of configuring the Plot
497
+ plugin, but instead here is a fragment of a possible Jenkins config.xml
498
+ plotting the <a href="Bauxite.html">Bauxite</a> test results:</p>
499
+
500
+ <pre>&lt;publishers&gt;
501
+ ...
502
+ &lt;hudson.plugins.plot.PlotPublisher plugin=&quot;plot@1.5&quot;&gt;
503
+ &lt;plots&gt;
504
+ &lt;hudson.plugins.plot.Plot&gt;
505
+ &lt;title&gt;Number of tests&lt;/title&gt;
506
+ &lt;yaxis&gt;Number of tests&lt;/yaxis&gt;
507
+ &lt;series&gt;
508
+ &lt;hudson.plugins.plot.CSVSeries&gt;
509
+ &lt;file&gt;test.csv&lt;/file&gt;
510
+ &lt;label&gt;&lt;/label&gt;
511
+ &lt;fileType&gt;csv&lt;/fileType&gt;
512
+ &lt;strExclusionSet&gt;
513
+ &lt;string&gt;OK&lt;/string&gt;
514
+ &lt;string&gt;Failed&lt;/string&gt;
515
+ &lt;string&gt;Total&lt;/string&gt;
516
+ &lt;/strExclusionSet&gt;
517
+ &lt;inclusionFlag&gt;INCLUDE_BY_STRING&lt;/inclusionFlag&gt;
518
+ &lt;exclusionValues&gt;Total,OK,Failed&lt;/exclusionValues&gt;
519
+ &lt;url&gt;&lt;/url&gt;
520
+ &lt;displayTableFlag&gt;false&lt;/displayTableFlag&gt;
521
+ &lt;/hudson.plugins.plot.CSVSeries&gt;
522
+ &lt;/series&gt;
523
+ &lt;group&gt;Test&lt;/group&gt;
524
+ &lt;numBuilds&gt;100&lt;/numBuilds&gt;
525
+ &lt;csvFileName&gt;1620406039.csv&lt;/csvFileName&gt;
526
+ &lt;csvLastModification&gt;0&lt;/csvLastModification&gt;
527
+ &lt;style&gt;line&lt;/style&gt;
528
+ &lt;useDescr&gt;false&lt;/useDescr&gt;
529
+ &lt;/hudson.plugins.plot.Plot&gt;
530
+ &lt;hudson.plugins.plot.Plot&gt;
531
+ &lt;title&gt;Test Execution Time&lt;/title&gt;
532
+ &lt;yaxis&gt;Test time (s)&lt;/yaxis&gt;
533
+ &lt;series&gt;
534
+ &lt;hudson.plugins.plot.CSVSeries&gt;
535
+ &lt;file&gt;test.csv&lt;/file&gt;
536
+ &lt;label&gt;&lt;/label&gt;
537
+ &lt;fileType&gt;csv&lt;/fileType&gt;
538
+ &lt;strExclusionSet&gt;
539
+ &lt;string&gt;Time&lt;/string&gt;
540
+ &lt;/strExclusionSet&gt;
541
+ &lt;inclusionFlag&gt;INCLUDE_BY_STRING&lt;/inclusionFlag&gt;
542
+ &lt;exclusionValues&gt;Time&lt;/exclusionValues&gt;
543
+ &lt;url&gt;&lt;/url&gt;
544
+ &lt;displayTableFlag&gt;false&lt;/displayTableFlag&gt;
545
+ &lt;/hudson.plugins.plot.CSVSeries&gt;
546
+ &lt;/series&gt;
547
+ &lt;group&gt;Test&lt;/group&gt;
548
+ &lt;numBuilds&gt;100&lt;/numBuilds&gt;
549
+ &lt;csvFileName&gt;336296054.csv&lt;/csvFileName&gt;
550
+ &lt;csvLastModification&gt;0&lt;/csvLastModification&gt;
551
+ &lt;style&gt;line&lt;/style&gt;
552
+ &lt;useDescr&gt;false&lt;/useDescr&gt;
553
+ &lt;/hudson.plugins.plot.Plot&gt;
554
+ &lt;/plots&gt;
555
+ &lt;/hudson.plugins.plot.PlotPublisher&gt;
556
+ ...
557
+ &lt;/publishers&gt;</pre>
464
558
  </main>
465
559
 
466
560
 
467
561
 
468
562
  <footer id="validator-badges" role="contentinfo">
469
563
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
470
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
564
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
471
565
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
472
566
  </footer>
473
567