soda 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/SodaSuite CHANGED
@@ -508,7 +508,7 @@ def Main
508
508
  'suites' => [],
509
509
  'test_files' => [],
510
510
  'hijacks' => {},
511
- 'gvars' => [],
511
+ 'gvars' => {},
512
512
  'errorskip' => [],
513
513
  'restart_count' => 0,
514
514
  'restart_test' => ""
data/lib/Soda.rb CHANGED
@@ -86,9 +86,9 @@ class Soda
86
86
  @newCSV = []
87
87
  $SodaHome = Dir.getwd()
88
88
  @current_os = SodaUtils.GetOsType()
89
- @sugarFlavor = params['flavor'] if (params.key?('flavor'))
90
- @resultsDir = params['resultsdir'] if (params.key?('resultsdir'))
91
- @globalVars = params['gvars'] if (params.key?('gvars'))
89
+ @sugarFlavor = {}
90
+ @resultsDir = {}
91
+ @globalVars = {}
92
92
  @SIGNAL_STOP = false
93
93
  @hiJacks = nil
94
94
  @breakExit = false
@@ -116,7 +116,11 @@ class Soda
116
116
  "KILL"
117
117
  ]
118
118
  err = 0
119
-
119
+
120
+ @sugarFlavor = params['flavor'] if (params.key?('flavor'))
121
+ @resultsDir = params['resultsdir'] if (params.key?('resultsdir'))
122
+ @globalVars = params['gvars'] if (params.key?('gvars'))
123
+
120
124
  if (@globalVars.key?('scriptsdir'))
121
125
  blocked_file_list = "#{@globalVars['scriptsdir']}/modules/" +
122
126
  "blockScriptList.xml"
@@ -0,0 +1,700 @@
1
+ <soda>
2
+ <!--
3
+ Copyright (c) 2010, SugarCRM, Inc.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+ * Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+ * Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in the
12
+ documentation and/or other materials provided with the distribution.
13
+ * Neither the name of SugarCRM, Inc. nor the
14
+ names of its contributors may be used to endorse or promote products
15
+ derived from this software without specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ DISCLAIMED. IN NO EVENT SHALL SugarCRM, Inc. BE LIABLE FOR ANY
21
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ -->
28
+
29
+
30
+ <timestamp>
31
+ </timestamp>
32
+
33
+ <var>
34
+ <accessor_attributes>
35
+ <accessor type="string">set</accessor>
36
+ <accessor type="string">var</accessor>
37
+ </accessor_attributes>
38
+ </var>
39
+
40
+ <script>
41
+ <accessor_attributes>
42
+ <accessor type="string">file</accessor>
43
+ <accessor type="string">fileset</accessor>
44
+ </accessor_attributes>
45
+ </script>
46
+
47
+ <csv>
48
+ <accessor_attributes>
49
+ <accessor type="string">file</accessor>
50
+ <accessor type="string">var</accessor>
51
+ </accessor_attributes>
52
+ </csv>
53
+
54
+ <wait>
55
+ <accessor_attributes>
56
+ <accessor type="integer">timeout</accessor>
57
+ <accessor type="string">condition</accessor>
58
+ </accessor_attributes>
59
+ </wait>
60
+
61
+ <puts>
62
+ <accessor_attributes>
63
+ <accessor type="string">text</accessor>
64
+ </accessor_attributes>
65
+ </puts>
66
+
67
+ <filefield>
68
+ <accessor_attributes>
69
+ <accessor type="string">set</accessor>
70
+ </accessor_attributes>
71
+ </filefield>
72
+
73
+ <browser>
74
+ <accessor_attributes>
75
+ </accessor_attributes>
76
+
77
+ <soda_attributes>
78
+ <action type="selection">
79
+ <name>close</name>
80
+ <name>back</name>
81
+ <name>refresh</name>
82
+ <name>forward</name>
83
+ </action>
84
+
85
+ <accessor type="string">assertnot</accessor>
86
+ <accessor type="string">assert</accessor>
87
+ <accessor type="string">url</accessor>
88
+ <accessor type="string">send_keys</accessor>
89
+ <accessor type="boolean">assertPage</accessor>
90
+ </soda_attributes>
91
+ </browser>
92
+
93
+ <textfield>
94
+ <accessor_attributes>
95
+ <accessor type="string">name</accessor>
96
+ <accessor type="string">class</accessor>
97
+ <accessor type="string">text</accessor>
98
+ <accessor type="string">id</accessor>
99
+ <accessor type="string">value</accessor>
100
+ <accessor type="string">index</accessor>
101
+ <accessor type="string">xpath</accessor>
102
+ </accessor_attributes>
103
+
104
+ <soda_attributes>
105
+ <accessor type="string">set</accessor>
106
+ <accessor type="boolean">click</accessor>
107
+ <accessor type="string">assert</accessor>
108
+ <accessor type="string">assertnot</accessor>
109
+ <accessor type="boolean">default</accessor>
110
+ <accessor type="boolean">clear</accessor>
111
+ <accessor type="boolean">exist</accessor>
112
+ <accessor type="integer">timeout</accessor>
113
+ <accessor type="boolean">required</accessor>
114
+ <accessor type="string">jscriptevent</accessor>
115
+ <accessor type="boolean">jswait</accessor>
116
+ <accessor type="boolean">disabled</accessor>
117
+ </soda_attributes>
118
+ </textfield>
119
+
120
+ <textarea>
121
+ <accessor_attributes>
122
+ <accessor type="string">name</accessor>
123
+ <accessor type="string">class</accessor>
124
+ <accessor type="string">text</accessor>
125
+ <accessor type="string">id</accessor>
126
+ <accessor type="string">value</accessor>
127
+ <accessor type="string">index</accessor>
128
+ <accessor type="string">xpath</accessor>
129
+ </accessor_attributes>
130
+
131
+ <soda_attributes>
132
+ <accessor type="string">set</accessor>
133
+ <accessor type="string">assert</accessor>
134
+ <accessor type="string">timeout</accessor>
135
+ <accessor type="boolean">required</accessor>
136
+ <accessor type="boolean">disabled</accessor>
137
+ </soda_attributes>
138
+ </textarea>
139
+
140
+ <h3>
141
+ <accessor_attributes>
142
+ <accessor type="string">name</accessor>
143
+ <accessor type="string">class</accessor>
144
+ <accessor type="string">text</accessor>
145
+ <accessor type="string">id</accessor>
146
+ <accessor type="string">index</accessor>
147
+ <accessor type="string">xpath</accessor>
148
+ </accessor_attributes>
149
+
150
+ <soda_attributes>
151
+ </soda_attributes>
152
+ </h3>
153
+
154
+ <label>
155
+ <accessor_attributes>
156
+ <accessor type="string">name</accessor>
157
+ <accessor type="string">class</accessor>
158
+ <accessor type="string">text</accessor>
159
+ <accessor type="string">id</accessor>
160
+ <accessor type="string">index</accessor>
161
+ <accessor type="string">for</accessor>
162
+ <accessor type="string">xpath</accessor>
163
+ </accessor_attributes>
164
+
165
+ <soda_attributes>
166
+ </soda_attributes>
167
+ </label>
168
+
169
+ <button>
170
+ <accessor_attributes>
171
+ <accessor type="string">name</accessor>
172
+ <accessor type="string">class</accessor>
173
+ <accessor type="string">src</accessor>
174
+ <accessor type="string">text</accessor>
175
+ <accessor type="string">id</accessor>
176
+ <accessor type="string">value</accessor>
177
+ <accessor type="string">index</accessor>
178
+ <accessor type="string">xpath</accessor>
179
+ </accessor_attributes>
180
+
181
+ <soda_attributes>
182
+ <accessor type="boolean">click</accessor>
183
+ <accessor type="boolean">exists</accessor>
184
+ <accessor type="boolean">exist</accessor>
185
+ <accessor type="boolean">alert</accessor>
186
+ <accessor type="boolean">required</accessor>
187
+ <accessor type="integer">timeout</accessor>
188
+ <accessor type="string">jscriptevent</accessor>
189
+ <accessor type="boolean">jswait</accessor>
190
+ <accessor type="string">assertPage</accessor>
191
+ <accessor type="boolean">disabled</accessor>
192
+ </soda_attributes>
193
+ </button>
194
+
195
+ <h4>
196
+ <accessor_attributes>
197
+ <accessor type="string">name</accessor>
198
+ <accessor type="string">class</accessor>
199
+ <accessor type="string">text</accessor>
200
+ <accessor type="string">id</accessor>
201
+ <accessor type="string">index</accessor>
202
+ <accessor type="string">xpath</accessor>
203
+ </accessor_attributes>
204
+
205
+ <soda_attributes>
206
+ </soda_attributes>
207
+ </h4>
208
+
209
+ <ul>
210
+ <accessor_attributes>
211
+ <accessor type="string">name</accessor>
212
+ <accessor type="string">class</accessor>
213
+ <accessor type="string">text</accessor>
214
+ <accessor type="string">id</accessor>
215
+ <accessor type="string">index</accessor>
216
+ <accessor type="string">xpath</accessor>
217
+ </accessor_attributes>
218
+
219
+ <soda_attributes>
220
+ </soda_attributes>
221
+ </ul>
222
+
223
+ <filefield>
224
+ <accessor_attributes>
225
+ <accessor type="string">name</accessor>
226
+ <accessor type="string">title</accessor>
227
+ <accessor type="string">class</accessor>
228
+ <accessor type="string">id</accessor>
229
+ <accessor type="string">value</accessor>
230
+ <accessor type="string">index</accessor>
231
+ <accessor type="string">xpath</accessor>
232
+ </accessor_attributes>
233
+
234
+ <soda_attributes>
235
+ <accessor type="string">set</accessor>
236
+ </soda_attributes>
237
+ </filefield>
238
+
239
+ <file_field>
240
+ <accessor_attributes>
241
+ <accessor type="string">name</accessor>
242
+ <accessor type="string">title</accessor>
243
+ <accessor type="string">class</accessor>
244
+ <accessor type="string">id</accessor>
245
+ <accessor type="string">value</accessor>
246
+ <accessor type="string">index</accessor>
247
+ <accessor type="string">xpath</accessor>
248
+ </accessor_attributes>
249
+
250
+ <soda_attributes>
251
+ </soda_attributes>
252
+ </file_field>
253
+
254
+ <h5>
255
+ <accessor_attributes>
256
+ <accessor type="string">name</accessor>
257
+ <accessor type="string">class</accessor>
258
+ <accessor type="string">text</accessor>
259
+ <accessor type="string">id</accessor>
260
+ <accessor type="string">index</accessor>
261
+ <accessor type="string">xpath</accessor>
262
+ </accessor_attributes>
263
+
264
+ <soda_attributes>
265
+ <accessor type="string">assert</accessor>
266
+ <accessor type="string">assertnot</accessor>
267
+ </soda_attributes>
268
+ </h5>
269
+
270
+ <cell>
271
+ <accessor_attributes>
272
+ <accessor type="string">name</accessor>
273
+ <accessor type="string">class</accessor>
274
+ <accessor type="string">text</accessor>
275
+ <accessor type="string">id</accessor>
276
+ <accessor type="string">index</accessor>
277
+ <accessor type="string">xpath</accessor>
278
+ </accessor_attributes>
279
+
280
+ <soda_attributes>
281
+ <accessor type="string">assert</accessor>
282
+ <accessor type="string">assertnot</accessor>
283
+ </soda_attributes>
284
+ </cell>
285
+
286
+ <td>
287
+ <accessor_attributes>
288
+ <accessor type="string">name</accessor>
289
+ <accessor type="string">class</accessor>
290
+ <accessor type="string">text</accessor>
291
+ <accessor type="string">id</accessor>
292
+ <accessor type="string">index</accessor>
293
+ <accessor type="string">xpath</accessor>
294
+ </accessor_attributes>
295
+
296
+ <soda_attributes>
297
+ <accessor type="string">assert</accessor>
298
+ <accessor type="string">assertnot</accessor>
299
+ </soda_attributes>
300
+ </td>
301
+
302
+ <h6>
303
+ <accessor_attributes>
304
+ <accessor type="string">name</accessor>
305
+ <accessor type="string">class</accessor>
306
+ <accessor type="string">text</accessor>
307
+ <accessor type="string">id</accessor>
308
+ <accessor type="string">index</accessor>
309
+ <accessor type="string">xpath</accessor>
310
+ </accessor_attributes>
311
+
312
+ <soda_attributes>
313
+ </soda_attributes>
314
+ </h6>
315
+
316
+ <select>
317
+ <accessor_attributes>
318
+ <accessor type="string">name</accessor>
319
+ <accessor type="string">class</accessor>
320
+ <accessor type="string">text</accessor>
321
+ <accessor type="string">id</accessor>
322
+ <accessor type="string">value</accessor>
323
+ <accessor type="string">index</accessor>
324
+ <accessor type="string">xpath</accessor>
325
+ </accessor_attributes>
326
+
327
+ <soda_attributes>
328
+ <accessor type="string">set</accessor>
329
+ <accessor type="string">assert</accessor>
330
+ <accessor type="string">assertnot</accessor>
331
+ <accessor type="boolean">required</accessor>
332
+ <accessor type="string">include</accessor>
333
+ <accessor type="string">noninclude</accessor>
334
+ <accessor type="boolean">disabled</accessor>
335
+ </soda_attributes>
336
+ </select>
337
+
338
+
339
+ <select_list>
340
+ <accessor_attributes>
341
+ <accessor type="string">name</accessor>
342
+ <accessor type="string">class</accessor>
343
+ <accessor type="string">text</accessor>
344
+ <accessor type="string">id</accessor>
345
+ <accessor type="string">value</accessor>
346
+ <accessor type="string">index</accessor>
347
+ <accessor type="string">xpath</accessor>
348
+ </accessor_attributes>
349
+
350
+ <soda_attributes>
351
+ <accessor type="string">set</accessor>
352
+ <accessor type="boolean">disabled</accessor>
353
+ </soda_attributes>
354
+ </select_list>
355
+
356
+ <pre>
357
+ <accessor_attributes>
358
+ <accessor type="string">name</accessor>
359
+ <accessor type="string">class</accessor>
360
+ <accessor type="string">text</accessor>
361
+ <accessor type="string">id</accessor>
362
+ <accessor type="string">index</accessor>
363
+ <accessor type="string">xpath</accessor>
364
+ </accessor_attributes>
365
+
366
+ <soda_attributes>
367
+ </soda_attributes>
368
+ </pre>
369
+
370
+ <row>
371
+ <accessor_attributes>
372
+ <accessor type="string">name</accessor>
373
+ <accessor type="string">class</accessor>
374
+ <accessor type="string">text</accessor>
375
+ <accessor type="string">id</accessor>
376
+ <accessor type="string">index</accessor>
377
+ <accessor type="string">xpath</accessor>
378
+ </accessor_attributes>
379
+
380
+ <soda_attributes>
381
+ </soda_attributes>
382
+ </row>
383
+
384
+ <tr>
385
+ <accessor_attributes>
386
+ <accessor type="string">name</accessor>
387
+ <accessor type="string">class</accessor>
388
+ <accessor type="string">text</accessor>
389
+ <accessor type="string">id</accessor>
390
+ <accessor type="string">index</accessor>
391
+ <accessor type="string">xpath</accessor>
392
+ </accessor_attributes>
393
+
394
+ <soda_attributes>
395
+ </soda_attributes>
396
+ </tr>
397
+
398
+ <table>
399
+ <accessor_attributes>
400
+ <accessor type="string">name</accessor>
401
+ <accessor type="string">class</accessor>
402
+ <accessor type="string">text</accessor>
403
+ <accessor type="string">id</accessor>
404
+ <accessor type="string">index</accessor>
405
+ <accessor type="string">xpath</accessor>
406
+ </accessor_attributes>
407
+
408
+ <soda_attributes>
409
+ <accessor type="boolean">required</accessor>
410
+ <accessor type="boolean">exist</accessor>
411
+ </soda_attributes>
412
+ </table>
413
+
414
+ <radio>
415
+ <accessor_attributes>
416
+ <accessor type="string">name</accessor>
417
+ <accessor type="string">class</accessor>
418
+ <accessor type="string">text</accessor>
419
+ <accessor type="string">id</accessor>
420
+ <accessor type="string">value</accessor>
421
+ <accessor type="string">index</accessor>
422
+ <accessor type="string">xpath</accessor>
423
+ </accessor_attributes>
424
+
425
+ <soda_attributes>
426
+ <accessor type="string">set</accessor>
427
+ <accessor type="boolean">click</accessor>
428
+ <accessor type="boolean">disabled</accessor>
429
+ </soda_attributes>
430
+ </radio>
431
+
432
+ <p>
433
+ <accessor_attributes>
434
+ <accessor type="string">name</accessor>
435
+ <accessor type="string">class</accessor>
436
+ <accessor type="string">text</accessor>
437
+ <accessor type="string">id</accessor>
438
+ <accessor type="string">index</accessor>
439
+ <accessor type="string">xpath</accessor>
440
+ </accessor_attributes>
441
+
442
+ <soda_attributes>
443
+ </soda_attributes>
444
+ </p>
445
+
446
+ <checkbox>
447
+ <accessor_attributes>
448
+ <accessor type="string">name</accessor>
449
+ <accessor type="string">class</accessor>
450
+ <accessor type="string">text</accessor>
451
+ <accessor type="string">id</accessor>
452
+ <accessor type="string">value</accessor>
453
+ <accessor type="string">index</accessor>
454
+ <accessor type="string">xpath</accessor>
455
+ </accessor_attributes>
456
+
457
+ <soda_attributes>
458
+ <accessor type="string">set</accessor>
459
+ <accessor type="boolean">click</accessor>
460
+ <accessor type="string">assert</accessor>
461
+ <accessor type="string">assertnot</accessor>
462
+ <accessor type="integer">timeout</accessor>
463
+ <accessor type="boolean">required</accessor>
464
+ <accessor type="boolean">disabled</accessor>
465
+ </soda_attributes>
466
+ </checkbox>
467
+
468
+ <map>
469
+ <accessor_attributes>
470
+ <accessor type="string">name</accessor>
471
+ <accessor type="string">class</accessor>
472
+ <accessor type="string">text</accessor>
473
+ <accessor type="string">id</accessor>
474
+ <accessor type="string">value</accessor>
475
+ <accessor type="string">index</accessor>
476
+ <accessor type="string">xpath</accessor>
477
+ </accessor_attributes>
478
+
479
+ <soda_attributes>
480
+ </soda_attributes>
481
+ </map>
482
+
483
+ <frame>
484
+ <accessor_attributes>
485
+ <accessor type="string">name</accessor>
486
+ <accessor type="string">src</accessor>
487
+ <accessor type="string">text</accessor>
488
+ <accessor type="string">id</accessor>
489
+ <accessor type="string">index</accessor>
490
+ <accessor type="string">xpath</accessor>
491
+ </accessor_attributes>
492
+
493
+ <soda_attributes>
494
+ </soda_attributes>
495
+ </frame>
496
+
497
+ <form>
498
+ <accessor_attributes>
499
+ <accessor type="string">name</accessor>
500
+ <accessor type="string">class</accessor>
501
+ <accessor type="string">method</accessor>
502
+ <accessor type="string">action</accessor>
503
+ <accessor type="string">id</accessor>
504
+ <accessor type="string">index</accessor>
505
+ <accessor type="string">xpath</accessor>
506
+ </accessor_attributes>
507
+
508
+ <soda_attributes>
509
+ <accessor type="boolean">exist</accessor>
510
+ </soda_attributes>
511
+ </form>
512
+
513
+ <div>
514
+ <accessor_attributes>
515
+ <accessor type="string">name</accessor>
516
+ <accessor type="string">class</accessor>
517
+ <accessor type="string">text</accessor>
518
+ <accessor type="string">id</accessor>
519
+ <accessor type="string">index</accessor>
520
+ <accessor type="string">xpath</accessor>
521
+ </accessor_attributes>
522
+
523
+ <soda_attributes>
524
+ <accessor type="boolean">exist</accessor>
525
+ <accessor type="boolean">click</accessor>
526
+ <accessor type="string">assert</accessor>
527
+ <accessor type="string">assertnot</accessor>
528
+ </soda_attributes>
529
+ </div>
530
+
531
+ <area>
532
+ <accessor_attributes>
533
+ <accessor type="string">name</accessor>
534
+ <accessor type="string">class</accessor>
535
+ <accessor type="string">text</accessor>
536
+ <accessor type="string">id</accessor>
537
+ <accessor type="string">index</accessor>
538
+ <accessor type="string">xpath</accessor>
539
+ </accessor_attributes>
540
+
541
+ <soda_attributes>
542
+ </soda_attributes>
543
+ </area>
544
+
545
+ <li>
546
+ <accessor_attributes>
547
+ <accessor type="string">name</accessor>
548
+ <accessor type="string">class</accessor>
549
+ <accessor type="string">text</accessor>
550
+ <accessor type="string">id</accessor>
551
+ <accessor type="string">index</accessor>
552
+ <accessor type="string">xpath</accessor>
553
+ </accessor_attributes>
554
+
555
+ <soda_attributes>
556
+ <accessor type="boolean">click</accessor>
557
+ </soda_attributes>
558
+ </li>
559
+
560
+ <link>
561
+ <accessor_attributes>
562
+ <accessor type="string">href</accessor>
563
+ <accessor type="string">name</accessor>
564
+ <accessor type="string">class</accessor>
565
+ <accessor type="string">text</accessor>
566
+ <accessor type="string">id</accessor>
567
+ <accessor type="string">index</accessor>
568
+ <accessor type="string">xpath</accessor>
569
+ </accessor_attributes>
570
+
571
+ <soda_attributes>
572
+ <accessor type="boolean">click</accessor>
573
+ <accessor type="boolean">alert</accessor>
574
+ <accessor type="boolean">exist</accessor>
575
+ <accessor type="boolean">exists</accessor>
576
+ <accessor type="integer">timeout</accessor>
577
+ <accessor type="boolean">required</accessor>
578
+ <accessor type="string">jscriptevent</accessor>
579
+ <accessor type="boolean">jswait</accessor>
580
+ <accessor type="boolean">assertPage</accessor>
581
+ <accessor type="boolean">disabled</accessor>
582
+ </soda_attributes>
583
+ </link>
584
+
585
+ <h1>
586
+ <accessor_attributes>
587
+ <accessor type="string">name</accessor>
588
+ <accessor type="string">class</accessor>
589
+ <accessor type="string">text</accessor>
590
+ <accessor type="string">id</accessor>
591
+ <accessor type="string">index</accessor>
592
+ <accessor type="string">xpath</accessor>
593
+ </accessor_attributes>
594
+
595
+ <soda_attributes>
596
+ </soda_attributes>
597
+ </h1>
598
+
599
+ <image>
600
+ <accessor_attributes>
601
+ <accessor type="string">name</accessor>
602
+ <accessor type="string">class</accessor>
603
+ <accessor type="string">src</accessor>
604
+ <accessor type="string">text</accessor>
605
+ <accessor type="string">id</accessor>
606
+ <accessor type="string">value</accessor>
607
+ <accessor type="string">index</accessor>
608
+ <accessor type="string">alt</accessor>
609
+ <accessor type="string">xpath</accessor>
610
+ </accessor_attributes>
611
+
612
+ <soda_attributes>
613
+ <accessor type="boolean">click</accessor>
614
+ </soda_attributes>
615
+ </image>
616
+
617
+ <h2>
618
+ <accessor_attributes>
619
+ <accessor type="string">name</accessor>
620
+ <accessor type="string">class</accessor>
621
+ <accessor type="string">text</accessor>
622
+ <accessor type="string">id</accessor>
623
+ <accessor type="string">index</accessor>
624
+ <accessor type="string">xpath</accessor>
625
+ </accessor_attributes>
626
+
627
+ <soda_attributes>
628
+ <accessor type="boolean">click</accessor>
629
+ </soda_attributes>
630
+ </h2>
631
+
632
+ <text_field>
633
+ <accessor_attributes>
634
+ <accessor type="string">name</accessor>
635
+ <accessor type="string">class</accessor>
636
+ <accessor type="string">text</accessor>
637
+ <accessor type="string">id</accessor>
638
+ <accessor type="string">value</accessor>
639
+ <accessor type="string">index</accessor>
640
+ <accessor type="string">xpath</accessor>
641
+ </accessor_attributes>
642
+
643
+ <soda_attributes>
644
+ <accessor type="boolean">disabled</accessor>
645
+ </soda_attributes>
646
+ </text_field>
647
+
648
+ <span>
649
+ <accessor_attributes>
650
+ <accessor type="string">name</accessor>
651
+ <accessor type="string">class</accessor>
652
+ <accessor type="string">text</accessor>
653
+ <accessor type="string">id</accessor>
654
+ <accessor type="string">index</accessor>
655
+ <accessor type="string">xpath</accessor>
656
+ </accessor_attributes>
657
+
658
+ <soda_attributes>
659
+ <accessor type="string">assert</accessor>
660
+ <accessor type="string">assertnot</accessor>
661
+ <accessor type="string">vartext</accessor>
662
+ <accessor type="boolean">click</accessor>
663
+ <accessor type="string">jscriptevent</accessor>
664
+ <accessor type="boolean">jswait</accessor>
665
+ </soda_attributes>
666
+ </span>
667
+
668
+ <hidden>
669
+ <accessor_attributes>
670
+ <accessor type="string">name</accessor>
671
+ <accessor type="string">class</accessor>
672
+ <accessor type="string">method</accessor>
673
+ <accessor type="string">text</accessor>
674
+ <accessor type="string">id</accessor>
675
+ <accessor type="string">value</accessor>
676
+ <accessor type="string">index</accessor>
677
+ <accessor type="string">xpath</accessor>
678
+ </accessor_attributes>
679
+
680
+ <soda_attributes>
681
+ <accessor type="string">var</accessor>
682
+ </soda_attributes>
683
+ </hidden>
684
+
685
+ <whitelist>
686
+ <soda_attributes>
687
+ <accessor type="string">add</accessor>
688
+ <accessor type="string">delete</accessor>
689
+ <accessor type="string">name</accessor>
690
+ </soda_attributes>
691
+ </whitelist>
692
+
693
+ <exception>
694
+ <soda_attributes>
695
+ <accessor type="boolen">alwaysrun</accessor>
696
+ </soda_attributes>
697
+
698
+ </exception>
699
+ </soda>
700
+
data/lib/SodaTestCheck.rb CHANGED
@@ -39,10 +39,12 @@ require 'SodaUtils'
39
39
  ###############################################################################
40
40
  class SodaTestCheck
41
41
 
42
+ CONFIG_FILE = File.dirname(__FILE__)
43
+
42
44
  def initialize(sodatest, reportobj)
43
45
  err = 0
44
46
  sodadata = nil
45
- @SODA_ELEMENTS_FILE = "SodaElements.xml"
47
+ @SODA_ELEMENTS_FILE = "#{CONFIG_FILE}/SodaElements.xml"
46
48
  $ERROR_COUNT = 0
47
49
  @report = reportobj
48
50
  @sodatest = sodatest
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trampus Richmond
@@ -68,6 +68,7 @@ files:
68
68
  - lib/SodaFireFox.rb
69
69
  - lib/SodaReporter.rb
70
70
  - lib/SodaLogReporter.rb
71
+ - lib/SodaElements.xml
71
72
  - bin/SodaSuite
72
73
  - lib/utils/sodalookups.rb
73
74
  - lib/fields/SelectField.rb