mu 5.7.8 → 5.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mu.rb +1 -1
- data/lib/mu/command.rb +18 -2
- data/lib/mu/command/cmd_musl.rb +165 -0
- data/lib/mu/command/cmd_runscale.rb +12 -8
- data/lib/mu/command/help.rb +1 -0
- data/lib/mu/har.rb +449 -0
- data/lib/mu/libxml.rb +21 -0
- data/lib/mu/maker.rb +288 -0
- data/lib/mu/xmlizable.rb +559 -0
- metadata +78 -267
- data/rdoc/Gemfile.html +0 -194
- data/rdoc/LICENSE_txt.html +0 -201
- data/rdoc/Mu.html +0 -478
- data/rdoc/Mu/Client.html +0 -461
- data/rdoc/Mu/Command.html +0 -338
- data/rdoc/Mu/Command/API.html +0 -844
- data/rdoc/Mu/Command/Cmd_appid.html +0 -1341
- data/rdoc/Mu/Command/Cmd_cli.html +0 -800
- data/rdoc/Mu/Command/Cmd_ddt.html +0 -1612
- data/rdoc/Mu/Command/Cmd_homepage.html +0 -762
- data/rdoc/Mu/Command/Cmd_muapi.html +0 -1363
- data/rdoc/Mu/Command/Cmd_netconfig.html +0 -1077
- data/rdoc/Mu/Command/Cmd_runscale.html +0 -1441
- data/rdoc/Mu/Command/Cmd_runscenario.html +0 -787
- data/rdoc/Mu/Command/Cmd_runverify.html +0 -893
- data/rdoc/Mu/Command/Cmd_scale.html +0 -1323
- data/rdoc/Mu/Command/Cmd_system.html +0 -677
- data/rdoc/Mu/Command/Curl.html +0 -751
- data/rdoc/Mu/Command/Help.html +0 -305
- data/rdoc/Mu/Curl.html +0 -243
- data/rdoc/Mu/Curl/Error.html +0 -304
- data/rdoc/Mu/Curl/Error/Authorize.html +0 -355
- data/rdoc/Mu/Curl/Error/Connect.html +0 -286
- data/rdoc/Mu/Curl/Error/DNS.html +0 -236
- data/rdoc/Mu/Curl/Error/Region.html +0 -307
- data/rdoc/Mu/Curl/Error/Status.html +0 -286
- data/rdoc/Mu/Curl/Error/Timeout.html +0 -286
- data/rdoc/Mu/Curl/Verify.html +0 -472
- data/rdoc/Mu/Curl/Verify/Request.html +0 -424
- data/rdoc/Mu/Curl/Verify/Response.html +0 -372
- data/rdoc/Mu/Curl/Verify/Result.html +0 -373
- data/rdoc/Mu/Ddt.html +0 -1347
- data/rdoc/Mu/Helper.html +0 -517
- data/rdoc/Mu/Homepage.html +0 -719
- data/rdoc/Mu/HttpHelper.html +0 -890
- data/rdoc/Mu/Muapi.html +0 -1226
- data/rdoc/Mu/Netconfig.html +0 -1178
- data/rdoc/Mu/Scale.html +0 -1359
- data/rdoc/Mu/System.html +0 -504
- data/rdoc/Object.html +0 -285
- data/rdoc/README_rdoc.html +0 -892
- data/rdoc/Rakefile.html +0 -257
- data/rdoc/TCTestMu.html +0 -2583
- data/rdoc/Test.html +0 -235
- data/rdoc/Test/Unit.html +0 -235
- data/rdoc/Test/Unit/TestCase.html +0 -236
- data/rdoc/Test/helper_rb.html +0 -62
- data/rdoc/Test/tc_test_mu_rb.html +0 -60
- data/rdoc/VERSION.html +0 -179
- data/rdoc/bin/mu.html +0 -54
- data/rdoc/classes/Mu.html +0 -132
- data/rdoc/classes/Mu/Client.html +0 -214
- data/rdoc/classes/Mu/Command.html +0 -129
- data/rdoc/classes/Mu/Command/API.html +0 -362
- data/rdoc/classes/Mu/Command/Cmd_appid.html +0 -238
- data/rdoc/classes/Mu/Command/Cmd_cli.html +0 -273
- data/rdoc/classes/Mu/Command/Cmd_ddt.html +0 -639
- data/rdoc/classes/Mu/Command/Cmd_homepage.html +0 -276
- data/rdoc/classes/Mu/Command/Cmd_muapi.html +0 -527
- data/rdoc/classes/Mu/Command/Cmd_netconfig.html +0 -399
- data/rdoc/classes/Mu/Command/Cmd_runscale.html +0 -220
- data/rdoc/classes/Mu/Command/Cmd_runscenario.html +0 -197
- data/rdoc/classes/Mu/Command/Cmd_runverify.html +0 -196
- data/rdoc/classes/Mu/Command/Cmd_scale.html +0 -511
- data/rdoc/classes/Mu/Command/Cmd_system.html +0 -236
- data/rdoc/classes/Mu/Command/Curl.html +0 -182
- data/rdoc/classes/Mu/Command/Help.html +0 -137
- data/rdoc/classes/Mu/Curl.html +0 -116
- data/rdoc/classes/Mu/Curl/Error.html +0 -148
- data/rdoc/classes/Mu/Curl/Error/Authorize.html +0 -165
- data/rdoc/classes/Mu/Curl/Error/Connect.html +0 -139
- data/rdoc/classes/Mu/Curl/Error/DNS.html +0 -113
- data/rdoc/classes/Mu/Curl/Error/Region.html +0 -150
- data/rdoc/classes/Mu/Curl/Error/Status.html +0 -139
- data/rdoc/classes/Mu/Curl/Error/Timeout.html +0 -139
- data/rdoc/classes/Mu/Curl/Verify.html +0 -207
- data/rdoc/classes/Mu/Curl/Verify/Request.html +0 -187
- data/rdoc/classes/Mu/Curl/Verify/Response.html +0 -172
- data/rdoc/classes/Mu/Curl/Verify/Result.html +0 -172
- data/rdoc/classes/Mu/Ddt.html +0 -610
- data/rdoc/classes/Mu/Helper.html +0 -308
- data/rdoc/classes/Mu/Homepage.html +0 -306
- data/rdoc/classes/Mu/HttpHelper.html +0 -393
- data/rdoc/classes/Mu/Muapi.html +0 -549
- data/rdoc/classes/Mu/Netconfig.html +0 -478
- data/rdoc/classes/Mu/Scale.html +0 -580
- data/rdoc/classes/Mu/System.html +0 -232
- data/rdoc/classes/Object.html +0 -139
- data/rdoc/classes/TCTestMu.html +0 -948
- data/rdoc/classes/Test.html +0 -107
- data/rdoc/classes/Test/Unit.html +0 -107
- data/rdoc/classes/Test/Unit/TestCase.html +0 -113
- data/rdoc/created.rid +0 -36
- data/rdoc/files/lib/mu/api/ddt_rb.html +0 -101
- data/rdoc/files/lib/mu/api/homepage_rb.html +0 -101
- data/rdoc/files/lib/mu/api/muapi_rb.html +0 -101
- data/rdoc/files/lib/mu/api/netconfig_rb.html +0 -101
- data/rdoc/files/lib/mu/api/scale_rb.html +0 -101
- data/rdoc/files/lib/mu/api/system_rb.html +0 -101
- data/rdoc/files/lib/mu/client_rb.html +0 -101
- data/rdoc/files/lib/mu/command/api_rb.html +0 -101
- data/rdoc/files/lib/mu/command/cmd_appid_rb.html +0 -119
- data/rdoc/files/lib/mu/command/cmd_cli_rb.html +0 -108
- data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +0 -116
- data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +0 -115
- data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +0 -115
- data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +0 -116
- data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +0 -119
- data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +0 -115
- data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +0 -118
- data/rdoc/files/lib/mu/command/cmd_scale_rb.html +0 -115
- data/rdoc/files/lib/mu/command/cmd_system_rb.html +0 -116
- data/rdoc/files/lib/mu/command/curl_rb.html +0 -101
- data/rdoc/files/lib/mu/command/help_rb.html +0 -101
- data/rdoc/files/lib/mu/command_rb.html +0 -107
- data/rdoc/files/lib/mu/curl/error_rb.html +0 -101
- data/rdoc/files/lib/mu/curl/verify_rb.html +0 -101
- data/rdoc/files/lib/mu/helper_rb.html +0 -101
- data/rdoc/files/lib/mu/http_helper_rb.html +0 -101
- data/rdoc/files/lib/mu_rb.html +0 -121
- data/rdoc/files/test/helper_rb.html +0 -112
- data/rdoc/files/test/tc_test_mu_rb.html +0 -111
- data/rdoc/fr_class_index.html +0 -34
- data/rdoc/fr_file_index.html +0 -31
- data/rdoc/fr_method_index.html +0 -112
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +0 -884
- data/rdoc/js/darkfish.js +0 -116
- data/rdoc/js/jquery.js +0 -32
- data/rdoc/js/quicksearch.js +0 -114
- data/rdoc/js/thickbox-compressed.js +0 -10
- data/rdoc/lib/mu/api/ddt_rb.html +0 -52
- data/rdoc/lib/mu/api/homepage_rb.html +0 -52
- data/rdoc/lib/mu/api/muapi_rb.html +0 -52
- data/rdoc/lib/mu/api/netconfig_rb.html +0 -52
- data/rdoc/lib/mu/api/scale_rb.html +0 -52
- data/rdoc/lib/mu/api/system_rb.html +0 -52
- data/rdoc/lib/mu/client_rb.html +0 -52
- data/rdoc/lib/mu/command/api_rb.html +0 -52
- data/rdoc/lib/mu/command/cmd_appid_rb.html +0 -62
- data/rdoc/lib/mu/command/cmd_cli_rb.html +0 -55
- data/rdoc/lib/mu/command/cmd_ddt_rb.html +0 -60
- data/rdoc/lib/mu/command/cmd_homepage_rb.html +0 -57
- data/rdoc/lib/mu/command/cmd_muapi_rb.html +0 -59
- data/rdoc/lib/mu/command/cmd_netconfig_rb.html +0 -58
- data/rdoc/lib/mu/command/cmd_runscale_rb.html +0 -62
- data/rdoc/lib/mu/command/cmd_runscenario_rb.html +0 -57
- data/rdoc/lib/mu/command/cmd_runverify_rb.html +0 -61
- data/rdoc/lib/mu/command/cmd_scale_rb.html +0 -58
- data/rdoc/lib/mu/command/cmd_system_rb.html +0 -59
- data/rdoc/lib/mu/command/curl_rb.html +0 -52
- data/rdoc/lib/mu/command/help_rb.html +0 -52
- data/rdoc/lib/mu/command_rb.html +0 -55
- data/rdoc/lib/mu/curl/error_rb.html +0 -52
- data/rdoc/lib/mu/curl/verify_rb.html +0 -52
- data/rdoc/lib/mu/helper_rb.html +0 -52
- data/rdoc/lib/mu/http_helper_rb.html +0 -52
- data/rdoc/lib/mu_rb.html +0 -80
- data/rdoc/rdoc-style.css +0 -208
- data/rdoc/rdoc.css +0 -706
- data/test/data/app_id_stats.csv +0 -1
- data/test/data/app_id_status.json +0 -156
- data/test/data/data_cgi.msl +0 -94
- data/test/data/data_cgi.xml +0 -322
- data/test/data/default_test.csv +0 -3
- data/test/data/ftp_with_channel.xml +0 -1643
- data/test/data/irc.xml +0 -3837
- data/test/data/scale.json +0 -25
- data/test/data/test_data_cgi_error.xml +0 -35
@@ -1,373 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
-
|
8
|
-
<title>Class: Mu::Curl::Verify::Result</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../../../rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="../../../js/jquery.js" type="text/javascript"
|
13
|
-
charset="utf-8"></script>
|
14
|
-
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
|
15
|
-
charset="utf-8"></script>
|
16
|
-
<script src="../../../js/quicksearch.js" type="text/javascript"
|
17
|
-
charset="utf-8"></script>
|
18
|
-
<script src="../../../js/darkfish.js" type="text/javascript"
|
19
|
-
charset="utf-8"></script>
|
20
|
-
|
21
|
-
</head>
|
22
|
-
<body class="class">
|
23
|
-
|
24
|
-
<div id="metadata">
|
25
|
-
<div id="home-metadata">
|
26
|
-
<div id="home-section" class="section">
|
27
|
-
<h3 class="section-header">
|
28
|
-
<a href="../../../index.html">Home</a>
|
29
|
-
<a href="../../../index.html#classes">Classes</a>
|
30
|
-
<a href="../../../index.html#methods">Methods</a>
|
31
|
-
</h3>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="file-metadata">
|
36
|
-
<div id="file-list-section" class="section">
|
37
|
-
<h3 class="section-header">In Files</h3>
|
38
|
-
<div class="section-body">
|
39
|
-
<ul>
|
40
|
-
|
41
|
-
<li><a href="../../../lib/mu/curl/verify_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
-
class="thickbox" title="lib/mu/curl/verify.rb">lib/mu/curl/verify.rb</a></li>
|
43
|
-
|
44
|
-
</ul>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
|
48
|
-
|
49
|
-
</div>
|
50
|
-
|
51
|
-
<div id="class-metadata">
|
52
|
-
|
53
|
-
<!-- Parent Class -->
|
54
|
-
|
55
|
-
<div id="parent-class-section" class="section">
|
56
|
-
<h3 class="section-header">Parent</h3>
|
57
|
-
|
58
|
-
<p class="link"><a href="../../../Object.html">Object</a></p>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
|
62
|
-
|
63
|
-
<!-- Namespace Contents -->
|
64
|
-
|
65
|
-
|
66
|
-
<!-- Method Quickref -->
|
67
|
-
|
68
|
-
<div id="method-list-section" class="section">
|
69
|
-
<h3 class="section-header">Methods</h3>
|
70
|
-
<ul class="link-list">
|
71
|
-
|
72
|
-
<li><a href="#method-c-new">::new</a></li>
|
73
|
-
|
74
|
-
</ul>
|
75
|
-
</div>
|
76
|
-
|
77
|
-
|
78
|
-
<!-- Included Modules -->
|
79
|
-
|
80
|
-
</div>
|
81
|
-
|
82
|
-
<div id="project-metadata">
|
83
|
-
|
84
|
-
|
85
|
-
<div id="fileindex-section" class="section project-section">
|
86
|
-
<h3 class="section-header">Files</h3>
|
87
|
-
<ul>
|
88
|
-
|
89
|
-
<li class="file"><a href="../../../Gemfile.html">Gemfile</a></li>
|
90
|
-
|
91
|
-
<li class="file"><a href="../../../LICENSE_txt.html">LICENSE.txt</a></li>
|
92
|
-
|
93
|
-
<li class="file"><a href="../../../README_rdoc.html">README.rdoc</a></li>
|
94
|
-
|
95
|
-
<li class="file"><a href="../../../Rakefile.html">Rakefile</a></li>
|
96
|
-
|
97
|
-
<li class="file"><a href="../../../VERSION.html">VERSION</a></li>
|
98
|
-
|
99
|
-
</ul>
|
100
|
-
</div>
|
101
|
-
|
102
|
-
|
103
|
-
<div id="classindex-section" class="section project-section">
|
104
|
-
<h3 class="section-header">Class Index
|
105
|
-
<span class="search-toggle"><img src="../../../images/find.png"
|
106
|
-
height="16" width="16" alt="[+]"
|
107
|
-
title="show/hide quicksearch" /></span></h3>
|
108
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
109
|
-
<fieldset>
|
110
|
-
<legend>Quicksearch</legend>
|
111
|
-
<input type="text" name="quicksearch" value=""
|
112
|
-
class="quicksearch-field" />
|
113
|
-
</fieldset>
|
114
|
-
</form>
|
115
|
-
|
116
|
-
<ul class="link-list">
|
117
|
-
|
118
|
-
<li><a href="../../../Mu.html">Mu</a></li>
|
119
|
-
|
120
|
-
<li><a href="../../../Mu/Client.html">Mu::Client</a></li>
|
121
|
-
|
122
|
-
<li><a href="../../../Mu/Command.html">Mu::Command</a></li>
|
123
|
-
|
124
|
-
<li><a href="../../../Mu/Command/API.html">Mu::Command::API</a></li>
|
125
|
-
|
126
|
-
<li><a href="../../../Mu/Command/API.html">Mu::Command::API</a></li>
|
127
|
-
|
128
|
-
<li><a href="../../../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
129
|
-
|
130
|
-
<li><a href="../../../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
131
|
-
|
132
|
-
<li><a href="../../../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
133
|
-
|
134
|
-
<li><a href="../../../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
135
|
-
|
136
|
-
<li><a href="../../../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
137
|
-
|
138
|
-
<li><a href="../../../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
139
|
-
|
140
|
-
<li><a href="../../../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
141
|
-
|
142
|
-
<li><a href="../../../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
143
|
-
|
144
|
-
<li><a href="../../../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
145
|
-
|
146
|
-
<li><a href="../../../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
147
|
-
|
148
|
-
<li><a href="../../../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
149
|
-
|
150
|
-
<li><a href="../../../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
151
|
-
|
152
|
-
<li><a href="../../../Mu/Command/Help.html">Mu::Command::Help</a></li>
|
153
|
-
|
154
|
-
<li><a href="../../../Mu/Curl.html">Mu::Curl</a></li>
|
155
|
-
|
156
|
-
<li><a href="../../../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
157
|
-
|
158
|
-
<li><a href="../../../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
159
|
-
|
160
|
-
<li><a href="../../../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
161
|
-
|
162
|
-
<li><a href="../../../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
163
|
-
|
164
|
-
<li><a href="../../../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
165
|
-
|
166
|
-
<li><a href="../../../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
167
|
-
|
168
|
-
<li><a href="../../../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
169
|
-
|
170
|
-
<li><a href="../../../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
171
|
-
|
172
|
-
<li><a href="../../../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
173
|
-
|
174
|
-
<li><a href="../../../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
175
|
-
|
176
|
-
<li><a href="../../../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
177
|
-
|
178
|
-
<li><a href="../../../Mu/Ddt.html">Mu::Ddt</a></li>
|
179
|
-
|
180
|
-
<li><a href="../../../Mu/Helper.html">Mu::Helper</a></li>
|
181
|
-
|
182
|
-
<li><a href="../../../Mu/Homepage.html">Mu::Homepage</a></li>
|
183
|
-
|
184
|
-
<li><a href="../../../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
185
|
-
|
186
|
-
<li><a href="../../../Mu/Muapi.html">Mu::Muapi</a></li>
|
187
|
-
|
188
|
-
<li><a href="../../../Mu/Netconfig.html">Mu::Netconfig</a></li>
|
189
|
-
|
190
|
-
<li><a href="../../../Mu/Scale.html">Mu::Scale</a></li>
|
191
|
-
|
192
|
-
<li><a href="../../../Mu/System.html">Mu::System</a></li>
|
193
|
-
|
194
|
-
<li><a href="../../../Test.html">Test</a></li>
|
195
|
-
|
196
|
-
<li><a href="../../../Test/Unit.html">Test::Unit</a></li>
|
197
|
-
|
198
|
-
<li><a href="../../../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
199
|
-
|
200
|
-
<li><a href="../../../Object.html">Object</a></li>
|
201
|
-
|
202
|
-
<li><a href="../../../TCTestMu.html">TCTestMu</a></li>
|
203
|
-
|
204
|
-
</ul>
|
205
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
206
|
-
</div>
|
207
|
-
|
208
|
-
|
209
|
-
</div>
|
210
|
-
</div>
|
211
|
-
|
212
|
-
<div id="documentation">
|
213
|
-
<h1 class="class">Mu::Curl::Verify::Result</h1>
|
214
|
-
|
215
|
-
<div id="description">
|
216
|
-
|
217
|
-
</div>
|
218
|
-
|
219
|
-
<!-- Constants -->
|
220
|
-
|
221
|
-
|
222
|
-
<!-- Attributes -->
|
223
|
-
|
224
|
-
<div id="attribute-method-details" class="method-section section">
|
225
|
-
<h3 class="section-header">Attributes</h3>
|
226
|
-
|
227
|
-
|
228
|
-
<div id="region-attribute-method" class="method-detail">
|
229
|
-
<a name="region"></a>
|
230
|
-
|
231
|
-
<div class="method-heading attribute-method-heading">
|
232
|
-
<span class="method-name">region</span><span
|
233
|
-
class="attribute-access-type">[R]</span>
|
234
|
-
</div>
|
235
|
-
|
236
|
-
<div class="method-description">
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
</div>
|
241
|
-
</div>
|
242
|
-
|
243
|
-
<div id="duration-attribute-method" class="method-detail">
|
244
|
-
<a name="duration"></a>
|
245
|
-
|
246
|
-
<div class="method-heading attribute-method-heading">
|
247
|
-
<span class="method-name">duration</span><span
|
248
|
-
class="attribute-access-type">[R]</span>
|
249
|
-
</div>
|
250
|
-
|
251
|
-
<div class="method-description">
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
</div>
|
256
|
-
</div>
|
257
|
-
|
258
|
-
<div id="connect-attribute-method" class="method-detail">
|
259
|
-
<a name="connect"></a>
|
260
|
-
|
261
|
-
<div class="method-heading attribute-method-heading">
|
262
|
-
<span class="method-name">connect</span><span
|
263
|
-
class="attribute-access-type">[R]</span>
|
264
|
-
</div>
|
265
|
-
|
266
|
-
<div class="method-description">
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
</div>
|
271
|
-
</div>
|
272
|
-
|
273
|
-
<div id="request-attribute-method" class="method-detail">
|
274
|
-
<a name="request"></a>
|
275
|
-
|
276
|
-
<div class="method-heading attribute-method-heading">
|
277
|
-
<span class="method-name">request</span><span
|
278
|
-
class="attribute-access-type">[R]</span>
|
279
|
-
</div>
|
280
|
-
|
281
|
-
<div class="method-description">
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
</div>
|
286
|
-
</div>
|
287
|
-
|
288
|
-
<div id="response-attribute-method" class="method-detail">
|
289
|
-
<a name="response"></a>
|
290
|
-
|
291
|
-
<div class="method-heading attribute-method-heading">
|
292
|
-
<span class="method-name">response</span><span
|
293
|
-
class="attribute-access-type">[R]</span>
|
294
|
-
</div>
|
295
|
-
|
296
|
-
<div class="method-description">
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
</div>
|
301
|
-
</div>
|
302
|
-
|
303
|
-
</div>
|
304
|
-
|
305
|
-
|
306
|
-
<!-- Methods -->
|
307
|
-
|
308
|
-
<div id="public-class-method-details" class="method-section section">
|
309
|
-
<h3 class="section-header">Public Class Methods</h3>
|
310
|
-
|
311
|
-
|
312
|
-
<div id="new-method" class="method-detail ">
|
313
|
-
<a name="method-c-new"></a>
|
314
|
-
|
315
|
-
<div class="method-heading">
|
316
|
-
|
317
|
-
<span class="method-name">new</span><span
|
318
|
-
class="method-args">(json)</span>
|
319
|
-
<span class="method-click-advice">click to toggle source</span>
|
320
|
-
|
321
|
-
</div>
|
322
|
-
|
323
|
-
<div class="method-description">
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
<div class="method-source-code"
|
330
|
-
id="new-source">
|
331
|
-
<pre>
|
332
|
-
<span class="ruby-comment cmt"># File lib/mu/curl/verify.rb, line 67</span>
|
333
|
-
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">json</span>
|
334
|
-
68: <span class="ruby-identifier">result</span> = <span class="ruby-identifier">json</span>[<span class="ruby-value str">'result'</span>]
|
335
|
-
69: <span class="ruby-identifier">stats</span> = <span class="ruby-identifier">result</span>[<span class="ruby-value str">'statistics'</span>]
|
336
|
-
70:
|
337
|
-
71: <span class="ruby-ivar">@region</span> = <span class="ruby-identifier">json</span>[<span class="ruby-value str">'region'</span>]
|
338
|
-
72: <span class="ruby-ivar">@duration</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-value str">'duration'</span>][<span class="ruby-value str">'avg'</span>]
|
339
|
-
73: <span class="ruby-ivar">@connect</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-value str">'steps'</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">'duration'</span>][<span class="ruby-value str">'avg'</span>]
|
340
|
-
74: <span class="ruby-ivar">@request</span> = <span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">result</span>
|
341
|
-
75: <span class="ruby-ivar">@response</span> = <span class="ruby-constant">Response</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">result</span>
|
342
|
-
76: <span class="ruby-keyword kw">end</span></pre>
|
343
|
-
</div>
|
344
|
-
|
345
|
-
</div>
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
</div>
|
351
|
-
|
352
|
-
|
353
|
-
</div>
|
354
|
-
|
355
|
-
|
356
|
-
</div>
|
357
|
-
|
358
|
-
|
359
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
360
|
-
|
361
|
-
<p>Disabled; run with --debug to generate this.</p>
|
362
|
-
|
363
|
-
</div>
|
364
|
-
|
365
|
-
<div id="validator-badges">
|
366
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
367
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
368
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
369
|
-
</div>
|
370
|
-
|
371
|
-
</body>
|
372
|
-
</html>
|
373
|
-
|
data/rdoc/Mu/Ddt.html
DELETED
@@ -1,1347 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
-
|
8
|
-
<title>Class: Mu::Ddt</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="../js/jquery.js" type="text/javascript"
|
13
|
-
charset="utf-8"></script>
|
14
|
-
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
-
charset="utf-8"></script>
|
16
|
-
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
-
charset="utf-8"></script>
|
18
|
-
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
-
charset="utf-8"></script>
|
20
|
-
|
21
|
-
</head>
|
22
|
-
<body class="class">
|
23
|
-
|
24
|
-
<div id="metadata">
|
25
|
-
<div id="home-metadata">
|
26
|
-
<div id="home-section" class="section">
|
27
|
-
<h3 class="section-header">
|
28
|
-
<a href="../index.html">Home</a>
|
29
|
-
<a href="../index.html#classes">Classes</a>
|
30
|
-
<a href="../index.html#methods">Methods</a>
|
31
|
-
</h3>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="file-metadata">
|
36
|
-
<div id="file-list-section" class="section">
|
37
|
-
<h3 class="section-header">In Files</h3>
|
38
|
-
<div class="section-body">
|
39
|
-
<ul>
|
40
|
-
|
41
|
-
<li><a href="../lib/mu/api/ddt_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
-
class="thickbox" title="lib/mu/api/ddt.rb">lib/mu/api/ddt.rb</a></li>
|
43
|
-
|
44
|
-
</ul>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
|
48
|
-
|
49
|
-
</div>
|
50
|
-
|
51
|
-
<div id="class-metadata">
|
52
|
-
|
53
|
-
<!-- Parent Class -->
|
54
|
-
|
55
|
-
<div id="parent-class-section" class="section">
|
56
|
-
<h3 class="section-header">Parent</h3>
|
57
|
-
|
58
|
-
<p class="link"><a href="../Object.html">Object</a></p>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
|
62
|
-
|
63
|
-
<!-- Namespace Contents -->
|
64
|
-
|
65
|
-
|
66
|
-
<!-- Method Quickref -->
|
67
|
-
|
68
|
-
<div id="method-list-section" class="section">
|
69
|
-
<h3 class="section-header">Methods</h3>
|
70
|
-
<ul class="link-list">
|
71
|
-
|
72
|
-
<li><a href="#method-c-new">::new</a></li>
|
73
|
-
|
74
|
-
<li><a href="#method-i-close_all_sessions">#close_all_sessions</a></li>
|
75
|
-
|
76
|
-
<li><a href="#method-i-close_session">#close_session</a></li>
|
77
|
-
|
78
|
-
<li><a href="#method-i-collect_results">#collect_results</a></li>
|
79
|
-
|
80
|
-
<li><a href="#method-i-csv_export">#csv_export</a></li>
|
81
|
-
|
82
|
-
<li><a href="#method-i-csv_import">#csv_import</a></li>
|
83
|
-
|
84
|
-
<li><a href="#method-i-get_all_sessions">#get_all_sessions</a></li>
|
85
|
-
|
86
|
-
<li><a href="#method-i-get_channels">#get_channels</a></li>
|
87
|
-
|
88
|
-
<li><a href="#method-i-get_hosts">#get_hosts</a></li>
|
89
|
-
|
90
|
-
<li><a href="#method-i-get_options">#get_options</a></li>
|
91
|
-
|
92
|
-
<li><a href="#method-i-get_sessions">#get_sessions</a></li>
|
93
|
-
|
94
|
-
<li><a href="#method-i-get_testset_results">#get_testset_results</a></li>
|
95
|
-
|
96
|
-
<li><a href="#method-i-get_testset_status">#get_testset_status</a></li>
|
97
|
-
|
98
|
-
<li><a href="#method-i-load_scenario">#load_scenario</a></li>
|
99
|
-
|
100
|
-
<li><a href="#method-i-new_session">#new_session</a></li>
|
101
|
-
|
102
|
-
<li><a href="#method-i-run">#run</a></li>
|
103
|
-
|
104
|
-
<li><a href="#method-i-run_testset">#run_testset</a></li>
|
105
|
-
|
106
|
-
<li><a href="#method-i-set_channels">#set_channels</a></li>
|
107
|
-
|
108
|
-
<li><a href="#method-i-set_hosts">#set_hosts</a></li>
|
109
|
-
|
110
|
-
<li><a href="#method-i-set_options">#set_options</a></li>
|
111
|
-
|
112
|
-
<li><a href="#method-i-setup_test">#setup_test</a></li>
|
113
|
-
|
114
|
-
<li><a href="#method-i-teardown_test">#teardown_test</a></li>
|
115
|
-
|
116
|
-
<li><a href="#method-i-wait_until_done">#wait_until_done</a></li>
|
117
|
-
|
118
|
-
</ul>
|
119
|
-
</div>
|
120
|
-
|
121
|
-
|
122
|
-
<!-- Included Modules -->
|
123
|
-
|
124
|
-
<div id="includes-section" class="section">
|
125
|
-
<h3 class="section-header">Included Modules</h3>
|
126
|
-
<ul class="link-list">
|
127
|
-
|
128
|
-
|
129
|
-
<li><span class="include">Helper</span></li>
|
130
|
-
|
131
|
-
|
132
|
-
</ul>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<div id="project-metadata">
|
138
|
-
|
139
|
-
|
140
|
-
<div id="fileindex-section" class="section project-section">
|
141
|
-
<h3 class="section-header">Files</h3>
|
142
|
-
<ul>
|
143
|
-
|
144
|
-
<li class="file"><a href="../Gemfile.html">Gemfile</a></li>
|
145
|
-
|
146
|
-
<li class="file"><a href="../LICENSE_txt.html">LICENSE.txt</a></li>
|
147
|
-
|
148
|
-
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
149
|
-
|
150
|
-
<li class="file"><a href="../Rakefile.html">Rakefile</a></li>
|
151
|
-
|
152
|
-
<li class="file"><a href="../VERSION.html">VERSION</a></li>
|
153
|
-
|
154
|
-
</ul>
|
155
|
-
</div>
|
156
|
-
|
157
|
-
|
158
|
-
<div id="classindex-section" class="section project-section">
|
159
|
-
<h3 class="section-header">Class Index
|
160
|
-
<span class="search-toggle"><img src="../images/find.png"
|
161
|
-
height="16" width="16" alt="[+]"
|
162
|
-
title="show/hide quicksearch" /></span></h3>
|
163
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
164
|
-
<fieldset>
|
165
|
-
<legend>Quicksearch</legend>
|
166
|
-
<input type="text" name="quicksearch" value=""
|
167
|
-
class="quicksearch-field" />
|
168
|
-
</fieldset>
|
169
|
-
</form>
|
170
|
-
|
171
|
-
<ul class="link-list">
|
172
|
-
|
173
|
-
<li><a href="../Mu.html">Mu</a></li>
|
174
|
-
|
175
|
-
<li><a href="../Mu/Client.html">Mu::Client</a></li>
|
176
|
-
|
177
|
-
<li><a href="../Mu/Command.html">Mu::Command</a></li>
|
178
|
-
|
179
|
-
<li><a href="../Mu/Command/API.html">Mu::Command::API</a></li>
|
180
|
-
|
181
|
-
<li><a href="../Mu/Command/API.html">Mu::Command::API</a></li>
|
182
|
-
|
183
|
-
<li><a href="../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
184
|
-
|
185
|
-
<li><a href="../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
186
|
-
|
187
|
-
<li><a href="../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
188
|
-
|
189
|
-
<li><a href="../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
190
|
-
|
191
|
-
<li><a href="../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
192
|
-
|
193
|
-
<li><a href="../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
194
|
-
|
195
|
-
<li><a href="../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
196
|
-
|
197
|
-
<li><a href="../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
198
|
-
|
199
|
-
<li><a href="../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
200
|
-
|
201
|
-
<li><a href="../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
202
|
-
|
203
|
-
<li><a href="../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
204
|
-
|
205
|
-
<li><a href="../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
206
|
-
|
207
|
-
<li><a href="../Mu/Command/Help.html">Mu::Command::Help</a></li>
|
208
|
-
|
209
|
-
<li><a href="../Mu/Curl.html">Mu::Curl</a></li>
|
210
|
-
|
211
|
-
<li><a href="../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
212
|
-
|
213
|
-
<li><a href="../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
214
|
-
|
215
|
-
<li><a href="../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
216
|
-
|
217
|
-
<li><a href="../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
218
|
-
|
219
|
-
<li><a href="../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
220
|
-
|
221
|
-
<li><a href="../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
222
|
-
|
223
|
-
<li><a href="../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
224
|
-
|
225
|
-
<li><a href="../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
226
|
-
|
227
|
-
<li><a href="../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
228
|
-
|
229
|
-
<li><a href="../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
230
|
-
|
231
|
-
<li><a href="../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
232
|
-
|
233
|
-
<li><a href="../Mu/Ddt.html">Mu::Ddt</a></li>
|
234
|
-
|
235
|
-
<li><a href="../Mu/Helper.html">Mu::Helper</a></li>
|
236
|
-
|
237
|
-
<li><a href="../Mu/Homepage.html">Mu::Homepage</a></li>
|
238
|
-
|
239
|
-
<li><a href="../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
240
|
-
|
241
|
-
<li><a href="../Mu/Muapi.html">Mu::Muapi</a></li>
|
242
|
-
|
243
|
-
<li><a href="../Mu/Netconfig.html">Mu::Netconfig</a></li>
|
244
|
-
|
245
|
-
<li><a href="../Mu/Scale.html">Mu::Scale</a></li>
|
246
|
-
|
247
|
-
<li><a href="../Mu/System.html">Mu::System</a></li>
|
248
|
-
|
249
|
-
<li><a href="../Test.html">Test</a></li>
|
250
|
-
|
251
|
-
<li><a href="../Test/Unit.html">Test::Unit</a></li>
|
252
|
-
|
253
|
-
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
254
|
-
|
255
|
-
<li><a href="../Object.html">Object</a></li>
|
256
|
-
|
257
|
-
<li><a href="../TCTestMu.html">TCTestMu</a></li>
|
258
|
-
|
259
|
-
</ul>
|
260
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
261
|
-
</div>
|
262
|
-
|
263
|
-
|
264
|
-
</div>
|
265
|
-
</div>
|
266
|
-
|
267
|
-
<div id="documentation">
|
268
|
-
<h1 class="class">Mu::Ddt</h1>
|
269
|
-
|
270
|
-
<div id="description">
|
271
|
-
|
272
|
-
</div>
|
273
|
-
|
274
|
-
<!-- Constants -->
|
275
|
-
|
276
|
-
|
277
|
-
<!-- Attributes -->
|
278
|
-
|
279
|
-
<div id="attribute-method-details" class="method-section section">
|
280
|
-
<h3 class="section-header">Attributes</h3>
|
281
|
-
|
282
|
-
|
283
|
-
<div id="host-attribute-method" class="method-detail">
|
284
|
-
<a name="host"></a>
|
285
|
-
|
286
|
-
<a name="host="></a>
|
287
|
-
|
288
|
-
<div class="method-heading attribute-method-heading">
|
289
|
-
<span class="method-name">host</span><span
|
290
|
-
class="attribute-access-type">[RW]</span>
|
291
|
-
</div>
|
292
|
-
|
293
|
-
<div class="method-description">
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
</div>
|
298
|
-
</div>
|
299
|
-
|
300
|
-
<div id="docroot-attribute-method" class="method-detail">
|
301
|
-
<a name="docroot"></a>
|
302
|
-
|
303
|
-
<a name="docroot="></a>
|
304
|
-
|
305
|
-
<div class="method-heading attribute-method-heading">
|
306
|
-
<span class="method-name">docroot</span><span
|
307
|
-
class="attribute-access-type">[RW]</span>
|
308
|
-
</div>
|
309
|
-
|
310
|
-
<div class="method-description">
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
</div>
|
315
|
-
</div>
|
316
|
-
|
317
|
-
<div id="username-attribute-method" class="method-detail">
|
318
|
-
<a name="username"></a>
|
319
|
-
|
320
|
-
<a name="username="></a>
|
321
|
-
|
322
|
-
<div class="method-heading attribute-method-heading">
|
323
|
-
<span class="method-name">username</span><span
|
324
|
-
class="attribute-access-type">[RW]</span>
|
325
|
-
</div>
|
326
|
-
|
327
|
-
<div class="method-description">
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
</div>
|
332
|
-
</div>
|
333
|
-
|
334
|
-
<div id="password-attribute-method" class="method-detail">
|
335
|
-
<a name="password"></a>
|
336
|
-
|
337
|
-
<a name="password="></a>
|
338
|
-
|
339
|
-
<div class="method-heading attribute-method-heading">
|
340
|
-
<span class="method-name">password</span><span
|
341
|
-
class="attribute-access-type">[RW]</span>
|
342
|
-
</div>
|
343
|
-
|
344
|
-
<div class="method-description">
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
</div>
|
349
|
-
</div>
|
350
|
-
|
351
|
-
<div id="session-id-attribute-method" class="method-detail">
|
352
|
-
<a name="session_id"></a>
|
353
|
-
|
354
|
-
<a name="session_id="></a>
|
355
|
-
|
356
|
-
<div class="method-heading attribute-method-heading">
|
357
|
-
<span class="method-name">session_id</span><span
|
358
|
-
class="attribute-access-type">[RW]</span>
|
359
|
-
</div>
|
360
|
-
|
361
|
-
<div class="method-description">
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
</div>
|
366
|
-
</div>
|
367
|
-
|
368
|
-
</div>
|
369
|
-
|
370
|
-
|
371
|
-
<!-- Methods -->
|
372
|
-
|
373
|
-
<div id="public-class-method-details" class="method-section section">
|
374
|
-
<h3 class="section-header">Public Class Methods</h3>
|
375
|
-
|
376
|
-
|
377
|
-
<div id="new-method" class="method-detail ">
|
378
|
-
<a name="method-c-new"></a>
|
379
|
-
|
380
|
-
<div class="method-heading">
|
381
|
-
|
382
|
-
<span class="method-name">new</span><span
|
383
|
-
class="method-args">(host=ENV['MU_IP'], username=ENV['MU_ADMIN_USER'], password=ENV['MU_ADMIN_PASS'])</span>
|
384
|
-
<span class="method-click-advice">click to toggle source</span>
|
385
|
-
|
386
|
-
</div>
|
387
|
-
|
388
|
-
<div class="method-description">
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
<div class="method-source-code"
|
395
|
-
id="new-source">
|
396
|
-
<pre>
|
397
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 7</span>
|
398
|
-
7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">host</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-identifier">username</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-identifier">password</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
|
399
|
-
8: <span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
|
400
|
-
9: <span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
|
401
|
-
10: <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
|
402
|
-
11: <span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">"/api/v5/ddt/"</span>
|
403
|
-
12: <span class="ruby-ivar">@session_id</span> = <span class="ruby-keyword kw">nil</span>
|
404
|
-
13: <span class="ruby-ivar">@http</span> = <span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@host</span>, <span class="ruby-ivar">@username</span>, <span class="ruby-ivar">@password</span>, <span class="ruby-ivar">@docroot</span>)
|
405
|
-
14: <span class="ruby-identifier">msg</span> <span class="ruby-node">"Created Ddt Api object to :#{@host}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
406
|
-
15: <span class="ruby-keyword kw">end</span></pre>
|
407
|
-
</div>
|
408
|
-
|
409
|
-
</div>
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
</div>
|
415
|
-
|
416
|
-
|
417
|
-
</div>
|
418
|
-
|
419
|
-
<div id="public-instance-method-details" class="method-section section">
|
420
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
421
|
-
|
422
|
-
|
423
|
-
<div id="close-all-sessions-method" class="method-detail ">
|
424
|
-
<a name="method-i-close_all_sessions"></a>
|
425
|
-
|
426
|
-
<div class="method-heading">
|
427
|
-
|
428
|
-
<span class="method-name">close_all_sessions</span><span
|
429
|
-
class="method-args">()</span>
|
430
|
-
<span class="method-click-advice">click to toggle source</span>
|
431
|
-
|
432
|
-
</div>
|
433
|
-
|
434
|
-
<div class="method-description">
|
435
|
-
|
436
|
-
<p>
|
437
|
-
closes all Studio Verify sessions
|
438
|
-
</p>
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
<div class="method-source-code"
|
443
|
-
id="close-all-sessions-source">
|
444
|
-
<pre>
|
445
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 69</span>
|
446
|
-
69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close_all_sessions</span>
|
447
|
-
70: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"closeAllSessions"</span>)
|
448
|
-
71: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
449
|
-
72: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
450
|
-
73: <span class="ruby-keyword kw">end</span></pre>
|
451
|
-
</div>
|
452
|
-
|
453
|
-
</div>
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
</div>
|
459
|
-
|
460
|
-
|
461
|
-
<div id="close-session-method" class="method-detail ">
|
462
|
-
<a name="method-i-close_session"></a>
|
463
|
-
|
464
|
-
<div class="method-heading">
|
465
|
-
|
466
|
-
<span class="method-name">close_session</span><span
|
467
|
-
class="method-args">()</span>
|
468
|
-
<span class="method-click-advice">click to toggle source</span>
|
469
|
-
|
470
|
-
</div>
|
471
|
-
|
472
|
-
<div class="method-description">
|
473
|
-
|
474
|
-
<p>
|
475
|
-
closes the existing Studio Verify session
|
476
|
-
</p>
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
<div class="method-source-code"
|
481
|
-
id="close-session-source">
|
482
|
-
<pre>
|
483
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 43</span>
|
484
|
-
43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close_session</span>
|
485
|
-
44: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/closeSession"</span>)
|
486
|
-
45: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
487
|
-
46: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
488
|
-
47: <span class="ruby-keyword kw">end</span></pre>
|
489
|
-
</div>
|
490
|
-
|
491
|
-
</div>
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
</div>
|
497
|
-
|
498
|
-
|
499
|
-
<div id="collect-results-method" class="method-detail ">
|
500
|
-
<a name="method-i-collect_results"></a>
|
501
|
-
|
502
|
-
<div class="method-heading">
|
503
|
-
|
504
|
-
<span class="method-name">collect_results</span><span
|
505
|
-
class="method-args">(timeout=120)</span>
|
506
|
-
<span class="method-click-advice">click to toggle source</span>
|
507
|
-
|
508
|
-
</div>
|
509
|
-
|
510
|
-
<div class="method-description">
|
511
|
-
|
512
|
-
<p>
|
513
|
-
collects results until the test is done or the timeout expires
|
514
|
-
</p>
|
515
|
-
<pre>
|
516
|
-
* timeout = time in seconds to wait for the test to complete</pre>
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
<div class="method-source-code"
|
521
|
-
id="collect-results-source">
|
522
|
-
<pre>
|
523
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 168</span>
|
524
|
-
168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collect_results</span>(<span class="ruby-identifier">timeout</span>=<span class="ruby-value">120</span>)
|
525
|
-
169: <span class="ruby-identifier">wait_until_done</span>(<span class="ruby-identifier">timeout</span>)
|
526
|
-
170: <span class="ruby-identifier">results</span> = <span class="ruby-identifier">get_testset_results</span>
|
527
|
-
171: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">results</span>
|
528
|
-
172: <span class="ruby-keyword kw">end</span></pre>
|
529
|
-
</div>
|
530
|
-
|
531
|
-
</div>
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
</div>
|
537
|
-
|
538
|
-
|
539
|
-
<div id="csv-export-method" class="method-detail ">
|
540
|
-
<a name="method-i-csv_export"></a>
|
541
|
-
|
542
|
-
<div class="method-heading">
|
543
|
-
|
544
|
-
<span class="method-name">csv_export</span><span
|
545
|
-
class="method-args">(uuid=@testset)</span>
|
546
|
-
<span class="method-click-advice">click to toggle source</span>
|
547
|
-
|
548
|
-
</div>
|
549
|
-
|
550
|
-
<div class="method-description">
|
551
|
-
|
552
|
-
<p>
|
553
|
-
exports a testset to a csv file
|
554
|
-
</p>
|
555
|
-
<pre>
|
556
|
-
* uuid = the uuid of the testset to export</pre>
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
<div class="method-source-code"
|
561
|
-
id="csv-export-source">
|
562
|
-
<pre>
|
563
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 214</span>
|
564
|
-
214: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">csv_export</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@testset</span>)
|
565
|
-
215: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/test/export/csv/#{uuid}"</span>)
|
566
|
-
216: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
567
|
-
217: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
568
|
-
218: <span class="ruby-keyword kw">end</span></pre>
|
569
|
-
</div>
|
570
|
-
|
571
|
-
</div>
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
</div>
|
577
|
-
|
578
|
-
|
579
|
-
<div id="csv-import-method" class="method-detail ">
|
580
|
-
<a name="method-i-csv_import"></a>
|
581
|
-
|
582
|
-
<div class="method-heading">
|
583
|
-
|
584
|
-
<span class="method-name">csv_import</span><span
|
585
|
-
class="method-args">(filepath)</span>
|
586
|
-
<span class="method-click-advice">click to toggle source</span>
|
587
|
-
|
588
|
-
</div>
|
589
|
-
|
590
|
-
<div class="method-description">
|
591
|
-
|
592
|
-
<p>
|
593
|
-
imports a csv file to the <a href="../Mu.html">Mu</a>
|
594
|
-
</p>
|
595
|
-
<pre>
|
596
|
-
* filepath = the path to the csv file</pre>
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
<div class="method-source-code"
|
601
|
-
id="csv-import-source">
|
602
|
-
<pre>
|
603
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 223</span>
|
604
|
-
223: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">csv_import</span>(<span class="ruby-identifier">filepath</span>)
|
605
|
-
224: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">"new_session required"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$cookie</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">$cookie</span>[<span class="ruby-value str">"testSessionId"</span>].<span class="ruby-identifier">nil?</span>
|
606
|
-
225: <span class="ruby-identifier">testSessionId</span> = <span class="ruby-identifier">$cookie</span>[<span class="ruby-value str">"testSessionId"</span>]
|
607
|
-
226: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post_form</span>(<span class="ruby-node">"session/test/import/csv?testSessionId=#{testSessionId}"</span>, <span class="ruby-identifier">filepath</span>)
|
608
|
-
227: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
609
|
-
228: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
610
|
-
229: <span class="ruby-keyword kw">end</span></pre>
|
611
|
-
</div>
|
612
|
-
|
613
|
-
</div>
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
</div>
|
619
|
-
|
620
|
-
|
621
|
-
<div id="get-all-sessions-method" class="method-detail ">
|
622
|
-
<a name="method-i-get_all_sessions"></a>
|
623
|
-
|
624
|
-
<div class="method-heading">
|
625
|
-
|
626
|
-
<span class="method-name">get_all_sessions</span><span
|
627
|
-
class="method-args">()</span>
|
628
|
-
<span class="method-click-advice">click to toggle source</span>
|
629
|
-
|
630
|
-
</div>
|
631
|
-
|
632
|
-
<div class="method-description">
|
633
|
-
|
634
|
-
<p>
|
635
|
-
returns the session id’s of all existing Studio Verify sessions
|
636
|
-
</p>
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
<div class="method-source-code"
|
641
|
-
id="get-all-sessions-source">
|
642
|
-
<pre>
|
643
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 76</span>
|
644
|
-
76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_all_sessions</span>
|
645
|
-
77: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"getAllSessions"</span>)
|
646
|
-
78: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
647
|
-
79: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
648
|
-
80: <span class="ruby-keyword kw">end</span></pre>
|
649
|
-
</div>
|
650
|
-
|
651
|
-
</div>
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
</div>
|
657
|
-
|
658
|
-
|
659
|
-
<div id="get-channels-method" class="method-detail ">
|
660
|
-
<a name="method-i-get_channels"></a>
|
661
|
-
|
662
|
-
<div class="method-heading">
|
663
|
-
|
664
|
-
<span class="method-name">get_channels</span><span
|
665
|
-
class="method-args">()</span>
|
666
|
-
<span class="method-click-advice">click to toggle source</span>
|
667
|
-
|
668
|
-
</div>
|
669
|
-
|
670
|
-
<div class="method-description">
|
671
|
-
|
672
|
-
<p>
|
673
|
-
returns the channel elements of the loaded scenario
|
674
|
-
</p>
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
<div class="method-source-code"
|
679
|
-
id="get-channels-source">
|
680
|
-
<pre>
|
681
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 127</span>
|
682
|
-
127: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_channels</span>
|
683
|
-
128: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/scenario/channels"</span>)
|
684
|
-
129: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
685
|
-
130: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
686
|
-
131: <span class="ruby-keyword kw">end</span></pre>
|
687
|
-
</div>
|
688
|
-
|
689
|
-
</div>
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
</div>
|
695
|
-
|
696
|
-
|
697
|
-
<div id="get-hosts-method" class="method-detail ">
|
698
|
-
<a name="method-i-get_hosts"></a>
|
699
|
-
|
700
|
-
<div class="method-heading">
|
701
|
-
|
702
|
-
<span class="method-name">get_hosts</span><span
|
703
|
-
class="method-args">()</span>
|
704
|
-
<span class="method-click-advice">click to toggle source</span>
|
705
|
-
|
706
|
-
</div>
|
707
|
-
|
708
|
-
<div class="method-description">
|
709
|
-
|
710
|
-
<p>
|
711
|
-
returns the hosts in the loaded scenario
|
712
|
-
</p>
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
<div class="method-source-code"
|
717
|
-
id="get-hosts-source">
|
718
|
-
<pre>
|
719
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 105</span>
|
720
|
-
105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_hosts</span>
|
721
|
-
106: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/scenario/hosts"</span>)
|
722
|
-
107: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
723
|
-
108: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
724
|
-
109: <span class="ruby-keyword kw">end</span></pre>
|
725
|
-
</div>
|
726
|
-
|
727
|
-
</div>
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
</div>
|
733
|
-
|
734
|
-
|
735
|
-
<div id="get-options-method" class="method-detail ">
|
736
|
-
<a name="method-i-get_options"></a>
|
737
|
-
|
738
|
-
<div class="method-heading">
|
739
|
-
|
740
|
-
<span class="method-name">get_options</span><span
|
741
|
-
class="method-args">()</span>
|
742
|
-
<span class="method-click-advice">click to toggle source</span>
|
743
|
-
|
744
|
-
</div>
|
745
|
-
|
746
|
-
<div class="method-description">
|
747
|
-
|
748
|
-
<p>
|
749
|
-
returns the options from the loaded scenario
|
750
|
-
</p>
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
<div class="method-source-code"
|
755
|
-
id="get-options-source">
|
756
|
-
<pre>
|
757
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 147</span>
|
758
|
-
147: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_options</span>
|
759
|
-
148: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/scenario/options"</span>)
|
760
|
-
149: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
761
|
-
150: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
762
|
-
151: <span class="ruby-keyword kw">end</span></pre>
|
763
|
-
</div>
|
764
|
-
|
765
|
-
</div>
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
</div>
|
771
|
-
|
772
|
-
|
773
|
-
<div id="get-sessions-method" class="method-detail ">
|
774
|
-
<a name="method-i-get_sessions"></a>
|
775
|
-
|
776
|
-
<div class="method-heading">
|
777
|
-
|
778
|
-
<span class="method-name">get_sessions</span><span
|
779
|
-
class="method-args">()</span>
|
780
|
-
<span class="method-click-advice">click to toggle source</span>
|
781
|
-
|
782
|
-
</div>
|
783
|
-
|
784
|
-
<div class="method-description">
|
785
|
-
|
786
|
-
<p>
|
787
|
-
returns array of session_ids
|
788
|
-
</p>
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
<div class="method-source-code"
|
793
|
-
id="get-sessions-source">
|
794
|
-
<pre>
|
795
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 50</span>
|
796
|
-
50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_sessions</span>
|
797
|
-
51: <span class="ruby-identifier">all_sessions</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
798
|
-
52: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">""</span>) <span class="ruby-comment cmt"># with no args</span>
|
799
|
-
53: <span class="ruby-identifier">sessions</span> = <span class="ruby-identifier">response</span>[<span class="ruby-value str">"sessions"</span>]
|
800
|
-
54: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">sessions</span>[<span class="ruby-value str">"session"</span>].<span class="ruby-identifier">nil?</span>
|
801
|
-
55: <span class="ruby-identifier">num</span> = <span class="ruby-identifier">sessions</span>[<span class="ruby-value str">"session"</span>].<span class="ruby-identifier">size</span>
|
802
|
-
56: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span>
|
803
|
-
57: <span class="ruby-identifier">sessions</span>[<span class="ruby-value str">"session"</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">|</span>
|
804
|
-
58: <span class="ruby-identifier">all_sessions</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">s</span>[<span class="ruby-value str">"id"</span>]
|
805
|
-
59: <span class="ruby-keyword kw">end</span>
|
806
|
-
60: <span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt"># special case if there is only one (there is no array)</span>
|
807
|
-
61: <span class="ruby-identifier">all_sessions</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">sessions</span>[<span class="ruby-value str">"session"</span>][<span class="ruby-value str">"id"</span>]
|
808
|
-
62: <span class="ruby-keyword kw">end</span>
|
809
|
-
63: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">all_sessions</span>
|
810
|
-
64: <span class="ruby-keyword kw">end</span>
|
811
|
-
65: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
812
|
-
66: <span class="ruby-keyword kw">end</span></pre>
|
813
|
-
</div>
|
814
|
-
|
815
|
-
</div>
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
</div>
|
821
|
-
|
822
|
-
|
823
|
-
<div id="get-testset-results-method" class="method-detail ">
|
824
|
-
<a name="method-i-get_testset_results"></a>
|
825
|
-
|
826
|
-
<div class="method-heading">
|
827
|
-
|
828
|
-
<span class="method-name">get_testset_results</span><span
|
829
|
-
class="method-args">()</span>
|
830
|
-
<span class="method-click-advice">click to toggle source</span>
|
831
|
-
|
832
|
-
</div>
|
833
|
-
|
834
|
-
<div class="method-description">
|
835
|
-
|
836
|
-
<p>
|
837
|
-
returns the results of a running test set. can be called repeatedly. the
|
838
|
-
test is done when the results include the ‘END’ keyword
|
839
|
-
</p>
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
<div class="method-source-code"
|
844
|
-
id="get-testset-results-source">
|
845
|
-
<pre>
|
846
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 206</span>
|
847
|
-
206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_testset_results</span>
|
848
|
-
207: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/test/runSuite/results"</span>)
|
849
|
-
208: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
850
|
-
209: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
851
|
-
210: <span class="ruby-keyword kw">end</span></pre>
|
852
|
-
</div>
|
853
|
-
|
854
|
-
</div>
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
</div>
|
860
|
-
|
861
|
-
|
862
|
-
<div id="get-testset-status-method" class="method-detail ">
|
863
|
-
<a name="method-i-get_testset_status"></a>
|
864
|
-
|
865
|
-
<div class="method-heading">
|
866
|
-
|
867
|
-
<span class="method-name">get_testset_status</span><span
|
868
|
-
class="method-args">()</span>
|
869
|
-
<span class="method-click-advice">click to toggle source</span>
|
870
|
-
|
871
|
-
</div>
|
872
|
-
|
873
|
-
<div class="method-description">
|
874
|
-
|
875
|
-
<p>
|
876
|
-
returns the status of a running test set
|
877
|
-
</p>
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
<div class="method-source-code"
|
882
|
-
id="get-testset-status-source">
|
883
|
-
<pre>
|
884
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 198</span>
|
885
|
-
198: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_testset_status</span>
|
886
|
-
199: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/test/runSuite/status"</span>)
|
887
|
-
200: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
888
|
-
201: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
889
|
-
202: <span class="ruby-keyword kw">end</span></pre>
|
890
|
-
</div>
|
891
|
-
|
892
|
-
</div>
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
</div>
|
898
|
-
|
899
|
-
|
900
|
-
<div id="load-scenario-method" class="method-detail ">
|
901
|
-
<a name="method-i-load_scenario"></a>
|
902
|
-
|
903
|
-
<div class="method-heading">
|
904
|
-
|
905
|
-
<span class="method-name">load_scenario</span><span
|
906
|
-
class="method-args">(uuid)</span>
|
907
|
-
<span class="method-click-advice">click to toggle source</span>
|
908
|
-
|
909
|
-
</div>
|
910
|
-
|
911
|
-
<div class="method-description">
|
912
|
-
|
913
|
-
<p>
|
914
|
-
loads a scenario
|
915
|
-
</p>
|
916
|
-
<pre>
|
917
|
-
* the uuid of a scenario present on the Mu</pre>
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
<div class="method-source-code"
|
922
|
-
id="load-scenario-source">
|
923
|
-
<pre>
|
924
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 98</span>
|
925
|
-
98: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_scenario</span>(<span class="ruby-identifier">uuid</span>)
|
926
|
-
99: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/loadScenario/#{uuid}"</span>)
|
927
|
-
100: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
928
|
-
101: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
929
|
-
102: <span class="ruby-keyword kw">end</span></pre>
|
930
|
-
</div>
|
931
|
-
|
932
|
-
</div>
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
</div>
|
938
|
-
|
939
|
-
|
940
|
-
<div id="new-session-method" class="method-detail ">
|
941
|
-
<a name="method-i-new_session"></a>
|
942
|
-
|
943
|
-
<div class="method-heading">
|
944
|
-
|
945
|
-
<span class="method-name">new_session</span><span
|
946
|
-
class="method-args">()</span>
|
947
|
-
<span class="method-click-advice">click to toggle source</span>
|
948
|
-
|
949
|
-
</div>
|
950
|
-
|
951
|
-
<div class="method-description">
|
952
|
-
|
953
|
-
<p>
|
954
|
-
must be called first to establish a new Studio Verify session
|
955
|
-
</p>
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
<div class="method-source-code"
|
960
|
-
id="new-session-source">
|
961
|
-
<pre>
|
962
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 33</span>
|
963
|
-
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_session</span>
|
964
|
-
34: <span class="ruby-identifier">reply</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"newSession"</span>) <span class="ruby-comment cmt"># with no args</span>
|
965
|
-
35: <span class="ruby-identifier">response</span> = <span class="ruby-identifier">reply</span>[<span class="ruby-value str">"response"</span>]
|
966
|
-
36: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
967
|
-
37: <span class="ruby-ivar">@session_id</span> = <span class="ruby-identifier">response</span>[<span class="ruby-value str">"sessionId"</span>]
|
968
|
-
38: <span class="ruby-identifier">msg</span> <span class="ruby-ivar">@session_id</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
969
|
-
39: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@session_id</span>
|
970
|
-
40: <span class="ruby-keyword kw">end</span></pre>
|
971
|
-
</div>
|
972
|
-
|
973
|
-
</div>
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
</div>
|
979
|
-
|
980
|
-
|
981
|
-
<div id="run-method" class="method-detail ">
|
982
|
-
<a name="method-i-run"></a>
|
983
|
-
|
984
|
-
<div class="method-heading">
|
985
|
-
|
986
|
-
<span class="method-name">run</span><span
|
987
|
-
class="method-args">()</span>
|
988
|
-
<span class="method-click-advice">click to toggle source</span>
|
989
|
-
|
990
|
-
</div>
|
991
|
-
|
992
|
-
<div class="method-description">
|
993
|
-
|
994
|
-
<p>
|
995
|
-
verifies the loaded scenario
|
996
|
-
</p>
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
<div class="method-source-code"
|
1001
|
-
id="run-source">
|
1002
|
-
<pre>
|
1003
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 18</span>
|
1004
|
-
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
|
1005
|
-
19: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"session/test/run"</span>)
|
1006
|
-
20: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
1007
|
-
21: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
1008
|
-
22: <span class="ruby-keyword kw">end</span></pre>
|
1009
|
-
</div>
|
1010
|
-
|
1011
|
-
</div>
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
</div>
|
1017
|
-
|
1018
|
-
|
1019
|
-
<div id="run-testset-method" class="method-detail ">
|
1020
|
-
<a name="method-i-run_testset"></a>
|
1021
|
-
|
1022
|
-
<div class="method-heading">
|
1023
|
-
|
1024
|
-
<span class="method-name">run_testset</span><span
|
1025
|
-
class="method-args">(uuid)</span>
|
1026
|
-
<span class="method-click-advice">click to toggle source</span>
|
1027
|
-
|
1028
|
-
</div>
|
1029
|
-
|
1030
|
-
<div class="method-description">
|
1031
|
-
|
1032
|
-
<p>
|
1033
|
-
sets and executes test suite
|
1034
|
-
</p>
|
1035
|
-
<pre>
|
1036
|
-
* uuid = the uuid of a testset loaded on the Mu</pre>
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
<div class="method-source-code"
|
1041
|
-
id="run-testset-source">
|
1042
|
-
<pre>
|
1043
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 26</span>
|
1044
|
-
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_testset</span>(<span class="ruby-identifier">uuid</span>)
|
1045
|
-
27: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/test/runSuite/#{uuid}"</span>)
|
1046
|
-
28: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
1047
|
-
29: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
1048
|
-
30: <span class="ruby-keyword kw">end</span></pre>
|
1049
|
-
</div>
|
1050
|
-
|
1051
|
-
</div>
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
</div>
|
1057
|
-
|
1058
|
-
|
1059
|
-
<div id="set-channels-method" class="method-detail ">
|
1060
|
-
<a name="method-i-set_channels"></a>
|
1061
|
-
|
1062
|
-
<div class="method-heading">
|
1063
|
-
|
1064
|
-
<span class="method-name">set_channels</span><span
|
1065
|
-
class="method-args">(roles=[], names=[])</span>
|
1066
|
-
<span class="method-click-advice">click to toggle source</span>
|
1067
|
-
|
1068
|
-
</div>
|
1069
|
-
|
1070
|
-
<div class="method-description">
|
1071
|
-
|
1072
|
-
<p>
|
1073
|
-
sets the channel elements of the loaded scenario
|
1074
|
-
</p>
|
1075
|
-
<pre>
|
1076
|
-
* roles = an array of the roles defined for the channels in the scenario ('channel')
|
1077
|
-
* names = an array of host names to be mapped to the roles</pre>
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
<div class="method-source-code"
|
1082
|
-
id="set-channels-source">
|
1083
|
-
<pre>
|
1084
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 136</span>
|
1085
|
-
136: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_channels</span>(<span class="ruby-identifier">roles</span>=[], <span class="ruby-identifier">names</span>=[])
|
1086
|
-
137: <span class="ruby-identifier">responses</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
1087
|
-
138: <span class="ruby-identifier">roles</span>.<span class="ruby-identifier">length</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span>
|
1088
|
-
139: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/scenario/channels/#{roles[i]}/#{names[i]}"</span>)
|
1089
|
-
140: <span class="ruby-identifier">responses</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">response</span>
|
1090
|
-
141: <span class="ruby-keyword kw">end</span>
|
1091
|
-
142: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">responses</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
1092
|
-
143: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">responses</span>
|
1093
|
-
144: <span class="ruby-keyword kw">end</span></pre>
|
1094
|
-
</div>
|
1095
|
-
|
1096
|
-
</div>
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
</div>
|
1102
|
-
|
1103
|
-
|
1104
|
-
<div id="set-hosts-method" class="method-detail ">
|
1105
|
-
<a name="method-i-set_hosts"></a>
|
1106
|
-
|
1107
|
-
<div class="method-heading">
|
1108
|
-
|
1109
|
-
<span class="method-name">set_hosts</span><span
|
1110
|
-
class="method-args">(roles=[], names=[], type="v4")</span>
|
1111
|
-
<span class="method-click-advice">click to toggle source</span>
|
1112
|
-
|
1113
|
-
</div>
|
1114
|
-
|
1115
|
-
<div class="method-description">
|
1116
|
-
|
1117
|
-
<p>
|
1118
|
-
sets the hosts in the loaded scenario
|
1119
|
-
</p>
|
1120
|
-
<pre>
|
1121
|
-
* roles = an array of the host roles defined in the scenario
|
1122
|
-
* names = an array of host names to be mapped to the roles
|
1123
|
-
* type = network layer type (v4, v6 or l2) matching the defined hosts</pre>
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
<div class="method-source-code"
|
1128
|
-
id="set-hosts-source">
|
1129
|
-
<pre>
|
1130
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 115</span>
|
1131
|
-
115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_hosts</span>(<span class="ruby-identifier">roles</span>=[], <span class="ruby-identifier">names</span>=[], <span class="ruby-identifier">type</span>=<span class="ruby-value str">"v4"</span>)
|
1132
|
-
116: <span class="ruby-identifier">responses</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
1133
|
-
117: <span class="ruby-identifier">hosts</span> = <span class="ruby-identifier">roles</span>.<span class="ruby-identifier">length</span>.<span class="ruby-identifier">to_i</span>
|
1134
|
-
118: <span class="ruby-identifier">hosts</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span>
|
1135
|
-
119: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/scenario/hosts/#{roles[i]}/#{names[i]}/#{type}"</span>)
|
1136
|
-
120: <span class="ruby-identifier">responses</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">response</span>
|
1137
|
-
121: <span class="ruby-keyword kw">end</span>
|
1138
|
-
122: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">responses</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
1139
|
-
123: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">responses</span>
|
1140
|
-
124: <span class="ruby-keyword kw">end</span></pre>
|
1141
|
-
</div>
|
1142
|
-
|
1143
|
-
</div>
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
</div>
|
1149
|
-
|
1150
|
-
|
1151
|
-
<div id="set-options-method" class="method-detail ">
|
1152
|
-
<a name="method-i-set_options"></a>
|
1153
|
-
|
1154
|
-
<div class="method-heading">
|
1155
|
-
|
1156
|
-
<span class="method-name">set_options</span><span
|
1157
|
-
class="method-args">(names=[], values=[])</span>
|
1158
|
-
<span class="method-click-advice">click to toggle source</span>
|
1159
|
-
|
1160
|
-
</div>
|
1161
|
-
|
1162
|
-
<div class="method-description">
|
1163
|
-
|
1164
|
-
<p>
|
1165
|
-
sets the options for the loaded scenario
|
1166
|
-
</p>
|
1167
|
-
<pre>
|
1168
|
-
* an array of option names
|
1169
|
-
* an array of option values</pre>
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
<div class="method-source-code"
|
1174
|
-
id="set-options-source">
|
1175
|
-
<pre>
|
1176
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 156</span>
|
1177
|
-
156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_options</span>(<span class="ruby-identifier">names</span>=[], <span class="ruby-identifier">values</span>=[])
|
1178
|
-
157: <span class="ruby-identifier">responses</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
1179
|
-
158: <span class="ruby-identifier">names</span>.<span class="ruby-identifier">length</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span>
|
1180
|
-
159: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/scenario/options/#{names[i]}/#{values[i]}"</span>)
|
1181
|
-
160: <span class="ruby-identifier">responses</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">response</span>
|
1182
|
-
161: <span class="ruby-keyword kw">end</span>
|
1183
|
-
162: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">responses</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
1184
|
-
163: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">responses</span>
|
1185
|
-
164: <span class="ruby-keyword kw">end</span></pre>
|
1186
|
-
</div>
|
1187
|
-
|
1188
|
-
</div>
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
</div>
|
1194
|
-
|
1195
|
-
|
1196
|
-
<div id="setup-test-method" class="method-detail ">
|
1197
|
-
<a name="method-i-setup_test"></a>
|
1198
|
-
|
1199
|
-
<div class="method-heading">
|
1200
|
-
|
1201
|
-
<span class="method-name">setup_test</span><span
|
1202
|
-
class="method-args">()</span>
|
1203
|
-
<span class="method-click-advice">click to toggle source</span>
|
1204
|
-
|
1205
|
-
</div>
|
1206
|
-
|
1207
|
-
<div class="method-description">
|
1208
|
-
|
1209
|
-
<p>
|
1210
|
-
sets up a test for run
|
1211
|
-
</p>
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
<div class="method-source-code"
|
1216
|
-
id="setup-test-source">
|
1217
|
-
<pre>
|
1218
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 83</span>
|
1219
|
-
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_test</span>
|
1220
|
-
84: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"session/setupTest"</span>)
|
1221
|
-
85: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
1222
|
-
86: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
1223
|
-
87: <span class="ruby-keyword kw">end</span></pre>
|
1224
|
-
</div>
|
1225
|
-
|
1226
|
-
</div>
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
</div>
|
1232
|
-
|
1233
|
-
|
1234
|
-
<div id="teardown-test-method" class="method-detail ">
|
1235
|
-
<a name="method-i-teardown_test"></a>
|
1236
|
-
|
1237
|
-
<div class="method-heading">
|
1238
|
-
|
1239
|
-
<span class="method-name">teardown_test</span><span
|
1240
|
-
class="method-args">()</span>
|
1241
|
-
<span class="method-click-advice">click to toggle source</span>
|
1242
|
-
|
1243
|
-
</div>
|
1244
|
-
|
1245
|
-
<div class="method-description">
|
1246
|
-
|
1247
|
-
<p>
|
1248
|
-
tears down a test
|
1249
|
-
</p>
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
<div class="method-source-code"
|
1254
|
-
id="teardown-test-source">
|
1255
|
-
<pre>
|
1256
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 90</span>
|
1257
|
-
90: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown_test</span>
|
1258
|
-
91: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"session/test/tearDownTest"</span>)
|
1259
|
-
92: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
1260
|
-
93: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
1261
|
-
94: <span class="ruby-keyword kw">end</span></pre>
|
1262
|
-
</div>
|
1263
|
-
|
1264
|
-
</div>
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
</div>
|
1270
|
-
|
1271
|
-
|
1272
|
-
<div id="wait-until-done-method" class="method-detail ">
|
1273
|
-
<a name="method-i-wait_until_done"></a>
|
1274
|
-
|
1275
|
-
<div class="method-heading">
|
1276
|
-
|
1277
|
-
<span class="method-name">wait_until_done</span><span
|
1278
|
-
class="method-args">(timeout=120)</span>
|
1279
|
-
<span class="method-click-advice">click to toggle source</span>
|
1280
|
-
|
1281
|
-
</div>
|
1282
|
-
|
1283
|
-
<div class="method-description">
|
1284
|
-
|
1285
|
-
<p>
|
1286
|
-
waits until the test is done or the timeout expires
|
1287
|
-
</p>
|
1288
|
-
<pre>
|
1289
|
-
* timeout = the time in seconds to wait for the test to complete</pre>
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
<div class="method-source-code"
|
1294
|
-
id="wait-until-done-source">
|
1295
|
-
<pre>
|
1296
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 176</span>
|
1297
|
-
176: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wait_until_done</span>(<span class="ruby-identifier">timeout</span>=<span class="ruby-value">120</span>)
|
1298
|
-
177: <span class="ruby-identifier">finished</span> = <span class="ruby-keyword kw">false</span>
|
1299
|
-
178: <span class="ruby-identifier">interval</span> = <span class="ruby-identifier">timeout</span> <span class="ruby-operator">/</span> <span class="ruby-value">10</span>
|
1300
|
-
179: <span class="ruby-value">10</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
|
1301
|
-
180: <span class="ruby-keyword kw">begin</span>
|
1302
|
-
181: <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get_testset_status</span>
|
1303
|
-
182: <span class="ruby-comment cmt">#msg "wait_until_done, response = #{response}", Logger::DEBUG</span>
|
1304
|
-
183: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">response</span>.<span class="ruby-identifier">nil?</span>
|
1305
|
-
184: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">"Done"</span>)
|
1306
|
-
185: <span class="ruby-identifier">finished</span> = <span class="ruby-keyword kw">true</span>
|
1307
|
-
186: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">finished</span>
|
1308
|
-
187: <span class="ruby-keyword kw">end</span>
|
1309
|
-
188: <span class="ruby-keyword kw">end</span>
|
1310
|
-
189: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
1311
|
-
190: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span> <span class="ruby-comment cmt"># status may not be ready right away. may return a 500</span>
|
1312
|
-
191: <span class="ruby-keyword kw">end</span>
|
1313
|
-
192: <span class="ruby-identifier">sleep</span> <span class="ruby-identifier">interval</span>
|
1314
|
-
193: <span class="ruby-keyword kw">end</span>
|
1315
|
-
194: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">finished</span>
|
1316
|
-
195: <span class="ruby-keyword kw">end</span></pre>
|
1317
|
-
</div>
|
1318
|
-
|
1319
|
-
</div>
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
</div>
|
1325
|
-
|
1326
|
-
|
1327
|
-
</div>
|
1328
|
-
|
1329
|
-
|
1330
|
-
</div>
|
1331
|
-
|
1332
|
-
|
1333
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
1334
|
-
|
1335
|
-
<p>Disabled; run with --debug to generate this.</p>
|
1336
|
-
|
1337
|
-
</div>
|
1338
|
-
|
1339
|
-
<div id="validator-badges">
|
1340
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
1341
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
1342
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
1343
|
-
</div>
|
1344
|
-
|
1345
|
-
</body>
|
1346
|
-
</html>
|
1347
|
-
|