soda 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/FieldUtils.rb +102 -0
- data/lib/Soda.rb +2628 -0
- data/lib/SodaCSV.rb +88 -0
- data/lib/SodaFireFox.rb +118 -0
- data/lib/SodaLogReporter.rb +810 -0
- data/lib/SodaReportSummery.rb +470 -0
- data/lib/SodaReporter.rb +452 -0
- data/lib/SodaTestCheck.rb +347 -0
- data/lib/SodaUtils.rb +931 -0
- data/lib/SodaXML.rb +129 -0
- data/lib/fields/CheckBoxField.rb +87 -0
- data/lib/fields/FileField.rb +37 -0
- data/lib/fields/LiField.rb +40 -0
- data/lib/fields/RadioField.rb +44 -0
- data/lib/fields/SelectField.rb +59 -0
- data/lib/fields/SodaField.rb +363 -0
- data/lib/fields/TextField.rb +31 -0
- data/lib/soda.rb +2 -0
- data/lib/utils/sodalookups.rb +465 -0
- metadata +114 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
###############################################################################
|
2
|
+
# Copyright (c) 2010, SugarCRM, Inc.
|
3
|
+
# All rights reserved.
|
4
|
+
#
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
7
|
+
# * Redistributions of source code must retain the above copyright
|
8
|
+
# notice, this list of conditions and the following disclaimer.
|
9
|
+
# * Redistributions in binary form must reproduce the above copyright
|
10
|
+
# notice, this list of conditions and the following disclaimer in the
|
11
|
+
# documentation and/or other materials provided with the distribution.
|
12
|
+
# * Neither the name of SugarCRM, Inc. nor the
|
13
|
+
# names of its contributors may be used to endorse or promote products
|
14
|
+
# derived from this software without specific prior written permission.
|
15
|
+
#
|
16
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
17
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
18
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
19
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL SugarCRM, Inc. BE LIABLE FOR ANY
|
20
|
+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
21
|
+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
22
|
+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
23
|
+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
24
|
+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
25
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
###############################################################################
|
27
|
+
|
28
|
+
class SodaTextField < SodaField
|
29
|
+
|
30
|
+
|
31
|
+
end
|
data/lib/soda.rb
ADDED
@@ -0,0 +1,465 @@
|
|
1
|
+
###############################################################################
|
2
|
+
# Copyright (c) 2010, SugarCRM, Inc.
|
3
|
+
# All rights reserved.
|
4
|
+
#
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
7
|
+
# * Redistributions of source code must retain the above copyright
|
8
|
+
# notice, this list of conditions and the following disclaimer.
|
9
|
+
# * Redistributions in binary form must reproduce the above copyright
|
10
|
+
# notice, this list of conditions and the following disclaimer in the
|
11
|
+
# documentation and/or other materials provided with the distribution.
|
12
|
+
# * Neither the name of SugarCRM, Inc. nor the
|
13
|
+
# names of its contributors may be used to endorse or promote products
|
14
|
+
# derived from this software without specific prior written permission.
|
15
|
+
#
|
16
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
17
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
18
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
19
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL SugarCRM, Inc. BE LIABLE FOR ANY
|
20
|
+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
21
|
+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
22
|
+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
23
|
+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
24
|
+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
25
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
###############################################################################
|
27
|
+
|
28
|
+
$sodalookups= {
|
29
|
+
'area' => {
|
30
|
+
'id' => true,
|
31
|
+
'name' => true,
|
32
|
+
'value' => false,
|
33
|
+
'text' => true,
|
34
|
+
'index' => true,
|
35
|
+
'class' => true,
|
36
|
+
'xpath' => true,
|
37
|
+
'title' => false,
|
38
|
+
'method' => false,
|
39
|
+
'action' => false,
|
40
|
+
'href' => false,
|
41
|
+
'src' => false,
|
42
|
+
'for' => false,
|
43
|
+
},
|
44
|
+
'button' => {
|
45
|
+
'id' => true,
|
46
|
+
'name' => true,
|
47
|
+
'value' => true,
|
48
|
+
'text' => true,
|
49
|
+
'index' => true,
|
50
|
+
'class' => true,
|
51
|
+
'xpath' => true,
|
52
|
+
'title' => false,
|
53
|
+
'method' => false,
|
54
|
+
'action' => false,
|
55
|
+
'href' => false,
|
56
|
+
'src' => true,
|
57
|
+
'for' => false,
|
58
|
+
},
|
59
|
+
'cell' => {
|
60
|
+
'id' => true,
|
61
|
+
'name' => true,
|
62
|
+
'value' => false,
|
63
|
+
'text' => true,
|
64
|
+
'index' => true,
|
65
|
+
'class' => true,
|
66
|
+
'xpath' => true,
|
67
|
+
'title' => false,
|
68
|
+
'method' => false,
|
69
|
+
'action' => false,
|
70
|
+
'href' => false,
|
71
|
+
'src' => false,
|
72
|
+
'for' => false,
|
73
|
+
}, 'checkbox' =>
|
74
|
+
{
|
75
|
+
'id' => true,
|
76
|
+
'name' => true,
|
77
|
+
'value' => true,
|
78
|
+
'text' => true,
|
79
|
+
'index' => true,
|
80
|
+
'class' => true,
|
81
|
+
'xpath' => true,
|
82
|
+
'title' => false,
|
83
|
+
'method' => false,
|
84
|
+
'action' => false,
|
85
|
+
'href' => false,
|
86
|
+
'src' => false,
|
87
|
+
'for' => false,
|
88
|
+
},
|
89
|
+
'div' => {
|
90
|
+
'id' => true,
|
91
|
+
'name' => true,
|
92
|
+
'value' => false,
|
93
|
+
'text' => true,
|
94
|
+
'index' => true,
|
95
|
+
'class' => true,
|
96
|
+
'xpath' => true,
|
97
|
+
'title' => false,
|
98
|
+
'method' => false,
|
99
|
+
'action' => false,
|
100
|
+
'href' => false,
|
101
|
+
'src' => false,
|
102
|
+
'for' => false,
|
103
|
+
},
|
104
|
+
'file_field' => {
|
105
|
+
'id' => true,
|
106
|
+
'name' => true,
|
107
|
+
'value' => true,
|
108
|
+
'text' => false,
|
109
|
+
'index' => true,
|
110
|
+
'class' => true,
|
111
|
+
'xpath' => true,
|
112
|
+
'title' => true,
|
113
|
+
'method' => false,
|
114
|
+
'action' => false,
|
115
|
+
'href' => false,
|
116
|
+
'src' => false,
|
117
|
+
'for' => false,
|
118
|
+
},
|
119
|
+
'form' => {
|
120
|
+
'id' => true,
|
121
|
+
'name' => true,
|
122
|
+
'value' => false,
|
123
|
+
'text' => false,
|
124
|
+
'index' => true,
|
125
|
+
'class' => true,
|
126
|
+
'xpath' => true,
|
127
|
+
'title' => false,
|
128
|
+
'method' => true,
|
129
|
+
'action' => true,
|
130
|
+
'href' => false,
|
131
|
+
'src' => false,
|
132
|
+
'for' => false,
|
133
|
+
},
|
134
|
+
'frame' => {
|
135
|
+
'id' => true,
|
136
|
+
'name' => true,
|
137
|
+
'value' => false,
|
138
|
+
'text' => true,
|
139
|
+
'index' => true,
|
140
|
+
'class' => false,
|
141
|
+
'xpath' => true,
|
142
|
+
'title' => false,
|
143
|
+
'method' => false,
|
144
|
+
'action' => false,
|
145
|
+
'href' => false,
|
146
|
+
'src' => true,
|
147
|
+
'for' => false,
|
148
|
+
},
|
149
|
+
'hidden' => {
|
150
|
+
'id' => true,
|
151
|
+
'name' => true,
|
152
|
+
'value' => true,
|
153
|
+
'text' => true,
|
154
|
+
'index' => true,
|
155
|
+
'class' => true,
|
156
|
+
'xpath' => true,
|
157
|
+
'title' => false,
|
158
|
+
'method' => true,
|
159
|
+
'action' => false,
|
160
|
+
'href' => false,
|
161
|
+
'src' => false,
|
162
|
+
'for' => false,
|
163
|
+
},
|
164
|
+
'image' => {
|
165
|
+
'id' => true,
|
166
|
+
'name' => true,
|
167
|
+
'value' => true,
|
168
|
+
'text' => true,
|
169
|
+
'index' => true,
|
170
|
+
'class' => true,
|
171
|
+
'xpath' => true,
|
172
|
+
'title' => false,
|
173
|
+
'alt' => true,
|
174
|
+
'method' => false,
|
175
|
+
'action' => false,
|
176
|
+
'href' => false,
|
177
|
+
'src' => true,
|
178
|
+
'for' => false,
|
179
|
+
},
|
180
|
+
'label' => {
|
181
|
+
'id' => true,
|
182
|
+
'name' => true,
|
183
|
+
'value' => false,
|
184
|
+
'text' => true,
|
185
|
+
'index' => true,
|
186
|
+
'class' => true,
|
187
|
+
'xpath' => true,
|
188
|
+
'title' => false,
|
189
|
+
'method' => false,
|
190
|
+
'action' => false,
|
191
|
+
'href' => false,
|
192
|
+
'src' => false,
|
193
|
+
'for' => true,
|
194
|
+
},
|
195
|
+
'li' => {
|
196
|
+
'id' => true,
|
197
|
+
'name' => true,
|
198
|
+
'value' => false,
|
199
|
+
'text' => true,
|
200
|
+
'index' => true,
|
201
|
+
'class' => true,
|
202
|
+
'xpath' => true,
|
203
|
+
'title' => false,
|
204
|
+
'method' => false,
|
205
|
+
'action' => false,
|
206
|
+
'href' => false,
|
207
|
+
'src' => false,
|
208
|
+
'for' => false,
|
209
|
+
},
|
210
|
+
'link' => {
|
211
|
+
'id' => true,
|
212
|
+
'name' => true,
|
213
|
+
'value' => false,
|
214
|
+
'text' => true,
|
215
|
+
'index' => true,
|
216
|
+
'class' => true,
|
217
|
+
'xpath' => true,
|
218
|
+
'title' => false,
|
219
|
+
'method' => false,
|
220
|
+
'action' => false,
|
221
|
+
'href' => true,
|
222
|
+
'src' => false,
|
223
|
+
'for' => false,
|
224
|
+
},
|
225
|
+
'map' => {
|
226
|
+
'id' => true,
|
227
|
+
'name' => true,
|
228
|
+
'value' => true,
|
229
|
+
'text' => true,
|
230
|
+
'index' => true,
|
231
|
+
'class' => true,
|
232
|
+
'xpath' => true,
|
233
|
+
'title' => false,
|
234
|
+
'method' => false,
|
235
|
+
'action' => false,
|
236
|
+
'href' => false,
|
237
|
+
'src' => false,
|
238
|
+
'for' => false,
|
239
|
+
},
|
240
|
+
'p' => {
|
241
|
+
'id' => true,
|
242
|
+
'name' => true,
|
243
|
+
'value' => false,
|
244
|
+
'text' => true,
|
245
|
+
'index' => true,
|
246
|
+
'class' => true,
|
247
|
+
'xpath' => true,
|
248
|
+
'title' => false,
|
249
|
+
'method' => false,
|
250
|
+
'action' => false,
|
251
|
+
'href' => false,
|
252
|
+
'src' => false,
|
253
|
+
'for' => false,
|
254
|
+
},
|
255
|
+
'pre' => {
|
256
|
+
'id' => true,
|
257
|
+
'name' => true,
|
258
|
+
'value' => false,
|
259
|
+
'text' => true,
|
260
|
+
'index' => true,
|
261
|
+
'class' => true,
|
262
|
+
'xpath' => true,
|
263
|
+
'title' => false,
|
264
|
+
'method' => false,
|
265
|
+
'action' => false,
|
266
|
+
'href' => false,
|
267
|
+
'src' => false,
|
268
|
+
'for' => false,
|
269
|
+
},
|
270
|
+
'radio' => {
|
271
|
+
'id' => true,
|
272
|
+
'name' => true,
|
273
|
+
'value' => true,
|
274
|
+
'text' => true,
|
275
|
+
'index' => true,
|
276
|
+
'class' => true,
|
277
|
+
'xpath' => true,
|
278
|
+
'title' => false,
|
279
|
+
'method' => false,
|
280
|
+
'action' => false,
|
281
|
+
'href' => false,
|
282
|
+
'src' => false,
|
283
|
+
'for' => false,
|
284
|
+
},
|
285
|
+
'row' => {
|
286
|
+
'id' => true,
|
287
|
+
'name' => true,
|
288
|
+
'value' => false,
|
289
|
+
'text' => true,
|
290
|
+
'index' => true,
|
291
|
+
'class' => true,
|
292
|
+
'xpath' => true,
|
293
|
+
'title' => false,
|
294
|
+
'method' => false,
|
295
|
+
'action' => false,
|
296
|
+
'href' => false,
|
297
|
+
'src' => false,
|
298
|
+
'for' => false,
|
299
|
+
},
|
300
|
+
'select_list' => {
|
301
|
+
'id' => true,
|
302
|
+
'name' => true,
|
303
|
+
'value' => true,
|
304
|
+
'text' => true,
|
305
|
+
'index' => true,
|
306
|
+
'class' => true,
|
307
|
+
'xpath' => true,
|
308
|
+
'title' => false,
|
309
|
+
'method' => false,
|
310
|
+
'action' => false,
|
311
|
+
'href' => false,
|
312
|
+
'src' => false,
|
313
|
+
'for' => false,
|
314
|
+
},
|
315
|
+
'span' => {
|
316
|
+
'id' => true,
|
317
|
+
'name' => true,
|
318
|
+
'value' => false,
|
319
|
+
'text' => true,
|
320
|
+
'index' => true,
|
321
|
+
'class' => true,
|
322
|
+
'xpath' => true,
|
323
|
+
'title' => false,
|
324
|
+
'method' => false,
|
325
|
+
'action' => false,
|
326
|
+
'href' => false,
|
327
|
+
'src' => false,
|
328
|
+
'for' => false,
|
329
|
+
},
|
330
|
+
'table' => {
|
331
|
+
'id' => true,
|
332
|
+
'name' => true,
|
333
|
+
'value' => false,
|
334
|
+
'text' => true,
|
335
|
+
'index' => true,
|
336
|
+
'class' => true,
|
337
|
+
'xpath' => true,
|
338
|
+
'title' => false,
|
339
|
+
'method' => false,
|
340
|
+
'action' => false,
|
341
|
+
'href' => false,
|
342
|
+
'src' => false,
|
343
|
+
'for' => false,
|
344
|
+
},
|
345
|
+
'text_field' => {
|
346
|
+
'id' => true,
|
347
|
+
'name' => true,
|
348
|
+
'value' => true,
|
349
|
+
'text' => true,
|
350
|
+
'index' => true,
|
351
|
+
'class' => true,
|
352
|
+
'xpath' => true,
|
353
|
+
'title' => false,
|
354
|
+
'method' => false,
|
355
|
+
'action' => false,
|
356
|
+
'href' => false,
|
357
|
+
'src' => false,
|
358
|
+
'for' => false,
|
359
|
+
},
|
360
|
+
'ul' => {
|
361
|
+
'id' => true,
|
362
|
+
'name' => true,
|
363
|
+
'value' => false,
|
364
|
+
'text' => true,
|
365
|
+
'index' => true,
|
366
|
+
'class' => true,
|
367
|
+
'xpath' => true,
|
368
|
+
'title' => false,
|
369
|
+
'method' => false,
|
370
|
+
'action' => false,
|
371
|
+
'href' => false,
|
372
|
+
'src' => false,
|
373
|
+
'for' => false,
|
374
|
+
},
|
375
|
+
'h1' => {
|
376
|
+
'id' => true,
|
377
|
+
'name' => true,
|
378
|
+
'value' => false,
|
379
|
+
'text' => true,
|
380
|
+
'index' => true,
|
381
|
+
'class' => true,
|
382
|
+
'xpath' => true,
|
383
|
+
'title' => false,
|
384
|
+
'method' => false,
|
385
|
+
'action' => false,
|
386
|
+
'href' => false,
|
387
|
+
'src' => false,
|
388
|
+
'for' => false,
|
389
|
+
},
|
390
|
+
'h2' => {
|
391
|
+
'id' => true,
|
392
|
+
'name' => true,
|
393
|
+
'value' => false,
|
394
|
+
'text' => true,
|
395
|
+
'index' => true,
|
396
|
+
'class' => true,
|
397
|
+
'xpath' => true,
|
398
|
+
'title' => false,
|
399
|
+
'method' => false,
|
400
|
+
'action' => false,
|
401
|
+
'href' => false,
|
402
|
+
'src' => false,
|
403
|
+
'for' => false,
|
404
|
+
},
|
405
|
+
'h3' => {
|
406
|
+
'id' => true,
|
407
|
+
'name' => true,
|
408
|
+
'value' => false,
|
409
|
+
'text' => true,
|
410
|
+
'index' => true,
|
411
|
+
'class' => true,
|
412
|
+
'xpath' => true,
|
413
|
+
'title' => false,
|
414
|
+
'method' => false,
|
415
|
+
'action' => false,
|
416
|
+
'href' => false,
|
417
|
+
'src' => false,
|
418
|
+
'for' => false,
|
419
|
+
},
|
420
|
+
'h4' => {
|
421
|
+
'id' => true,
|
422
|
+
'name' => true,
|
423
|
+
'value' => false,
|
424
|
+
'text' => true,
|
425
|
+
'index' => true,
|
426
|
+
'class' => true,
|
427
|
+
'xpath' => true,
|
428
|
+
'title' => false,
|
429
|
+
'method' => false,
|
430
|
+
'action' => false,
|
431
|
+
'href' => false,
|
432
|
+
'src' => false,
|
433
|
+
'for' => false,
|
434
|
+
},
|
435
|
+
'h5' => {
|
436
|
+
'id' => true,
|
437
|
+
'name' => true,
|
438
|
+
'value' => false,
|
439
|
+
'text' => true,
|
440
|
+
'index' => true,
|
441
|
+
'class' => true,
|
442
|
+
'xpath' => true,
|
443
|
+
'title' => false,
|
444
|
+
'method' => false,
|
445
|
+
'action' => false,
|
446
|
+
'href' => false,
|
447
|
+
'src' => false,
|
448
|
+
'for' => false,
|
449
|
+
},
|
450
|
+
'h6' => {
|
451
|
+
'id' => true,
|
452
|
+
'name' => true,
|
453
|
+
'value' => false,
|
454
|
+
'text' => true,
|
455
|
+
'index' => true,
|
456
|
+
'class' => true,
|
457
|
+
'xpath' => true,
|
458
|
+
'title' => false,
|
459
|
+
'method' => false,
|
460
|
+
'action' => false,
|
461
|
+
'href' => false,
|
462
|
+
'src' => false,
|
463
|
+
'for' => false,
|
464
|
+
},
|
465
|
+
};
|