testability-driver 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/tdriver-devtools +0 -0
- data/ext/native_extensions.c +165 -6
- data/lib/tdriver-devtools/behaviour/old/xml/update +0 -0
- data/lib/tdriver-devtools/behaviour/xml/generate.rb +0 -0
- data/lib/tdriver-devtools/behaviour/xml/rdoc_behaviour_xml_generator.rb +15 -1
- data/lib/tdriver-devtools/doc/update +0 -0
- data/lib/tdriver-devtools/doc/xslt/template.xsl +24 -14
- data/lib/tdriver-devtools/doc/xslt/update +0 -0
- data/lib/tdriver-devtools/tdriver-devtools.rb +0 -0
- data/lib/tdriver-devtools/tests/feature_tests/update +0 -0
- data/lib/tdriver/base/behaviour/{behaviour.rb → abstract.rb} +3 -6
- data/lib/tdriver/base/behaviour/behaviours/object_abstract.rb +107 -0
- data/lib/tdriver/base/behaviour/behaviours/object_behaviour_composition.rb +2 -2
- data/lib/tdriver/base/behaviour/behaviours/object_behaviour_description.rb +47 -37
- data/lib/tdriver/base/behaviour/factory.rb +260 -382
- data/lib/tdriver/base/behaviour/loader.rb +22 -4
- data/lib/tdriver/base/controller/abstraction.rb +56 -0
- data/lib/tdriver/base/controller/loader.rb +21 -0
- data/lib/tdriver/base/loader.rb +3 -1
- data/lib/tdriver/base/sut/controller.rb +91 -74
- data/lib/tdriver/base/sut/factory.rb +8 -8
- data/lib/tdriver/base/sut/generic/behaviours/agent.rb +77 -0
- data/lib/tdriver/base/sut/generic/behaviours/sut.rb +116 -96
- data/lib/tdriver/base/sut/generic/commands/agent.rb +43 -0
- data/lib/tdriver/base/sut/sut.rb +10 -8
- data/lib/tdriver/base/test_object/abstract.rb +25 -24
- data/lib/tdriver/base/test_object/adapter.rb +67 -44
- data/lib/tdriver/base/test_object/behaviours/test_object.rb +79 -20
- data/lib/tdriver/base/test_object/factory.rb +45 -15
- data/lib/tdriver/base/test_object/xml/adapter.rb +80 -57
- data/lib/tdriver/env.rb +0 -0
- data/lib/tdriver/loader.rb +0 -0
- data/lib/tdriver/matti.rb +0 -0
- data/lib/tdriver/report/error_recovery/tdriver_error_recovery.rb +1 -0
- data/lib/tdriver/report/report.rb +2 -1
- data/lib/tdriver/report/report_crash_file_capture.rb +12 -0
- data/lib/tdriver/report/report_creator.rb +6 -2
- data/lib/tdriver/report/report_execution_statistics.rb +27 -11
- data/lib/tdriver/report/report_graph_generator.rb +59 -0
- data/lib/tdriver/report/report_test_case_run.rb +34 -2
- data/lib/tdriver/report/report_writer.rb +12 -0
- data/lib/tdriver/tdriver.rb +12 -1
- data/lib/tdriver/util/agent/loader.rb +22 -0
- data/lib/tdriver/util/agent/service.rb +107 -0
- data/lib/tdriver/util/common/crc16.rb +17 -10
- data/lib/tdriver/util/common/hash.rb +4 -1
- data/lib/tdriver/util/common/kernel.rb +11 -0
- data/lib/tdriver/util/common/numeric.rb +48 -0
- data/lib/tdriver/util/common/object.rb +5 -2
- data/lib/tdriver/util/common/string.rb +8 -1
- data/lib/tdriver/util/filters/attribute_filter.rb +121 -0
- data/lib/tdriver/util/filters/loader.rb +29 -0
- data/lib/tdriver/util/fixture/loader.rb +22 -0
- data/lib/tdriver/util/fixture/service.rb +157 -0
- data/lib/tdriver/util/loader.rb +8 -2
- data/lib/tdriver/util/logger/logger.rb +12 -6
- data/lib/tdriver/util/other/config.rb +0 -0
- data/lib/tdriver/util/parameter/parameter.rb +221 -152
- data/lib/tdriver/util/plugin/error.rb +0 -0
- data/lib/tdriver/util/video/camera_linux.rb +36 -22
- data/lib/tdriver/util/xml/parsers/nokogiri/abstraction.rb +3 -13
- data/lib/tdriver/util/xml/parsers/nokogiri/node.rb +13 -8
- data/lib/tdriver/util/xml/parsers/nokogiri/nodeset.rb +51 -9
- data/lib/tdriver/util/xml/xml.rb +4 -2
- data/lib/tdriver/verify/verify.rb +280 -621
- data/lib/tdriver/version.rb +1 -1
- data/xml/behaviours/generic.xml +34 -0
- data/xml/templates/generic.xml +20 -3
- metadata +168 -240
- data/lib/tdriver-devtools/tests/feature_tests/output/application_closable_0x3f.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/application_close.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/application_environment.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/application_executable_name.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/application_uid.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/created.rid +0 -1
- data/lib/tdriver-devtools/tests/feature_tests/output/find_find.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/flash_behaviour_flash.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/flash_behaviour_flash_images.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_application.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_capture_screen.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_child.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_clear_verify_blocks.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_connect.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_controller_execution_order.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_controller_execution_order_0x3d.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_current_application_id.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_disconnect.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_dump_count.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_freeze.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_frozen.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_get_application_id.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_get_object.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_get_operator_data.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_get_ui_dump.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_get_user_information.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_input.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_parameter.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_press_key.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_received_data.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_refresh.feature +0 -20
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_refresh_timeout.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_refresh_tries.feature +0 -15
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_refresh_ui_dump.feature +0 -20
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_run.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_sent_data.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_state.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_translate.feature +0 -30
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_ui_type.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_ui_version.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_unfreeze.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_update.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_verify_always.feature +0 -20
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_verify_blocks.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_x_path.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_xml_data.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_xml_data_0x3d.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/sut_xml_data_crc.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/switchbox_behaviour_power_down.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/switchbox_behaviour_power_status.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/switchbox_behaviour_power_up.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/switchbox_behaviour_reset.feature +0 -10
- data/lib/tdriver-devtools/tests/feature_tests/output/verification_test_object_exists_0x3f.feature +0 -15
- data/lib/tdriver/base/behaviour/factory_new.rb +0 -409
- data/lib/tdriver/base/test_object/identificator.rb +0 -518
- data/lib/tdriver/util/filters/dynamic_attributes.rb +0 -189
data/bin/tdriver-devtools
CHANGED
File without changes
|
data/ext/native_extensions.c
CHANGED
@@ -21,12 +21,48 @@
|
|
21
21
|
|
22
22
|
#include "ruby.h"
|
23
23
|
|
24
|
+
static const CCITT_16[ 256 ] = {
|
25
|
+
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7,
|
26
|
+
0x8108, 0x9129, 0xA14A, 0xB16B, 0xC18C, 0xD1AD, 0xE1CE, 0xF1EF,
|
27
|
+
0x1231, 0x0210, 0x3273, 0x2252, 0x52B5, 0x4294, 0x72F7, 0x62D6,
|
28
|
+
0x9339, 0x8318, 0xB37B, 0xA35A, 0xD3BD, 0xC39C, 0xF3FF, 0xE3DE,
|
29
|
+
0x2462, 0x3443, 0x0420, 0x1401, 0x64E6, 0x74C7, 0x44A4, 0x5485,
|
30
|
+
0xA56A, 0xB54B, 0x8528, 0x9509, 0xE5EE, 0xF5CF, 0xC5AC, 0xD58D,
|
31
|
+
0x3653, 0x2672, 0x1611, 0x0630, 0x76D7, 0x66F6, 0x5695, 0x46B4,
|
32
|
+
0xB75B, 0xA77A, 0x9719, 0x8738, 0xF7DF, 0xE7FE, 0xD79D, 0xC7BC,
|
33
|
+
0x48C4, 0x58E5, 0x6886, 0x78A7, 0x0840, 0x1861, 0x2802, 0x3823,
|
34
|
+
0xC9CC, 0xD9ED, 0xE98E, 0xF9AF, 0x8948, 0x9969, 0xA90A, 0xB92B,
|
35
|
+
0x5AF5, 0x4AD4, 0x7AB7, 0x6A96, 0x1A71, 0x0A50, 0x3A33, 0x2A12,
|
36
|
+
0xDBFD, 0xCBDC, 0xFBBF, 0xEB9E, 0x9B79, 0x8B58, 0xBB3B, 0xAB1A,
|
37
|
+
0x6CA6, 0x7C87, 0x4CE4, 0x5CC5, 0x2C22, 0x3C03, 0x0C60, 0x1C41,
|
38
|
+
0xEDAE, 0xFD8F, 0xCDEC, 0xDDCD, 0xAD2A, 0xBD0B, 0x8D68, 0x9D49,
|
39
|
+
0x7E97, 0x6EB6, 0x5ED5, 0x4EF4, 0x3E13, 0x2E32, 0x1E51, 0x0E70,
|
40
|
+
0xFF9F, 0xEFBE, 0xDFDD, 0xCFFC, 0xBF1B, 0xAF3A, 0x9F59, 0x8F78,
|
41
|
+
0x9188, 0x81A9, 0xB1CA, 0xA1EB, 0xD10C, 0xC12D, 0xF14E, 0xE16F,
|
42
|
+
0x1080, 0x00A1, 0x30C2, 0x20E3, 0x5004, 0x4025, 0x7046, 0x6067,
|
43
|
+
0x83B9, 0x9398, 0xA3FB, 0xB3DA, 0xC33D, 0xD31C, 0xE37F, 0xF35E,
|
44
|
+
0x02B1, 0x1290, 0x22F3, 0x32D2, 0x4235, 0x5214, 0x6277, 0x7256,
|
45
|
+
0xB5EA, 0xA5CB, 0x95A8, 0x8589, 0xF56E, 0xE54F, 0xD52C, 0xC50D,
|
46
|
+
0x34E2, 0x24C3, 0x14A0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405,
|
47
|
+
0xA7DB, 0xB7FA, 0x8799, 0x97B8, 0xE75F, 0xF77E, 0xC71D, 0xD73C,
|
48
|
+
0x26D3, 0x36F2, 0x0691, 0x16B0, 0x6657, 0x7676, 0x4615, 0x5634,
|
49
|
+
0xD94C, 0xC96D, 0xF90E, 0xE92F, 0x99C8, 0x89E9, 0xB98A, 0xA9AB,
|
50
|
+
0x5844, 0x4865, 0x7806, 0x6827, 0x18C0, 0x08E1, 0x3882, 0x28A3,
|
51
|
+
0xCB7D, 0xDB5C, 0xEB3F, 0xFB1E, 0x8BF9, 0x9BD8, 0xABBB, 0xBB9A,
|
52
|
+
0x4A75, 0x5A54, 0x6A37, 0x7A16, 0x0AF1, 0x1AD0, 0x2AB3, 0x3A92,
|
53
|
+
0xFD2E, 0xED0F, 0xDD6C, 0xCD4D, 0xBDAA, 0xAD8B, 0x9DE8, 0x8DC9,
|
54
|
+
0x7C26, 0x6C07, 0x5C64, 0x4C45, 0x3CA2, 0x2C83, 0x1CE0, 0x0CC1,
|
55
|
+
0xEF1F, 0xFF3E, 0xCF5D, 0xDF7C, 0xAF9B, 0xBFBA, 0x8FD9, 0x9FF8,
|
56
|
+
0x6E17, 0x7E36, 0x4E55, 0x5E74, 0x2E93, 0x3EB2, 0x0ED1, 0x1EF0
|
57
|
+
};
|
58
|
+
|
59
|
+
|
24
60
|
static const CRC_16[ 16 ] = {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
61
|
+
|
62
|
+
0x0000, 0x1081, 0x2102, 0x3183,
|
63
|
+
0x4204, 0x5285, 0x6306, 0x7387,
|
64
|
+
0x8408, 0x9489, 0xa50a, 0xb58b,
|
65
|
+
0xc60c, 0xd68d, 0xe70e, 0xf78f
|
30
66
|
|
31
67
|
};
|
32
68
|
|
@@ -59,7 +95,52 @@ static VALUE crc16_ibm( VALUE self, VALUE string ) {
|
|
59
95
|
}
|
60
96
|
*/
|
61
97
|
|
62
|
-
|
98
|
+
static VALUE crc16( int argc, VALUE* argv, VALUE self ) {
|
99
|
+
//klass VALUE self, VALUE string, VALUE unused_crc ) {
|
100
|
+
|
101
|
+
// variables for arguments
|
102
|
+
VALUE string, initial_crc;
|
103
|
+
|
104
|
+
// retrieve arguments
|
105
|
+
rb_scan_args(argc, argv, "11", &string, &initial_crc);
|
106
|
+
|
107
|
+
int crc; // = 0xffff;
|
108
|
+
|
109
|
+
if (NIL_P(initial_crc)){
|
110
|
+
|
111
|
+
crc = 0;
|
112
|
+
|
113
|
+
} else {
|
114
|
+
|
115
|
+
// verify initial crc value
|
116
|
+
Check_Type( initial_crc, T_FIXNUM );
|
117
|
+
|
118
|
+
crc = NUM2INT( initial_crc );
|
119
|
+
|
120
|
+
}
|
121
|
+
|
122
|
+
// verify argument type
|
123
|
+
Check_Type( string, T_STRING );
|
124
|
+
|
125
|
+
const char* data = RSTRING_PTR( string );
|
126
|
+
|
127
|
+
int len = RSTRING_LEN( string );
|
128
|
+
|
129
|
+
int c = 0;
|
130
|
+
|
131
|
+
while( len-- ){
|
132
|
+
|
133
|
+
c = *data++;
|
134
|
+
|
135
|
+
crc = ( ( crc << 8 ) ^ CCITT_16[ ( crc >> 8 ) ^ c ] ) & 0xffff;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
return INT2FIX( crc );
|
140
|
+
|
141
|
+
|
142
|
+
}
|
143
|
+
|
63
144
|
static VALUE crc16_ibm( int argc, VALUE* argv, VALUE self ) {
|
64
145
|
//klass VALUE self, VALUE string, VALUE unused_crc ) {
|
65
146
|
|
@@ -108,6 +189,73 @@ static VALUE crc16_ibm( int argc, VALUE* argv, VALUE self ) {
|
|
108
189
|
|
109
190
|
}
|
110
191
|
|
192
|
+
// determines that native extension is in use
|
193
|
+
static VALUE native_extension( VALUE self ) {
|
194
|
+
|
195
|
+
return Qtrue;
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
/*
|
200
|
+
// determines that native extension is in use
|
201
|
+
static VALUE conv( VALUE self, VALUE string ) {
|
202
|
+
|
203
|
+
VALUE arr = rb_ary_new();
|
204
|
+
|
205
|
+
const char* data = RSTRING_PTR( string );
|
206
|
+
|
207
|
+
int len = RSTRING_LEN( string );
|
208
|
+
|
209
|
+
int c = 0;
|
210
|
+
|
211
|
+
while( len-- ){
|
212
|
+
|
213
|
+
c = *data++;
|
214
|
+
|
215
|
+
char result[] = { c };
|
216
|
+
|
217
|
+
switch( c ){
|
218
|
+
|
219
|
+
case 38:
|
220
|
+
|
221
|
+
rb_ary_push( arr, rb_str_new2( "&" ) );
|
222
|
+
break;
|
223
|
+
|
224
|
+
case 60:
|
225
|
+
|
226
|
+
rb_ary_push( arr, rb_str_new2( "<" ) );
|
227
|
+
break;
|
228
|
+
|
229
|
+
case 62:
|
230
|
+
|
231
|
+
rb_ary_push( arr, rb_str_new2( ">" ) );
|
232
|
+
break;
|
233
|
+
|
234
|
+
case 34:
|
235
|
+
|
236
|
+
rb_ary_push( arr, rb_str_new2( """ ) );
|
237
|
+
break;
|
238
|
+
|
239
|
+
case 39:
|
240
|
+
|
241
|
+
rb_ary_push( arr, rb_str_new2( "'" ) );
|
242
|
+
break;
|
243
|
+
|
244
|
+
default:
|
245
|
+
|
246
|
+
//rb_ary_push( arr, INT2FIX(c) );
|
247
|
+
rb_ary_push( arr, rb_str_new( result, 1 ) );
|
248
|
+
break;
|
249
|
+
|
250
|
+
}
|
251
|
+
|
252
|
+
}
|
253
|
+
|
254
|
+
return rb_funcall2( arr, rb_intern("join"), 0, NULL );
|
255
|
+
|
256
|
+
}
|
257
|
+
*/
|
258
|
+
|
111
259
|
void Init_native_extensions() {
|
112
260
|
|
113
261
|
// main tdriver module
|
@@ -119,6 +267,17 @@ void Init_native_extensions() {
|
|
119
267
|
// checksum methods
|
120
268
|
rb_define_singleton_method( cChecksum, "crc16_ibm", crc16_ibm, -1 );
|
121
269
|
|
270
|
+
rb_define_singleton_method( cChecksum, "crc16", crc16, -1 );
|
271
|
+
|
272
|
+
// determines that native extension is in use
|
273
|
+
rb_define_singleton_method( cChecksum, "native_extension", native_extension, 0 );
|
274
|
+
|
275
|
+
/*
|
276
|
+
// determines that native extension is in use
|
277
|
+
rb_define_singleton_method( cChecksum, "conv", conv, 1 );
|
278
|
+
|
279
|
+
*/
|
280
|
+
|
122
281
|
// deprecated - for backwards compatibility
|
123
282
|
VALUE mNativeExtensions = rb_define_module_under( mTDriver, "NativeExtensions" );
|
124
283
|
VALUE mCRC = rb_define_module_under( mNativeExtensions, "CRC" );
|
File without changes
|
File without changes
|
@@ -1438,17 +1438,22 @@ EXAMPLE
|
|
1438
1438
|
|
1439
1439
|
# generate arguments xml
|
1440
1440
|
arguments = ( feature.last[:arguments] || {} ).collect{ | arg |
|
1441
|
+
|
1442
|
+
p arg
|
1441
1443
|
|
1442
1444
|
# generate argument types template
|
1443
1445
|
arg.collect{ | argument |
|
1444
1446
|
|
1445
1447
|
argument_type = argument_types[ argument.first[0].chr ]
|
1448
|
+
|
1446
1449
|
argument_name = "%s" % argument.first
|
1450
|
+
|
1447
1451
|
argument_name[0]="" if argument_types.has_key?( argument_name[0].chr )
|
1448
1452
|
|
1449
1453
|
argument_type = "block_argument" if argument_type == "block" && argument_name.include?( "#" )
|
1450
1454
|
|
1451
1455
|
default_value_set = false
|
1456
|
+
|
1452
1457
|
default_value = nil
|
1453
1458
|
|
1454
1459
|
if argument.last.has_key?( :argument_type_order )
|
@@ -1464,7 +1469,7 @@ EXAMPLE
|
|
1464
1469
|
end
|
1465
1470
|
|
1466
1471
|
argument_types_in_order ||= []
|
1467
|
-
|
1472
|
+
|
1468
1473
|
# in case of argument is not documented at all...
|
1469
1474
|
if argument_types_in_order.empty?
|
1470
1475
|
|
@@ -1478,6 +1483,15 @@ EXAMPLE
|
|
1478
1483
|
|
1479
1484
|
end
|
1480
1485
|
|
1486
|
+
if argument_types_in_order.empty?
|
1487
|
+
|
1488
|
+
default_value = nil
|
1489
|
+
default_value_set = false
|
1490
|
+
|
1491
|
+
argument_types_in_order = [[nil, {}]]
|
1492
|
+
|
1493
|
+
end
|
1494
|
+
|
1481
1495
|
types_xml = argument_types_in_order.collect{ | type |
|
1482
1496
|
|
1483
1497
|
unless argument.last[:default].nil?
|
File without changes
|
@@ -21,9 +21,14 @@
|
|
21
21
|
color: black;
|
22
22
|
font-size: 13px;
|
23
23
|
cursor: default;
|
24
|
-
text-shadow: #909090 1px 1px
|
24
|
+
#text-shadow: #909090 1px 1px 1px;
|
25
25
|
}
|
26
|
-
|
26
|
+
|
27
|
+
h2
|
28
|
+
{
|
29
|
+
text-shadow: #909090 1px 1px 2px;
|
30
|
+
}
|
31
|
+
|
27
32
|
div.feature_title
|
28
33
|
{
|
29
34
|
|
@@ -65,7 +70,7 @@
|
|
65
70
|
font-size: 13px;
|
66
71
|
font-weight: bold;
|
67
72
|
color: #000000;
|
68
|
-
text-shadow: #
|
73
|
+
#text-shadow: #A0A0A0 1px 1px 0px;
|
69
74
|
|
70
75
|
}
|
71
76
|
|
@@ -233,7 +238,8 @@
|
|
233
238
|
|
234
239
|
span.optional_argument
|
235
240
|
{
|
236
|
-
font-style: italic;
|
241
|
+
#font-style: italic;
|
242
|
+
color: #777777;
|
237
243
|
}
|
238
244
|
|
239
245
|
pre
|
@@ -297,6 +303,7 @@
|
|
297
303
|
|
298
304
|
font-size: 14px;
|
299
305
|
font-weight: bold;
|
306
|
+
#text-shadow: #909090 1px 1px 1px;
|
300
307
|
|
301
308
|
}
|
302
309
|
|
@@ -356,9 +363,11 @@
|
|
356
363
|
|
357
364
|
color: #a06060;
|
358
365
|
|
359
|
-
|
366
|
+
color: #605555;
|
367
|
+
|
368
|
+
#text-shadow: #ff8f6f 1px 1px 4px;
|
360
369
|
|
361
|
-
text-shadow: #b0a0a0 1px 1px 4px;
|
370
|
+
#text-shadow: #b0a0a0 1px 1px 4px;
|
362
371
|
|
363
372
|
border-bottom: 1px dotted #515151;
|
364
373
|
font-weight: bold;
|
@@ -368,7 +377,8 @@
|
|
368
377
|
a.link:hover
|
369
378
|
{
|
370
379
|
|
371
|
-
border-bottom: 1px
|
380
|
+
border-bottom: 1px dotted #000000;
|
381
|
+
color: #000000;
|
372
382
|
|
373
383
|
}
|
374
384
|
|
@@ -397,7 +407,7 @@
|
|
397
407
|
<body>
|
398
408
|
|
399
409
|
<a name="top">
|
400
|
-
<h2>Documentation</h2>
|
410
|
+
<h2>Testability Driver API Documentation</h2>
|
401
411
|
</a>
|
402
412
|
|
403
413
|
<xsl:apply-templates/>
|
@@ -513,7 +523,7 @@
|
|
513
523
|
<xsl:text></xsl:text>
|
514
524
|
</xsl:if>
|
515
525
|
|
516
|
-
<xsl:text
|
526
|
+
<xsl:text></xsl:text>
|
517
527
|
<span class="hover_text">
|
518
528
|
<xsl:value-of select="@name"/>
|
519
529
|
<xsl:if test="@type='multi'">
|
@@ -521,7 +531,7 @@
|
|
521
531
|
</xsl:if>
|
522
532
|
</span>
|
523
533
|
|
524
|
-
<xsl:text
|
534
|
+
<xsl:text></xsl:text>
|
525
535
|
|
526
536
|
</span>
|
527
537
|
|
@@ -643,10 +653,10 @@
|
|
643
653
|
<table class="default">
|
644
654
|
<tr class="header">
|
645
655
|
<td class="header">Type</td>
|
646
|
-
<td class="header">Target object
|
647
|
-
<td class="header">SUT type
|
648
|
-
<td class="header">SUT version
|
649
|
-
<td class="header">SUT input type
|
656
|
+
<td class="header">Target object</td>
|
657
|
+
<td class="header">SUT type</td>
|
658
|
+
<td class="header">SUT version</td>
|
659
|
+
<td class="header">SUT input type</td>
|
650
660
|
<td class="header">Behaviour module and name</td>
|
651
661
|
<td class="header">Required plugin</td>
|
652
662
|
</tr>
|
File without changes
|
File without changes
|
File without changes
|
@@ -17,16 +17,13 @@
|
|
17
17
|
##
|
18
18
|
############################################################################
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
20
|
# Module is used to be as template for all behaviours
|
24
21
|
# TestObject can verify whether it has some behaviour by calling:
|
25
22
|
# TestObject.kind_of? MobyBehaviour::Abstract
|
26
|
-
|
27
23
|
module MobyBehaviour
|
28
24
|
|
29
25
|
module Behaviour
|
30
26
|
|
31
|
-
end
|
32
|
-
|
27
|
+
end # Behaviour
|
28
|
+
|
29
|
+
end # MobyBehaviour
|
@@ -0,0 +1,107 @@
|
|
1
|
+
############################################################################
|
2
|
+
##
|
3
|
+
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
4
|
+
## All rights reserved.
|
5
|
+
## Contact: Nokia Corporation (testabilitydriver@nokia.com)
|
6
|
+
##
|
7
|
+
## This file is part of Testability Driver.
|
8
|
+
##
|
9
|
+
## If you have questions regarding the use of this file, please contact
|
10
|
+
## Nokia at testabilitydriver@nokia.com .
|
11
|
+
##
|
12
|
+
## This library is free software; you can redistribute it and/or
|
13
|
+
## modify it under the terms of the GNU Lesser General Public
|
14
|
+
## License version 2.1 as published by the Free Software Foundation
|
15
|
+
## and appearing in the file LICENSE.LGPL included in the packaging
|
16
|
+
## of this file.
|
17
|
+
##
|
18
|
+
############################################################################
|
19
|
+
|
20
|
+
module MobyBehaviour
|
21
|
+
|
22
|
+
# == description
|
23
|
+
# Generic object abstraction class applied to TestObject, Applcation and SUT
|
24
|
+
#
|
25
|
+
# == behaviour
|
26
|
+
# GenericObjectAbstraction
|
27
|
+
#
|
28
|
+
# == requires
|
29
|
+
# *
|
30
|
+
#
|
31
|
+
# == input_type
|
32
|
+
# *
|
33
|
+
#
|
34
|
+
# == sut_type
|
35
|
+
# *
|
36
|
+
#
|
37
|
+
# == sut_version
|
38
|
+
# *
|
39
|
+
#
|
40
|
+
# == objects
|
41
|
+
# *;application;sut
|
42
|
+
#
|
43
|
+
module GenericObjectAbstraction
|
44
|
+
|
45
|
+
# == description
|
46
|
+
# Determines if the current object is type of application
|
47
|
+
# == returns
|
48
|
+
# Boolean
|
49
|
+
# description: Determines is object type of application
|
50
|
+
# example: false
|
51
|
+
def application?
|
52
|
+
|
53
|
+
begin
|
54
|
+
|
55
|
+
@type == 'application'
|
56
|
+
|
57
|
+
rescue
|
58
|
+
|
59
|
+
false
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
# == description
|
66
|
+
# Determines if the current object is type of SUT
|
67
|
+
# == returns
|
68
|
+
# Boolean
|
69
|
+
# description: Determines is object type of SUT
|
70
|
+
# example: false
|
71
|
+
def sut?
|
72
|
+
|
73
|
+
begin
|
74
|
+
|
75
|
+
@type == 'sut'
|
76
|
+
|
77
|
+
rescue
|
78
|
+
|
79
|
+
false
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
|
85
|
+
# == description
|
86
|
+
# Determines if the current object is type of test object
|
87
|
+
# == returns
|
88
|
+
# Boolean
|
89
|
+
# description: Determines is object type of test object
|
90
|
+
# example: false
|
91
|
+
def test_object?
|
92
|
+
|
93
|
+
begin
|
94
|
+
|
95
|
+
kind_of?( MobyBase::TestObject )
|
96
|
+
|
97
|
+
rescue
|
98
|
+
|
99
|
+
false
|
100
|
+
|
101
|
+
end
|
102
|
+
|
103
|
+
end
|
104
|
+
|
105
|
+
end # GenericObjectAbstraction
|
106
|
+
|
107
|
+
end # MobyBehaviour
|