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.
- checksums.yaml +4 -4
- data/README.md +84 -0
- data/doc/Bauxite.html +1 -1
- data/doc/Bauxite/Action.html +71 -1
- data/doc/Bauxite/ActionModule.html +1 -1
- data/doc/Bauxite/Application.html +1 -1
- data/doc/Bauxite/Context.html +127 -10
- data/doc/Bauxite/Errors.html +1 -1
- data/doc/Bauxite/Errors/AssertionError.html +1 -1
- data/doc/Bauxite/Errors/FileNotFoundError.html +1 -1
- data/doc/Bauxite/Errors/FormatError.html +1 -1
- data/doc/Bauxite/Loggers.html +1 -1
- data/doc/Bauxite/Loggers/CompositeLogger.html +1 -1
- data/doc/Bauxite/Loggers/EchoLogger.html +1 -1
- data/doc/Bauxite/Loggers/FileLogger.html +1 -1
- data/doc/Bauxite/Loggers/NullLogger.html +1 -1
- data/doc/Bauxite/Loggers/TerminalLogger.html +1 -1
- data/doc/Bauxite/Loggers/XtermLogger.html +1 -1
- data/doc/Bauxite/Parser.html +1 -1
- data/doc/Bauxite/ParserModule.html +1 -1
- data/doc/Bauxite/Selector.html +1 -1
- data/doc/Bauxite/SelectorModule.html +1 -1
- data/doc/README_md.html +96 -1
- data/doc/created.rid +47 -46
- data/doc/index.html +95 -1
- data/doc/js/jquery.js +4 -18
- data/doc/js/search_index.js +1 -1
- data/doc/table_of_contents.html +38 -22
- data/lib/bauxite.rb +1 -1
- data/lib/bauxite/actions/failif.rb +55 -0
- data/lib/bauxite/core/context.rb +59 -31
- data/test/failif.bxt +6 -0
- data/test/failif/page.html +5 -0
- metadata +5 -2
data/doc/Bauxite/Errors.html
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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
|
|
data/doc/Bauxite/Loggers.html
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
|
data/doc/Bauxite/Parser.html
CHANGED
@@ -371,7 +371,7 @@ parser can'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.
|
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.
|
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
|
|
data/doc/Bauxite/Selector.html
CHANGED
@@ -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.
|
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.
|
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 "custom=login"</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">¶</a> <a href="#documentation">↑</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 <your distro></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 "$WORKSPACE/test.csv" \
|
449
|
+
"$WORKSPACE/test/suite.bxt"</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'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><publishers>
|
471
|
+
...
|
472
|
+
<hudson.plugins.plot.PlotPublisher plugin="plot@1.5">
|
473
|
+
<plots>
|
474
|
+
<hudson.plugins.plot.Plot>
|
475
|
+
<title>Number of tests</title>
|
476
|
+
<yaxis>Number of tests</yaxis>
|
477
|
+
<series>
|
478
|
+
<hudson.plugins.plot.CSVSeries>
|
479
|
+
<file>test.csv</file>
|
480
|
+
<label></label>
|
481
|
+
<fileType>csv</fileType>
|
482
|
+
<strExclusionSet>
|
483
|
+
<string>OK</string>
|
484
|
+
<string>Failed</string>
|
485
|
+
<string>Total</string>
|
486
|
+
</strExclusionSet>
|
487
|
+
<inclusionFlag>INCLUDE_BY_STRING</inclusionFlag>
|
488
|
+
<exclusionValues>Total,OK,Failed</exclusionValues>
|
489
|
+
<url></url>
|
490
|
+
<displayTableFlag>false</displayTableFlag>
|
491
|
+
</hudson.plugins.plot.CSVSeries>
|
492
|
+
</series>
|
493
|
+
<group>Test</group>
|
494
|
+
<numBuilds>100</numBuilds>
|
495
|
+
<csvFileName>1620406039.csv</csvFileName>
|
496
|
+
<csvLastModification>0</csvLastModification>
|
497
|
+
<style>line</style>
|
498
|
+
<useDescr>false</useDescr>
|
499
|
+
</hudson.plugins.plot.Plot>
|
500
|
+
<hudson.plugins.plot.Plot>
|
501
|
+
<title>Test Execution Time</title>
|
502
|
+
<yaxis>Test time (s)</yaxis>
|
503
|
+
<series>
|
504
|
+
<hudson.plugins.plot.CSVSeries>
|
505
|
+
<file>test.csv</file>
|
506
|
+
<label></label>
|
507
|
+
<fileType>csv</fileType>
|
508
|
+
<strExclusionSet>
|
509
|
+
<string>Time</string>
|
510
|
+
</strExclusionSet>
|
511
|
+
<inclusionFlag>INCLUDE_BY_STRING</inclusionFlag>
|
512
|
+
<exclusionValues>Time</exclusionValues>
|
513
|
+
<url></url>
|
514
|
+
<displayTableFlag>false</displayTableFlag>
|
515
|
+
</hudson.plugins.plot.CSVSeries>
|
516
|
+
</series>
|
517
|
+
<group>Test</group>
|
518
|
+
<numBuilds>100</numBuilds>
|
519
|
+
<csvFileName>336296054.csv</csvFileName>
|
520
|
+
<csvLastModification>0</csvLastModification>
|
521
|
+
<style>line</style>
|
522
|
+
<useDescr>false</useDescr>
|
523
|
+
</hudson.plugins.plot.Plot>
|
524
|
+
</plots>
|
525
|
+
</hudson.plugins.plot.PlotPublisher>
|
526
|
+
...
|
527
|
+
</publishers></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.
|
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
|
-
|
2
|
-
README.md
|
3
|
-
lib/bauxite/actions/
|
4
|
-
lib/bauxite/actions/
|
5
|
-
lib/bauxite/actions/wait.rb Mon, 27 Jan 2014
|
6
|
-
lib/bauxite/actions/
|
7
|
-
lib/bauxite/actions/
|
8
|
-
lib/bauxite/actions/
|
9
|
-
lib/bauxite/actions/
|
10
|
-
lib/bauxite/actions/
|
11
|
-
lib/bauxite/actions/
|
12
|
-
lib/bauxite/actions/
|
13
|
-
lib/bauxite/actions/
|
14
|
-
lib/bauxite/actions/
|
15
|
-
lib/bauxite/actions/
|
16
|
-
lib/bauxite/actions/
|
17
|
-
lib/bauxite/actions/
|
18
|
-
lib/bauxite/actions/
|
19
|
-
lib/bauxite/actions/
|
20
|
-
lib/bauxite/actions/
|
21
|
-
lib/bauxite/actions/
|
22
|
-
lib/bauxite/actions/
|
23
|
-
lib/bauxite/actions/
|
24
|
-
lib/bauxite/actions/
|
25
|
-
lib/bauxite/actions/
|
26
|
-
lib/bauxite/actions/
|
27
|
-
lib/bauxite/actions/
|
28
|
-
lib/bauxite/
|
29
|
-
lib/bauxite/
|
30
|
-
lib/bauxite/
|
31
|
-
lib/bauxite/
|
32
|
-
lib/bauxite/
|
33
|
-
lib/bauxite/core/
|
34
|
-
lib/bauxite/
|
35
|
-
lib/bauxite/
|
36
|
-
lib/bauxite/
|
37
|
-
lib/bauxite/
|
38
|
-
lib/bauxite/
|
39
|
-
lib/bauxite/selectors/
|
40
|
-
lib/bauxite/selectors/
|
41
|
-
lib/bauxite/selectors/smart.rb
|
42
|
-
lib/bauxite/
|
43
|
-
lib/bauxite/loggers/
|
44
|
-
lib/bauxite/loggers/
|
45
|
-
lib/bauxite/loggers/
|
46
|
-
lib/bauxite/loggers/
|
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 "custom=login"</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">¶</a> <a href="#documentation">↑</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 <your distro></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 "$WORKSPACE/test.csv" \
|
479
|
+
"$WORKSPACE/test/suite.bxt"</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'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><publishers>
|
501
|
+
...
|
502
|
+
<hudson.plugins.plot.PlotPublisher plugin="plot@1.5">
|
503
|
+
<plots>
|
504
|
+
<hudson.plugins.plot.Plot>
|
505
|
+
<title>Number of tests</title>
|
506
|
+
<yaxis>Number of tests</yaxis>
|
507
|
+
<series>
|
508
|
+
<hudson.plugins.plot.CSVSeries>
|
509
|
+
<file>test.csv</file>
|
510
|
+
<label></label>
|
511
|
+
<fileType>csv</fileType>
|
512
|
+
<strExclusionSet>
|
513
|
+
<string>OK</string>
|
514
|
+
<string>Failed</string>
|
515
|
+
<string>Total</string>
|
516
|
+
</strExclusionSet>
|
517
|
+
<inclusionFlag>INCLUDE_BY_STRING</inclusionFlag>
|
518
|
+
<exclusionValues>Total,OK,Failed</exclusionValues>
|
519
|
+
<url></url>
|
520
|
+
<displayTableFlag>false</displayTableFlag>
|
521
|
+
</hudson.plugins.plot.CSVSeries>
|
522
|
+
</series>
|
523
|
+
<group>Test</group>
|
524
|
+
<numBuilds>100</numBuilds>
|
525
|
+
<csvFileName>1620406039.csv</csvFileName>
|
526
|
+
<csvLastModification>0</csvLastModification>
|
527
|
+
<style>line</style>
|
528
|
+
<useDescr>false</useDescr>
|
529
|
+
</hudson.plugins.plot.Plot>
|
530
|
+
<hudson.plugins.plot.Plot>
|
531
|
+
<title>Test Execution Time</title>
|
532
|
+
<yaxis>Test time (s)</yaxis>
|
533
|
+
<series>
|
534
|
+
<hudson.plugins.plot.CSVSeries>
|
535
|
+
<file>test.csv</file>
|
536
|
+
<label></label>
|
537
|
+
<fileType>csv</fileType>
|
538
|
+
<strExclusionSet>
|
539
|
+
<string>Time</string>
|
540
|
+
</strExclusionSet>
|
541
|
+
<inclusionFlag>INCLUDE_BY_STRING</inclusionFlag>
|
542
|
+
<exclusionValues>Time</exclusionValues>
|
543
|
+
<url></url>
|
544
|
+
<displayTableFlag>false</displayTableFlag>
|
545
|
+
</hudson.plugins.plot.CSVSeries>
|
546
|
+
</series>
|
547
|
+
<group>Test</group>
|
548
|
+
<numBuilds>100</numBuilds>
|
549
|
+
<csvFileName>336296054.csv</csvFileName>
|
550
|
+
<csvLastModification>0</csvLastModification>
|
551
|
+
<style>line</style>
|
552
|
+
<useDescr>false</useDescr>
|
553
|
+
</hudson.plugins.plot.Plot>
|
554
|
+
</plots>
|
555
|
+
</hudson.plugins.plot.PlotPublisher>
|
556
|
+
...
|
557
|
+
</publishers></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.
|
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
|
|