mu 5.7.8 → 5.7.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. data/lib/mu.rb +1 -1
  2. data/lib/mu/command.rb +18 -2
  3. data/lib/mu/command/cmd_musl.rb +165 -0
  4. data/lib/mu/command/cmd_runscale.rb +12 -8
  5. data/lib/mu/command/help.rb +1 -0
  6. data/lib/mu/har.rb +449 -0
  7. data/lib/mu/libxml.rb +21 -0
  8. data/lib/mu/maker.rb +288 -0
  9. data/lib/mu/xmlizable.rb +559 -0
  10. metadata +78 -267
  11. data/rdoc/Gemfile.html +0 -194
  12. data/rdoc/LICENSE_txt.html +0 -201
  13. data/rdoc/Mu.html +0 -478
  14. data/rdoc/Mu/Client.html +0 -461
  15. data/rdoc/Mu/Command.html +0 -338
  16. data/rdoc/Mu/Command/API.html +0 -844
  17. data/rdoc/Mu/Command/Cmd_appid.html +0 -1341
  18. data/rdoc/Mu/Command/Cmd_cli.html +0 -800
  19. data/rdoc/Mu/Command/Cmd_ddt.html +0 -1612
  20. data/rdoc/Mu/Command/Cmd_homepage.html +0 -762
  21. data/rdoc/Mu/Command/Cmd_muapi.html +0 -1363
  22. data/rdoc/Mu/Command/Cmd_netconfig.html +0 -1077
  23. data/rdoc/Mu/Command/Cmd_runscale.html +0 -1441
  24. data/rdoc/Mu/Command/Cmd_runscenario.html +0 -787
  25. data/rdoc/Mu/Command/Cmd_runverify.html +0 -893
  26. data/rdoc/Mu/Command/Cmd_scale.html +0 -1323
  27. data/rdoc/Mu/Command/Cmd_system.html +0 -677
  28. data/rdoc/Mu/Command/Curl.html +0 -751
  29. data/rdoc/Mu/Command/Help.html +0 -305
  30. data/rdoc/Mu/Curl.html +0 -243
  31. data/rdoc/Mu/Curl/Error.html +0 -304
  32. data/rdoc/Mu/Curl/Error/Authorize.html +0 -355
  33. data/rdoc/Mu/Curl/Error/Connect.html +0 -286
  34. data/rdoc/Mu/Curl/Error/DNS.html +0 -236
  35. data/rdoc/Mu/Curl/Error/Region.html +0 -307
  36. data/rdoc/Mu/Curl/Error/Status.html +0 -286
  37. data/rdoc/Mu/Curl/Error/Timeout.html +0 -286
  38. data/rdoc/Mu/Curl/Verify.html +0 -472
  39. data/rdoc/Mu/Curl/Verify/Request.html +0 -424
  40. data/rdoc/Mu/Curl/Verify/Response.html +0 -372
  41. data/rdoc/Mu/Curl/Verify/Result.html +0 -373
  42. data/rdoc/Mu/Ddt.html +0 -1347
  43. data/rdoc/Mu/Helper.html +0 -517
  44. data/rdoc/Mu/Homepage.html +0 -719
  45. data/rdoc/Mu/HttpHelper.html +0 -890
  46. data/rdoc/Mu/Muapi.html +0 -1226
  47. data/rdoc/Mu/Netconfig.html +0 -1178
  48. data/rdoc/Mu/Scale.html +0 -1359
  49. data/rdoc/Mu/System.html +0 -504
  50. data/rdoc/Object.html +0 -285
  51. data/rdoc/README_rdoc.html +0 -892
  52. data/rdoc/Rakefile.html +0 -257
  53. data/rdoc/TCTestMu.html +0 -2583
  54. data/rdoc/Test.html +0 -235
  55. data/rdoc/Test/Unit.html +0 -235
  56. data/rdoc/Test/Unit/TestCase.html +0 -236
  57. data/rdoc/Test/helper_rb.html +0 -62
  58. data/rdoc/Test/tc_test_mu_rb.html +0 -60
  59. data/rdoc/VERSION.html +0 -179
  60. data/rdoc/bin/mu.html +0 -54
  61. data/rdoc/classes/Mu.html +0 -132
  62. data/rdoc/classes/Mu/Client.html +0 -214
  63. data/rdoc/classes/Mu/Command.html +0 -129
  64. data/rdoc/classes/Mu/Command/API.html +0 -362
  65. data/rdoc/classes/Mu/Command/Cmd_appid.html +0 -238
  66. data/rdoc/classes/Mu/Command/Cmd_cli.html +0 -273
  67. data/rdoc/classes/Mu/Command/Cmd_ddt.html +0 -639
  68. data/rdoc/classes/Mu/Command/Cmd_homepage.html +0 -276
  69. data/rdoc/classes/Mu/Command/Cmd_muapi.html +0 -527
  70. data/rdoc/classes/Mu/Command/Cmd_netconfig.html +0 -399
  71. data/rdoc/classes/Mu/Command/Cmd_runscale.html +0 -220
  72. data/rdoc/classes/Mu/Command/Cmd_runscenario.html +0 -197
  73. data/rdoc/classes/Mu/Command/Cmd_runverify.html +0 -196
  74. data/rdoc/classes/Mu/Command/Cmd_scale.html +0 -511
  75. data/rdoc/classes/Mu/Command/Cmd_system.html +0 -236
  76. data/rdoc/classes/Mu/Command/Curl.html +0 -182
  77. data/rdoc/classes/Mu/Command/Help.html +0 -137
  78. data/rdoc/classes/Mu/Curl.html +0 -116
  79. data/rdoc/classes/Mu/Curl/Error.html +0 -148
  80. data/rdoc/classes/Mu/Curl/Error/Authorize.html +0 -165
  81. data/rdoc/classes/Mu/Curl/Error/Connect.html +0 -139
  82. data/rdoc/classes/Mu/Curl/Error/DNS.html +0 -113
  83. data/rdoc/classes/Mu/Curl/Error/Region.html +0 -150
  84. data/rdoc/classes/Mu/Curl/Error/Status.html +0 -139
  85. data/rdoc/classes/Mu/Curl/Error/Timeout.html +0 -139
  86. data/rdoc/classes/Mu/Curl/Verify.html +0 -207
  87. data/rdoc/classes/Mu/Curl/Verify/Request.html +0 -187
  88. data/rdoc/classes/Mu/Curl/Verify/Response.html +0 -172
  89. data/rdoc/classes/Mu/Curl/Verify/Result.html +0 -172
  90. data/rdoc/classes/Mu/Ddt.html +0 -610
  91. data/rdoc/classes/Mu/Helper.html +0 -308
  92. data/rdoc/classes/Mu/Homepage.html +0 -306
  93. data/rdoc/classes/Mu/HttpHelper.html +0 -393
  94. data/rdoc/classes/Mu/Muapi.html +0 -549
  95. data/rdoc/classes/Mu/Netconfig.html +0 -478
  96. data/rdoc/classes/Mu/Scale.html +0 -580
  97. data/rdoc/classes/Mu/System.html +0 -232
  98. data/rdoc/classes/Object.html +0 -139
  99. data/rdoc/classes/TCTestMu.html +0 -948
  100. data/rdoc/classes/Test.html +0 -107
  101. data/rdoc/classes/Test/Unit.html +0 -107
  102. data/rdoc/classes/Test/Unit/TestCase.html +0 -113
  103. data/rdoc/created.rid +0 -36
  104. data/rdoc/files/lib/mu/api/ddt_rb.html +0 -101
  105. data/rdoc/files/lib/mu/api/homepage_rb.html +0 -101
  106. data/rdoc/files/lib/mu/api/muapi_rb.html +0 -101
  107. data/rdoc/files/lib/mu/api/netconfig_rb.html +0 -101
  108. data/rdoc/files/lib/mu/api/scale_rb.html +0 -101
  109. data/rdoc/files/lib/mu/api/system_rb.html +0 -101
  110. data/rdoc/files/lib/mu/client_rb.html +0 -101
  111. data/rdoc/files/lib/mu/command/api_rb.html +0 -101
  112. data/rdoc/files/lib/mu/command/cmd_appid_rb.html +0 -119
  113. data/rdoc/files/lib/mu/command/cmd_cli_rb.html +0 -108
  114. data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +0 -116
  115. data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +0 -115
  116. data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +0 -115
  117. data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +0 -116
  118. data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +0 -119
  119. data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +0 -115
  120. data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +0 -118
  121. data/rdoc/files/lib/mu/command/cmd_scale_rb.html +0 -115
  122. data/rdoc/files/lib/mu/command/cmd_system_rb.html +0 -116
  123. data/rdoc/files/lib/mu/command/curl_rb.html +0 -101
  124. data/rdoc/files/lib/mu/command/help_rb.html +0 -101
  125. data/rdoc/files/lib/mu/command_rb.html +0 -107
  126. data/rdoc/files/lib/mu/curl/error_rb.html +0 -101
  127. data/rdoc/files/lib/mu/curl/verify_rb.html +0 -101
  128. data/rdoc/files/lib/mu/helper_rb.html +0 -101
  129. data/rdoc/files/lib/mu/http_helper_rb.html +0 -101
  130. data/rdoc/files/lib/mu_rb.html +0 -121
  131. data/rdoc/files/test/helper_rb.html +0 -112
  132. data/rdoc/files/test/tc_test_mu_rb.html +0 -111
  133. data/rdoc/fr_class_index.html +0 -34
  134. data/rdoc/fr_file_index.html +0 -31
  135. data/rdoc/fr_method_index.html +0 -112
  136. data/rdoc/images/brick.png +0 -0
  137. data/rdoc/images/brick_link.png +0 -0
  138. data/rdoc/images/bug.png +0 -0
  139. data/rdoc/images/bullet_black.png +0 -0
  140. data/rdoc/images/bullet_toggle_minus.png +0 -0
  141. data/rdoc/images/bullet_toggle_plus.png +0 -0
  142. data/rdoc/images/date.png +0 -0
  143. data/rdoc/images/find.png +0 -0
  144. data/rdoc/images/loadingAnimation.gif +0 -0
  145. data/rdoc/images/macFFBgHack.png +0 -0
  146. data/rdoc/images/package.png +0 -0
  147. data/rdoc/images/page_green.png +0 -0
  148. data/rdoc/images/page_white_text.png +0 -0
  149. data/rdoc/images/page_white_width.png +0 -0
  150. data/rdoc/images/plugin.png +0 -0
  151. data/rdoc/images/ruby.png +0 -0
  152. data/rdoc/images/tag_green.png +0 -0
  153. data/rdoc/images/wrench.png +0 -0
  154. data/rdoc/images/wrench_orange.png +0 -0
  155. data/rdoc/images/zoom.png +0 -0
  156. data/rdoc/index.html +0 -884
  157. data/rdoc/js/darkfish.js +0 -116
  158. data/rdoc/js/jquery.js +0 -32
  159. data/rdoc/js/quicksearch.js +0 -114
  160. data/rdoc/js/thickbox-compressed.js +0 -10
  161. data/rdoc/lib/mu/api/ddt_rb.html +0 -52
  162. data/rdoc/lib/mu/api/homepage_rb.html +0 -52
  163. data/rdoc/lib/mu/api/muapi_rb.html +0 -52
  164. data/rdoc/lib/mu/api/netconfig_rb.html +0 -52
  165. data/rdoc/lib/mu/api/scale_rb.html +0 -52
  166. data/rdoc/lib/mu/api/system_rb.html +0 -52
  167. data/rdoc/lib/mu/client_rb.html +0 -52
  168. data/rdoc/lib/mu/command/api_rb.html +0 -52
  169. data/rdoc/lib/mu/command/cmd_appid_rb.html +0 -62
  170. data/rdoc/lib/mu/command/cmd_cli_rb.html +0 -55
  171. data/rdoc/lib/mu/command/cmd_ddt_rb.html +0 -60
  172. data/rdoc/lib/mu/command/cmd_homepage_rb.html +0 -57
  173. data/rdoc/lib/mu/command/cmd_muapi_rb.html +0 -59
  174. data/rdoc/lib/mu/command/cmd_netconfig_rb.html +0 -58
  175. data/rdoc/lib/mu/command/cmd_runscale_rb.html +0 -62
  176. data/rdoc/lib/mu/command/cmd_runscenario_rb.html +0 -57
  177. data/rdoc/lib/mu/command/cmd_runverify_rb.html +0 -61
  178. data/rdoc/lib/mu/command/cmd_scale_rb.html +0 -58
  179. data/rdoc/lib/mu/command/cmd_system_rb.html +0 -59
  180. data/rdoc/lib/mu/command/curl_rb.html +0 -52
  181. data/rdoc/lib/mu/command/help_rb.html +0 -52
  182. data/rdoc/lib/mu/command_rb.html +0 -55
  183. data/rdoc/lib/mu/curl/error_rb.html +0 -52
  184. data/rdoc/lib/mu/curl/verify_rb.html +0 -52
  185. data/rdoc/lib/mu/helper_rb.html +0 -52
  186. data/rdoc/lib/mu/http_helper_rb.html +0 -52
  187. data/rdoc/lib/mu_rb.html +0 -80
  188. data/rdoc/rdoc-style.css +0 -208
  189. data/rdoc/rdoc.css +0 -706
  190. data/test/data/app_id_stats.csv +0 -1
  191. data/test/data/app_id_status.json +0 -156
  192. data/test/data/data_cgi.msl +0 -94
  193. data/test/data/data_cgi.xml +0 -322
  194. data/test/data/default_test.csv +0 -3
  195. data/test/data/ftp_with_channel.xml +0 -1643
  196. data/test/data/irc.xml +0 -3837
  197. data/test/data/scale.json +0 -25
  198. data/test/data/test_data_cgi_error.xml +0 -35
@@ -1 +0,0 @@
1
- data_cgi.msl,32082,0,0,13461213.0,32127,13217784.0,32082,13226436.0,32103,13452833.0,32107
@@ -1,156 +0,0 @@
1
- {
2
- "timestamp": 1300835052,
3
- "_rev": "4-f1c34c5dbdfc0c10da0702bb6fb9382d",
4
- "_id": "bots_all",
5
- "status": {
6
- "okay": true,
7
- "running": false,
8
- "statistics": {
9
- "summary": {
10
- "duration": 11.119128,
11
- "client": {
12
- "tx": {
13
- "msgs": 32127,
14
- "bytes": 13461213.0
15
- },
16
- "rx": {
17
- "msgs": 32082,
18
- "bytes": 13217784.0
19
- }
20
- },
21
- "asserts": {
22
- "executed": 64164,
23
- "errors": 0,
24
- "failed": 0
25
- },
26
- "server": {
27
- "tx": {
28
- "msgs": 32103,
29
- "bytes": 13226436.0
30
- },
31
- "rx": {
32
- "msgs": 32107,
33
- "bytes": 13452833.0
34
- }
35
- },
36
- "instances": {
37
- "timeouts": 0,
38
- "total": 32082,
39
- "executed": 32082,
40
- "errors": 0
41
- }
42
- },
43
- "scenarios": [
44
- {
45
- "duration": {
46
- "min": 0.007281,
47
- "max": 0.022727,
48
- "avg": 0.014803
49
- },
50
- "client": {
51
- "tx": {
52
- "msgs": 32127,
53
- "bytes": 13461213.0
54
- },
55
- "rx": {
56
- "msgs": 32082,
57
- "bytes": 13217784.0
58
- }
59
- },
60
- "asserts": [
61
- {
62
- "executed": 32082,
63
- "errors": 0,
64
- "failed": 0
65
- },
66
- {
67
- "executed": 32082,
68
- "errors": 0,
69
- "failed": 0
70
- }
71
- ],
72
- "name": 0,
73
- "volume": 0,
74
- "server": {
75
- "tx": {
76
- "msgs": 32103,
77
- "bytes": 13226436.0
78
- },
79
- "rx": {
80
- "msgs": 32107,
81
- "bytes": 13452833.0
82
- }
83
- },
84
- "steps": [
85
- {
86
- "timeouts": 0,
87
- "executed": 32150,
88
- "duration": {
89
- "min": 0.003424,
90
- "max": 0.008729,
91
- "avg": 0.005646
92
- },
93
- "errors": 0,
94
- "skipped": 0
95
- },
96
- {
97
- "timeouts": 0,
98
- "executed": 32127,
99
- "duration": {
100
- "min": 0.0,
101
- "max": 0.006354,
102
- "avg": 0.002695
103
- },
104
- "errors": 0,
105
- "skipped": 0
106
- },
107
- {
108
- "timeouts": 0,
109
- "executed": 32107,
110
- "duration": {
111
- "min": 9.2e-05,
112
- "max": 0.003784,
113
- "avg": 0.001594
114
- },
115
- "errors": 0,
116
- "skipped": 0
117
- },
118
- {
119
- "timeouts": 0,
120
- "executed": 32103,
121
- "duration": {
122
- "min": 0.0,
123
- "max": 0.00557,
124
- "avg": 0.003233
125
- },
126
- "errors": 0,
127
- "skipped": 0
128
- },
129
- {
130
- "timeouts": 0,
131
- "executed": 32082,
132
- "duration": {
133
- "min": 0.0,
134
- "max": 0.004207,
135
- "avg": 0.002002
136
- },
137
- "errors": 0,
138
- "skipped": 0
139
- }
140
- ],
141
- "instances": {
142
- "timeouts": 0,
143
- "total": 32082,
144
- "executed": 32082,
145
- "errors": 0
146
- }
147
- }
148
- ]
149
- }
150
- },
151
- "bot_id": "bots_all",
152
- "label": "all",
153
- "group": "active",
154
- "type": "status",
155
- "filename": "data_cgi.msl"
156
- }
@@ -1,94 +0,0 @@
1
- scenario(name: "data_cgi") {
2
- hosts {
3
- # a2/192.168.40.217|
4
- &host_0 = host(type: v4)
5
- # 192.168.40.9|
6
- &host_1 = host(type: v4)
7
- }
8
-
9
- options {
10
- # data_length|data length
11
- $data_length = "3"
12
- # data|data
13
- $data = "123"
14
- # data_type|data type
15
- $data_type = "numbers"
16
- # url|url
17
- $url = "/whats_my_data.cgi?data"
18
- # http_port|http_port
19
- $http_port = "80"
20
- }
21
-
22
- steps {
23
- HTTP_80 = tcp(timeout: 10000, src: &host_0, dst: &host_1, dst_port: $http_port)
24
-
25
- # GET /whats_my_data.cgi?data=123 HTTP/1.1
26
- HTTP_GET_Client_Send = HTTP_80.client_send {
27
- # get|GET /whats_my_data.cgi?data=123 HTTP/1.1\r\n
28
- line [
29
- dsv(delimiter: " ") [
30
- # request_method|Request Method: GET
31
- "GET"
32
- dsv(delimiter: "=") [
33
- $url
34
- $data
35
- ]
36
- "HTTP/1.1"
37
- ]
38
- ]
39
- # host|Host: dell-9\r\n
40
- "Host: dell-9\r\n"
41
- # user_agent|User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3\r\n
42
- "User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3\r\n"
43
- # accept|Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
44
- "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n"
45
- # accept_language|Accept-Language: en-us,en;q=0.5\r\n
46
- "Accept-Language: en-us,en;q=0.5\r\n"
47
- # accept_encoding|Accept-Encoding: gzip,deflate\r\n
48
- "Accept-Encoding: gzip,deflate\r\n"
49
- # accept_charset|Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
50
- "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n"
51
- # keep_alive|Keep-Alive: 300\r\n
52
- "Keep-Alive: 300\r\n"
53
- # connection|Connection: keep-alive\r\n
54
- "Connection: keep-alive\r\n"
55
- # cache_control|Cache-Control: max-age=0\r\n
56
- "Cache-Control: max-age=0\r\n"
57
- # |\r\n
58
- "\r\n"
59
- }
60
-
61
- # GET /whats_my_data.cgi?data=123 HTTP/1.1
62
- HTTP_GET_Server_Receive = HTTP_GET_Client_Send.server_receive
63
-
64
- # HTTP/1.1 200 OK (text/html)
65
- HTTP_Server_Send = HTTP_80.server_send {
66
- # http|HTTP/1.1 200 OK\r\n
67
- "HTTP/1.1 200 OK\r\n"
68
- # date|Date: Wed, 16 Sep 2009 00:09:17 GMT\r\n
69
- "Date: Wed, 16 Sep 2009 00:09:17 GMT\r\n"
70
- # server|Server: Apache/2.0.52 (CentOS)\r\n
71
- "Server: Apache/2.0.52 (CentOS)\r\n"
72
- # content_length_header|Content-Length: 243\r\n
73
- "Content-Length: 243\r\n"
74
- # connection|Connection: close\r\n
75
- "Connection: close\r\n"
76
- # content_type|Content-Type: text/html; charset=UTF-8\r\n
77
- "Content-Type: text/html; charset=UTF-8\r\n"
78
- # |\r\n
79
- "\r\n"
80
- "<"
81
- "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"><HTML><HEAD><TITLE>What\'s My Data?</TITLE></HEAD><BODY><H1>Data has been analyzed</H1><P>Input: 123</P><P>Length: 3</P><P>Type: numbers</P></BODY></HTML>"
82
- }
83
-
84
- # HTTP/1.1 200 OK (text/html)
85
- HTTP_Client_Receive = HTTP_Server_Send.client_receive {
86
- assertions {
87
- # data type check
88
- string(/Type: (.+?)</:1) == $data_type
89
- # data length check
90
- string(/Length: (.+?)</:1) >= $data_length
91
- }
92
- }
93
- }
94
- }
@@ -1,322 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <mu_config version="5.0">
3
- <templates>
4
- <scenario name="data_cgi" uuid="ef6fe3eb-4e9f-44b5-a99e-c431d82e4eeb" version="6">
5
- <hosts>
6
- <host>
7
- <id>host_0</id>
8
- <role>192.168.40.217</role>
9
- <type>v4</type>
10
- </host>
11
- <host>
12
- <id>host_1</id>
13
- <role>192.168.40.9</role>
14
- <type>v4</type>
15
- </host>
16
- </hosts>
17
- <options>
18
- <string>
19
- <description>data length</description>
20
- <id>data_length</id>
21
- <name>data_length</name>
22
- <value>3</value>
23
- </string>
24
- <string>
25
- <description>data</description>
26
- <id>data</id>
27
- <name>data</name>
28
- <value>123</value>
29
- </string>
30
- <string>
31
- <description>data type</description>
32
- <id>data_type</id>
33
- <name>data_type</name>
34
- <value>numbers</value>
35
- </string>
36
- <string>
37
- <description>url</description>
38
- <id>url</id>
39
- <name>url</name>
40
- <value>/whats_my_data.cgi?data</value>
41
- </string>
42
- <string>
43
- <description>http_port</description>
44
- <id>http_port</id>
45
- <name>http_port</name>
46
- <value>80</value>
47
- </string>
48
- </options>
49
- <steps>
50
- <tcp>
51
- <name>HTTP_80</name>
52
- <dst>
53
- <host>
54
- <id>host_1</id>
55
- </host>
56
- </dst>
57
- <src>
58
- <host>
59
- <id>host_0</id>
60
- </host>
61
- </src>
62
- <timeout>2500</timeout>
63
- <dst_port>
64
- <option>
65
- <id>http_port</id>
66
- </option>
67
- </dst_port>
68
- <ip_version>v4</ip_version>
69
- <type>client</type>
70
- </tcp>
71
- <tcp_client_send>
72
- <description>GET /whats_my_data.cgi?data=123 HTTP/1.1</description>
73
- <name>HTTP_GET_Client_Send</name>
74
- <transport>HTTP_80</transport>
75
- <mutable>true</mutable>
76
- <payload>
77
- <line label="GET /whats_my_data.cgi?data=123 HTTP/1.1\r\n" name="get">
78
- <terminator>\r\n</terminator>
79
- <value>
80
- <dsv>
81
- <delimiter> </delimiter>
82
- <elements>
83
- <string_field label="Request Method: GET" name="request_method">
84
- <value>
85
- <string>
86
- <value>GET</value>
87
- </string>
88
- </value>
89
- </string_field>
90
- <dsv>
91
- <delimiter>=</delimiter>
92
- <elements>
93
- <string_field>
94
- <value>
95
- <option>
96
- <id>url</id>
97
- </option>
98
- </value>
99
- </string_field>
100
- <string_field>
101
- <value>
102
- <option>
103
- <id>data</id>
104
- </option>
105
- </value>
106
- </string_field>
107
- </elements>
108
- </dsv>
109
- <string_field>
110
- <value>
111
- <string>
112
- <value>HTTP/1.1</value>
113
- </string>
114
- </value>
115
- </string_field>
116
- </elements>
117
- </dsv>
118
- </value>
119
- </line>
120
- <string_field label="Host: dell-9\r\n" name="host">
121
- <value>
122
- <string>
123
- <value>Host: dell-9\r\n</value>
124
- </string>
125
- </value>
126
- </string_field>
127
- <string_field label="User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3\r\n" name="user_agent">
128
- <value>
129
- <string>
130
- <value>User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3\r\n</value>
131
- </string>
132
- </value>
133
- </string_field>
134
- <string_field label="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" name="accept">
135
- <value>
136
- <string>
137
- <value>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n</value>
138
- </string>
139
- </value>
140
- </string_field>
141
- <string_field label="Accept-Language: en-us,en;q=0.5\r\n" name="accept_language">
142
- <value>
143
- <string>
144
- <value>Accept-Language: en-us,en;q=0.5\r\n</value>
145
- </string>
146
- </value>
147
- </string_field>
148
- <string_field label="Accept-Encoding: gzip,deflate\r\n" name="accept_encoding">
149
- <value>
150
- <string>
151
- <value>Accept-Encoding: gzip,deflate\r\n</value>
152
- </string>
153
- </value>
154
- </string_field>
155
- <string_field label="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n" name="accept_charset">
156
- <value>
157
- <string>
158
- <value>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n</value>
159
- </string>
160
- </value>
161
- </string_field>
162
- <string_field label="Keep-Alive: 300\r\n" name="keep_alive">
163
- <value>
164
- <string>
165
- <value>Keep-Alive: 300\r\n</value>
166
- </string>
167
- </value>
168
- </string_field>
169
- <string_field label="Connection: keep-alive\r\n" name="connection">
170
- <value>
171
- <string>
172
- <value>Connection: keep-alive\r\n</value>
173
- </string>
174
- </value>
175
- </string_field>
176
- <string_field label="Cache-Control: max-age=0\r\n" name="cache_control">
177
- <value>
178
- <string>
179
- <value>Cache-Control: max-age=0\r\n</value>
180
- </string>
181
- </value>
182
- </string_field>
183
- <string_field label="\r\n">
184
- <value>
185
- <string>
186
- <value>\r\n</value>
187
- </string>
188
- </value>
189
- </string_field>
190
- </payload>
191
- </tcp_client_send>
192
- <tcp_server_receive>
193
- <description>GET /whats_my_data.cgi?data=123 HTTP/1.1</description>
194
- <name>HTTP_GET_Server_Receive</name>
195
- <transport>HTTP_80</transport>
196
- <assertions/>
197
- <send_action>HTTP_GET_Client_Send</send_action>
198
- <variables/>
199
- </tcp_server_receive>
200
- <tcp_server_send>
201
- <description>HTTP/1.1 200 OK (text/html)</description>
202
- <name>HTTP_Server_Send</name>
203
- <transport>HTTP_80</transport>
204
- <mutable>true</mutable>
205
- <payload>
206
- <string_field label="HTTP/1.1 200 OK\r\n" name="http">
207
- <value>
208
- <string>
209
- <value>HTTP/1.1 200 OK\r\n</value>
210
- </string>
211
- </value>
212
- </string_field>
213
- <string_field label="Date: Wed, 16 Sep 2009 00:09:17 GMT\r\n" name="date">
214
- <value>
215
- <string>
216
- <value>Date: Wed, 16 Sep 2009 00:09:17 GMT\r\n</value>
217
- </string>
218
- </value>
219
- </string_field>
220
- <string_field label="Server: Apache/2.0.52 (CentOS)\r\n" name="server">
221
- <value>
222
- <string>
223
- <value>Server: Apache/2.0.52 (CentOS)\r\n</value>
224
- </string>
225
- </value>
226
- </string_field>
227
- <string_field label="Content-Length: 243\r\n" name="content_length_header">
228
- <value>
229
- <string>
230
- <value>Content-Length: 243\r\n</value>
231
- </string>
232
- </value>
233
- </string_field>
234
- <string_field label="Connection: close\r\n" name="connection">
235
- <value>
236
- <string>
237
- <value>Connection: close\r\n</value>
238
- </string>
239
- </value>
240
- </string_field>
241
- <string_field label="Content-Type: text/html; charset=UTF-8\r\n" name="content_type">
242
- <value>
243
- <string>
244
- <value>Content-Type: text/html; charset=UTF-8\r\n</value>
245
- </string>
246
- </value>
247
- </string_field>
248
- <string_field label="\r\n">
249
- <value>
250
- <string>
251
- <value>\r\n</value>
252
- </string>
253
- </value>
254
- </string_field>
255
- <string_field>
256
- <value>
257
- <string>
258
- <value>&lt;</value>
259
- </string>
260
- </value>
261
- </string_field>
262
- <string_field>
263
- <value>
264
- <string>
265
- <value>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;What's My Data?&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;Data has been analyzed&lt;/H1&gt;&lt;P&gt;Input: 123&lt;/P&gt;&lt;P&gt;Length: 3&lt;/P&gt;&lt;P&gt;Type: numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</value>
266
- </string>
267
- </value>
268
- </string_field>
269
- </payload>
270
- </tcp_server_send>
271
- <tcp_client_receive>
272
- <description>HTTP/1.1 200 OK (text/html)</description>
273
- <name>HTTP_Client_Receive</name>
274
- <transport>HTTP_80</transport>
275
- <assertions>
276
- <compare>
277
- <description>data type check</description>
278
- <status>passed</status>
279
- <value2>
280
- <regex>
281
- <decode>string</decode>
282
- <ignore_case>false</ignore_case>
283
- <index>1</index>
284
- <multiline>false</multiline>
285
- <pattern>Type: (.+?)&lt;</pattern>
286
- </regex>
287
- </value2>
288
- <value1>
289
- <option>
290
- <id>data_type</id>
291
- </option>
292
- </value1>
293
- <operation>equal</operation>
294
- </compare>
295
- <compare>
296
- <description>data length check</description>
297
- <status>passed</status>
298
- <value2>
299
- <regex>
300
- <decode>string</decode>
301
- <ignore_case>false</ignore_case>
302
- <index>1</index>
303
- <multiline>false</multiline>
304
- <pattern>Length: (.+?)&lt;</pattern>
305
- </regex>
306
- </value2>
307
- <value1>
308
- <option>
309
- <id>data_length</id>
310
- </option>
311
- </value1>
312
- <operation>less_than_or_equal</operation>
313
- </compare>
314
- </assertions>
315
- <send_action>HTTP_Server_Send</send_action>
316
- <variables/>
317
- </tcp_client_receive>
318
- </steps>
319
- <variables/>
320
- </scenario>
321
- </templates>
322
- </mu_config>