test_rail_integration 0.0.5.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/Gemfile.html +93 -0
- data/doc/Gemfile_lock.html +109 -0
- data/doc/LICENSE_txt.html +109 -0
- data/doc/README_md.html +150 -0
- data/doc/Rakefile.html +91 -0
- data/doc/TestRail/APIClient.html +295 -0
- data/doc/TestRail/APIError.html +102 -0
- data/doc/TestRail/Connection.html +490 -0
- data/doc/TestRail/Generators.html +95 -0
- data/doc/TestRail/Hook.html +274 -0
- data/doc/TestRail/TestCaseResult.html +265 -0
- data/doc/TestRail/TestRailDataLoad.html +153 -0
- data/doc/TestRail/TestRailTools.html +242 -0
- data/doc/TestRail/TestRunParameters.html +194 -0
- data/doc/TestRail.html +95 -0
- data/doc/TestRailIntegration/CLI.html +154 -0
- data/doc/TestRailIntegration/TestTail/Generators/Project.html +241 -0
- data/doc/TestRailIntegration/TestTail/Generators.html +95 -0
- data/doc/TestRailIntegration/TestTail.html +95 -0
- data/doc/TestRailIntegration.html +109 -0
- data/doc/bin/test_rail_integration.html +54 -0
- data/doc/created.rid +22 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +125 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/test_rail_integration/cli_rb.html +54 -0
- data/doc/lib/test_rail_integration/generator/API_client_rb.html +70 -0
- data/doc/lib/test_rail_integration/generator/connection_rb.html +52 -0
- data/doc/lib/test_rail_integration/generator/project/run_test_run_rb.html +54 -0
- data/doc/lib/test_rail_integration/generator/project_rb.html +56 -0
- data/doc/lib/test_rail_integration/generator/test_case_result_rb.html +52 -0
- data/doc/lib/test_rail_integration/generator/test_rail_hooks_rb.html +52 -0
- data/doc/lib/test_rail_integration/generator/test_rail_tools_rb.html +54 -0
- data/doc/lib/test_rail_integration/generator/test_run_parameters_rb.html +52 -0
- data/doc/lib/test_rail_integration/version_rb.html +52 -0
- data/doc/lib/test_rail_integration_rb.html +56 -0
- data/doc/rdoc.css +763 -0
- data/doc/table_of_contents.html +252 -0
- data/doc/test_rail_integration_gemspec.html +117 -0
- data/lib/test_rail_integration/generator/project/test_rail_data.yml +2 -2
- data/lib/test_rail_integration/generator/test_case_result.rb +1 -1
- data/lib/test_rail_integration/version.rb +1 -1
- metadata +83 -2
@@ -0,0 +1,274 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class TestRail::Hook - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="../js/jquery.js"></script>
|
14
|
+
<script src="../js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="../index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link">Object
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list" role="directory">
|
72
|
+
|
73
|
+
<li ><a href="#method-c-failed_result-3F">::failed_result?</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-c-passed_result-3F">::passed_result?</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-c-unchanged_pass_result-3F">::unchanged_pass_result?</a>
|
78
|
+
|
79
|
+
<li ><a href="#method-c-update_test_rail">::update_test_rail</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
<main role="main" aria-labelledby="class-TestRail::Hook">
|
88
|
+
<h1 id="class-TestRail::Hook" class="class">
|
89
|
+
class TestRail::Hook
|
90
|
+
</h1>
|
91
|
+
|
92
|
+
<section class="description">
|
93
|
+
|
94
|
+
</section>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
110
|
+
<header>
|
111
|
+
<h3>Public Class Methods</h3>
|
112
|
+
</header>
|
113
|
+
|
114
|
+
|
115
|
+
<div id="method-c-failed_result-3F" class="method-detail ">
|
116
|
+
|
117
|
+
<div class="method-heading">
|
118
|
+
<span class="method-name">failed_result?</span><span
|
119
|
+
class="method-args">(result)</span>
|
120
|
+
|
121
|
+
<span class="method-click-advice">click to toggle source</span>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<div class="method-source-code" id="failed_result-3F-source">
|
134
|
+
<pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_hooks.rb, line 29</span>
|
135
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">failed_result?</span>(<span class="ruby-identifier">result</span>)
|
136
|
+
<span class="ruby-operator">!</span><span class="ruby-identifier">result</span>
|
137
|
+
<span class="ruby-keyword">end</span></pre>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</div>
|
146
|
+
|
147
|
+
|
148
|
+
<div id="method-c-passed_result-3F" class="method-detail ">
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<span class="method-name">passed_result?</span><span
|
152
|
+
class="method-args">(result, prev_result)</span>
|
153
|
+
|
154
|
+
<span class="method-click-advice">click to toggle source</span>
|
155
|
+
|
156
|
+
</div>
|
157
|
+
|
158
|
+
|
159
|
+
<div class="method-description">
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
<div class="method-source-code" id="passed_result-3F-source">
|
167
|
+
<pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_hooks.rb, line 33</span>
|
168
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">passed_result?</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">prev_result</span>)
|
169
|
+
<span class="ruby-identifier">result</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">prev_result</span> <span class="ruby-operator">!=</span> <span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCaseResult</span><span class="ruby-operator">::</span><span class="ruby-constant">FAILED</span>
|
170
|
+
<span class="ruby-keyword">end</span></pre>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
<div id="method-c-unchanged_pass_result-3F" class="method-detail ">
|
182
|
+
|
183
|
+
<div class="method-heading">
|
184
|
+
<span class="method-name">unchanged_pass_result?</span><span
|
185
|
+
class="method-args">(result, prev_result)</span>
|
186
|
+
|
187
|
+
<span class="method-click-advice">click to toggle source</span>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
|
191
|
+
|
192
|
+
<div class="method-description">
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<div class="method-source-code" id="unchanged_pass_result-3F-source">
|
200
|
+
<pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_hooks.rb, line 37</span>
|
201
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">unchanged_pass_result?</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">prev_result</span>)
|
202
|
+
<span class="ruby-identifier">result</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">prev_result</span> <span class="ruby-operator">==</span> <span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCaseResult</span><span class="ruby-operator">::</span><span class="ruby-constant">FAILED</span>
|
203
|
+
<span class="ruby-keyword">end</span></pre>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
</div>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
</div>
|
212
|
+
|
213
|
+
|
214
|
+
<div id="method-c-update_test_rail" class="method-detail ">
|
215
|
+
|
216
|
+
<div class="method-heading">
|
217
|
+
<span class="method-name">update_test_rail</span><span
|
218
|
+
class="method-args">(scenario)</span>
|
219
|
+
|
220
|
+
<span class="method-click-advice">click to toggle source</span>
|
221
|
+
|
222
|
+
</div>
|
223
|
+
|
224
|
+
|
225
|
+
<div class="method-description">
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
<div class="method-source-code" id="update_test_rail-source">
|
233
|
+
<pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_hooks.rb, line 9</span>
|
234
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">update_test_rail</span>(<span class="ruby-identifier">scenario</span>)
|
235
|
+
<span class="ruby-identifier">test_case_id</span> = <span class="ruby-identifier">scenario</span>.<span class="ruby-identifier">source_tag_names</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">match</span>(<span class="ruby-constant">TEST_RAIL_ID_REGEX</span>) }[<span class="ruby-value">2</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
236
|
+
|
237
|
+
<span class="ruby-identifier">prev_result</span> = <span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">Connection</span>.<span class="ruby-identifier">get_previous_test_result</span>(<span class="ruby-identifier">test_case_id</span>)
|
238
|
+
<span class="ruby-identifier">both_run_result</span> = <span class="ruby-identifier">scenario</span>.<span class="ruby-identifier">passed?</span> <span class="ruby-operator">||</span> <span class="ruby-constant">RunInformation</span>.<span class="ruby-identifier">second_run_result</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
239
|
+
<span class="ruby-identifier">test_case_result</span> = <span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCaseResult</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">test_case_id</span>, <span class="ruby-identifier">scenario</span>.<span class="ruby-identifier">title</span>)
|
240
|
+
|
241
|
+
<span class="ruby-identifier">test_case_result</span>.<span class="ruby-identifier">comment</span> = <span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCaseResult</span><span class="ruby-operator">::</span><span class="ruby-constant">COMMENT</span>[<span class="ruby-value">:pass</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">passed_result?</span>(<span class="ruby-identifier">both_run_result</span>, <span class="ruby-identifier">prev_result</span>)
|
242
|
+
<span class="ruby-identifier">test_case_result</span>.<span class="ruby-identifier">comment</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCaseResult</span><span class="ruby-operator">::</span><span class="ruby-constant">COMMENT</span>[<span class="ruby-value">:unchanged_pass</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">unchanged_pass_result?</span>(<span class="ruby-identifier">both_run_result</span>, <span class="ruby-identifier">prev_result</span>)
|
243
|
+
|
244
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">failed_result?</span>(<span class="ruby-identifier">both_run_result</span>)
|
245
|
+
<span class="ruby-identifier">test_case_result</span>.<span class="ruby-identifier">comment</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">TestCaseResult</span><span class="ruby-operator">::</span><span class="ruby-constant">COMMENT</span>[<span class="ruby-value">:fail</span>]
|
246
|
+
<span class="ruby-identifier">test_case_result</span>.<span class="ruby-identifier">exception_message</span> = <span class="ruby-identifier">scenario</span>.<span class="ruby-identifier">steps</span>.<span class="ruby-identifier">exception</span> <span class="ruby-keyword">rescue</span> <span class="ruby-keyword">nil</span>
|
247
|
+
<span class="ruby-keyword">end</span>
|
248
|
+
|
249
|
+
<span class="ruby-identifier">raise</span>(<span class="ruby-node">"Invalide test case result : scenario.passed? #{scenario.passed?}, both_run_result? #{both_run_result} prev_result? #{prev_result}"</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">test_case_result</span>.<span class="ruby-identifier">comment</span>.<span class="ruby-identifier">nil?</span>
|
250
|
+
|
251
|
+
<span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">Connection</span>.<span class="ruby-identifier">commit_test_result</span>(<span class="ruby-identifier">test_case_result</span>)
|
252
|
+
<span class="ruby-keyword">end</span></pre>
|
253
|
+
</div>
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
</div>
|
261
|
+
|
262
|
+
|
263
|
+
</section>
|
264
|
+
|
265
|
+
</section>
|
266
|
+
</main>
|
267
|
+
|
268
|
+
|
269
|
+
<footer id="validator-badges" role="contentinfo">
|
270
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
271
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
272
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
273
|
+
</footer>
|
274
|
+
|
@@ -0,0 +1,265 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class TestRail::TestCaseResult - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="../js/jquery.js"></script>
|
14
|
+
<script src="../js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="../index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link">Object
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list" role="directory">
|
72
|
+
|
73
|
+
<li ><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-to_test_rail_api">#to_test_rail_api</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<main role="main" aria-labelledby="class-TestRail::TestCaseResult">
|
84
|
+
<h1 id="class-TestRail::TestCaseResult" class="class">
|
85
|
+
class TestRail::TestCaseResult
|
86
|
+
</h1>
|
87
|
+
|
88
|
+
<section class="description">
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
<section class="attribute-method-details" class="method-section">
|
104
|
+
<header>
|
105
|
+
<h3>Attributes</h3>
|
106
|
+
</header>
|
107
|
+
|
108
|
+
|
109
|
+
<div id="attribute-i-comment" class="method-detail">
|
110
|
+
<div class="method-heading attribute-method-heading">
|
111
|
+
<span class="method-name">comment</span><span
|
112
|
+
class="attribute-access-type">[RW]</span>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<div class="method-description">
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
</div>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
<div id="attribute-i-exception_message" class="method-detail">
|
123
|
+
<div class="method-heading attribute-method-heading">
|
124
|
+
<span class="method-name">exception_message</span><span
|
125
|
+
class="attribute-access-type">[RW]</span>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<div class="method-description">
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
|
135
|
+
<div id="attribute-i-test_case_id" class="method-detail">
|
136
|
+
<div class="method-heading attribute-method-heading">
|
137
|
+
<span class="method-name">test_case_id</span><span
|
138
|
+
class="attribute-access-type">[RW]</span>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
<div class="method-description">
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</div>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div id="attribute-i-title" class="method-detail">
|
149
|
+
<div class="method-heading attribute-method-heading">
|
150
|
+
<span class="method-name">title</span><span
|
151
|
+
class="attribute-access-type">[RW]</span>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
<div class="method-description">
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
</section>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
166
|
+
<header>
|
167
|
+
<h3>Public Class Methods</h3>
|
168
|
+
</header>
|
169
|
+
|
170
|
+
|
171
|
+
<div id="method-c-new" class="method-detail ">
|
172
|
+
|
173
|
+
<div class="method-heading">
|
174
|
+
<span class="method-name">new</span><span
|
175
|
+
class="method-args">(test_case_id, title)</span>
|
176
|
+
|
177
|
+
<span class="method-click-advice">click to toggle source</span>
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
<div class="method-description">
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<div class="method-source-code" id="new-source">
|
190
|
+
<pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_case_result.rb, line 21</span>
|
191
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">test_case_id</span>, <span class="ruby-identifier">title</span>)
|
192
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">test_case_id</span> = <span class="ruby-identifier">test_case_id</span>
|
193
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">title</span>
|
194
|
+
<span class="ruby-keyword">end</span></pre>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
</div>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
</div>
|
203
|
+
|
204
|
+
|
205
|
+
</section>
|
206
|
+
|
207
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
208
|
+
<header>
|
209
|
+
<h3>Public Instance Methods</h3>
|
210
|
+
</header>
|
211
|
+
|
212
|
+
|
213
|
+
<div id="method-i-to_test_rail_api" class="method-detail ">
|
214
|
+
|
215
|
+
<div class="method-heading">
|
216
|
+
<span class="method-name">to_test_rail_api</span><span
|
217
|
+
class="method-args">()</span>
|
218
|
+
|
219
|
+
<span class="method-click-advice">click to toggle source</span>
|
220
|
+
|
221
|
+
</div>
|
222
|
+
|
223
|
+
|
224
|
+
<div class="method-description">
|
225
|
+
|
226
|
+
<p>Send status to <a href="../TestRail.html">TestRail</a></p>
|
227
|
+
|
228
|
+
<p>{status_id: 1, comment: “Test passed”}</p>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<div class="method-source-code" id="to_test_rail_api-source">
|
234
|
+
<pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_case_result.rb, line 31</span>
|
235
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_test_rail_api</span>
|
236
|
+
<span class="ruby-identifier">comment_message</span> = <span class="ruby-node">"\"#{self.title}\" #{self.comment[:comment]}"</span>
|
237
|
+
<span class="ruby-identifier">comment_message</span> <span class="ruby-operator">+=</span> <span class="ruby-node">"\n Exception : #{self.exception_message}"</span> <span class="ruby-keyword">unless</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">exception_message</span>.<span class="ruby-identifier">nil?</span>
|
238
|
+
<span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">comment</span>[<span class="ruby-value">:status</span>] <span class="ruby-operator">==</span> <span class="ruby-constant">COMMENT_STATUS</span>
|
239
|
+
{ <span class="ruby-identifier">comment</span><span class="ruby-operator">:</span> <span class="ruby-identifier">comment_message</span> }
|
240
|
+
<span class="ruby-keyword">else</span>
|
241
|
+
{ <span class="ruby-identifier">status_id</span><span class="ruby-operator">:</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">comment</span>[<span class="ruby-value">:status</span>], <span class="ruby-identifier">comment</span><span class="ruby-operator">:</span> <span class="ruby-identifier">comment_message</span> }
|
242
|
+
<span class="ruby-keyword">end</span>
|
243
|
+
<span class="ruby-keyword">end</span></pre>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
</div>
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</div>
|
252
|
+
|
253
|
+
|
254
|
+
</section>
|
255
|
+
|
256
|
+
</section>
|
257
|
+
</main>
|
258
|
+
|
259
|
+
|
260
|
+
<footer id="validator-badges" role="contentinfo">
|
261
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
262
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
263
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
264
|
+
</footer>
|
265
|
+
|