test_rail_integration 0.0.6.24 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -131,7 +131,7 @@
131
131
 
132
132
 
133
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>
134
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_hooks.rb, line 33</span>
135
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
136
  <span class="ruby-operator">!</span><span class="ruby-identifier">result</span>
137
137
  <span class="ruby-keyword">end</span></pre>
@@ -164,7 +164,7 @@
164
164
 
165
165
 
166
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>
167
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_hooks.rb, line 37</span>
168
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
169
  <span class="ruby-identifier">result</span> <span class="ruby-operator">&amp;&amp;</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
170
  <span class="ruby-keyword">end</span></pre>
@@ -197,7 +197,7 @@
197
197
 
198
198
 
199
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>
200
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_hooks.rb, line 41</span>
201
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
202
  <span class="ruby-identifier">result</span> <span class="ruby-operator">&amp;&amp;</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
203
  <span class="ruby-keyword">end</span></pre>
@@ -224,31 +224,33 @@
224
224
 
225
225
  <div class="method-description">
226
226
 
227
-
227
+ <p>Updating Test Rail according to logic</p>
228
228
 
229
229
 
230
230
 
231
231
 
232
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>
233
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_hooks.rb, line 11</span>
234
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
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
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>)
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">run_result</span> = <span class="ruby-identifier">scenario</span>.<span class="ruby-identifier">passed?</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
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>)
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">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">run_result</span>, <span class="ruby-identifier">prev_result</span>)
243
243
 
244
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">failed_result?</span>(<span class="ruby-identifier">both_run_result</span>)
244
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">failed_result?</span>(<span class="ruby-identifier">run_result</span>)
245
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
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-identifier">test_case_result</span>.<span class="ruby-identifier">assign_to</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">ASSIGN_TO</span>
247
248
  <span class="ruby-keyword">end</span>
248
249
 
249
- <span class="ruby-identifier">raise</span>(<span class="ruby-node">&quot;Invalide test case result : scenario.passed? #{scenario.passed?}, both_run_result? #{both_run_result} prev_result? #{prev_result}&quot;</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
+ <span class="ruby-identifier">raise</span>(<span class="ruby-node">&quot;Invalid test case result : scenario.passed? #{scenario.passed?}, prev_result? #{prev_result}, run_result? #{run_result}&quot;</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
 
251
252
  <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>)
253
+
252
254
  <span class="ruby-keyword">end</span></pre>
253
255
  </div>
254
256
 
@@ -106,6 +106,19 @@
106
106
  </header>
107
107
 
108
108
 
109
+ <div id="attribute-i-assign_to" class="method-detail">
110
+ <div class="method-heading attribute-method-heading">
111
+ <span class="method-name">assign_to</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
+
109
122
  <div id="attribute-i-comment" class="method-detail">
110
123
  <div class="method-heading attribute-method-heading">
111
124
  <span class="method-name">comment</span><span
@@ -129,6 +142,19 @@
129
142
 
130
143
 
131
144
 
145
+ </div>
146
+ </div>
147
+
148
+ <div id="attribute-i-previous_comment" class="method-detail">
149
+ <div class="method-heading attribute-method-heading">
150
+ <span class="method-name">previous_comment</span><span
151
+ class="attribute-access-type">[RW]</span>
152
+ </div>
153
+
154
+ <div class="method-description">
155
+
156
+
157
+
132
158
  </div>
133
159
  </div>
134
160
 
@@ -187,10 +213,11 @@
187
213
 
188
214
 
189
215
  <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>
216
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_case_result.rb, line 22</span>
191
217
  <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
218
  <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>
219
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">title</span>
220
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">previous_comment</span> = <span class="ruby-constant">TestRail</span><span class="ruby-operator">::</span><span class="ruby-constant">Connection</span>.<span class="ruby-identifier">get_last_failed_comment</span>(<span class="ruby-identifier">test_case_id</span>) <span class="ruby-keyword">unless</span> <span class="ruby-constant">Connection</span>.<span class="ruby-identifier">get_indexes_of_fails</span>(<span class="ruby-identifier">test_case_id</span>).<span class="ruby-identifier">empty?</span>
194
221
  <span class="ruby-keyword">end</span></pre>
195
222
  </div>
196
223
 
@@ -231,14 +258,15 @@
231
258
 
232
259
 
233
260
  <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>
261
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_case_result.rb, line 33</span>
235
262
  <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">&quot;\&quot;#{self.title}\&quot; #{self.comment[:comment]}&quot;</span>
263
+ <span class="ruby-identifier">comment_message</span> = <span class="ruby-node">&quot;#{self.comment[:comment]} \&quot;#{self.title}\&quot;&quot;</span>
237
264
  <span class="ruby-identifier">comment_message</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;\n Exception : #{self.exception_message}&quot;</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> }
265
+ <span class="ruby-identifier">comment_message</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;\n #{self.previous_comment}&quot;</span> <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</span>[<span class="ruby-value">:fail</span>][<span class="ruby-value">:status</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-operator">==</span> <span class="ruby-constant">COMMENT</span>[<span class="ruby-value">:unchanged_pass</span>][<span class="ruby-value">:status</span>]
266
+ <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>
267
+ {<span class="ruby-identifier">comment</span><span class="ruby-operator">:</span> <span class="ruby-identifier">comment_message</span>}
240
268
  <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> }
269
+ {<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
270
  <span class="ruby-keyword">end</span>
243
271
  <span class="ruby-keyword">end</span></pre>
244
272
  </div>
@@ -127,7 +127,7 @@
127
127
  <div class="method-source-code" id="test_rail_data-source">
128
128
  <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_data_load.rb, line 10</span>
129
129
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">test_rail_data</span>
130
- <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">CONFIG_PATH</span>))
130
+ <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">TEST_RAIL_FILE_CONFIG_PATH</span>))
131
131
  <span class="ruby-keyword">end</span></pre>
132
132
  </div>
133
133
 
@@ -114,7 +114,7 @@
114
114
 
115
115
  <div class="method-heading">
116
116
  <span class="method-name">generate_cucumber_execution_file</span><span
117
- class="method-args">(id_of_run)</span>
117
+ class="method-args">(id_of_run, env = nil)</span>
118
118
 
119
119
  <span class="method-click-advice">click to toggle source</span>
120
120
 
@@ -128,8 +128,8 @@
128
128
  <p><a
129
129
  href="TestRailTools.html#method-c-generate_cucumber_execution_file">::generate_cucumber_execution_file</a>(2)</p>
130
130
 
131
- <p>cucumber -p lazada.vn.live_test TESTRAIL=1 –color -f json -o cucumber.json
132
- -t @C6162,@C6163,@C6164</p>
131
+ <p>cucumber -p profile.vn.live_test TESTRAIL=1 –color -f json -o cucumber.json
132
+ -t @C666,@C777,@C555</p>
133
133
 
134
134
  <p>change this method for create your own cucumber executable</p>
135
135
 
@@ -138,9 +138,10 @@ href="TestRailTools.html#method-c-generate_cucumber_execution_file">::generate_c
138
138
 
139
139
  <div class="method-source-code" id="generate_cucumber_execution_file-source">
140
140
  <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_tools.rb, line 17</span>
141
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">generate_cucumber_execution_file</span>(<span class="ruby-identifier">id_of_run</span>)
142
- <span class="ruby-identifier">parameters</span> = <span class="ruby-constant">TestRunParameters</span>.<span class="ruby-identifier">new</span>
143
- <span class="ruby-identifier">command</span> = <span class="ruby-node">&quot;cucumber -p lazada.#{parameters.venture}.#{parameters.environment} TESTRAIL=1 --color -f json -o cucumber.json -t &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">Connection</span>.<span class="ruby-identifier">cases_id</span>(<span class="ruby-identifier">id_of_run</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span> <span class="ruby-string">&quot;@C&quot;</span><span class="ruby-operator">+</span><span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;,&quot;</span>)
141
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">generate_cucumber_execution_file</span>(<span class="ruby-identifier">id_of_run</span>, <span class="ruby-identifier">env</span> = <span class="ruby-keyword">nil</span>)
142
+ <span class="ruby-identifier">parameters</span> = <span class="ruby-constant">TestRunParameters</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">env</span>)
143
+ <span class="ruby-comment">#TODO do smth with weird replacement</span>
144
+ <span class="ruby-identifier">command</span> = <span class="ruby-identifier">parameters</span>.<span class="ruby-identifier">command</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-string">&quot;\#{parameters.venture}&quot;</span>, <span class="ruby-identifier">parameters</span>.<span class="ruby-identifier">venture</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-string">&quot;\#{parameters.environment}&quot;</span>, <span class="ruby-identifier">parameters</span>.<span class="ruby-identifier">environment</span>) <span class="ruby-operator">+</span> <span class="ruby-constant">Connection</span>.<span class="ruby-identifier">cases_id</span>(<span class="ruby-identifier">id_of_run</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span> <span class="ruby-string">&quot;@C&quot;</span><span class="ruby-operator">+</span><span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;,&quot;</span>)
144
145
  <span class="ruby-identifier">cucumber_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;cucumber_run.sh&quot;</span>, <span class="ruby-string">&quot;w&quot;</span>)
145
146
  <span class="ruby-identifier">cucumber_file</span>.<span class="ruby-identifier">chmod</span>(<span class="ruby-value">0700</span>)
146
147
  <span class="ruby-identifier">cucumber_file</span>.<span class="ruby-identifier">write</span>(<span class="ruby-node">&quot;#!/bin/sh\n&quot;</span>)
@@ -161,7 +162,7 @@ href="TestRailTools.html#method-c-generate_cucumber_execution_file">::generate_c
161
162
 
162
163
  <div class="method-heading">
163
164
  <span class="method-name">prepare_config</span><span
164
- class="method-args">(run_id)</span>
165
+ class="method-args">(run_id, env = nil)</span>
165
166
 
166
167
  <span class="method-click-advice">click to toggle source</span>
167
168
 
@@ -176,11 +177,11 @@ href="TestRailTools.html#method-c-generate_cucumber_execution_file">::generate_c
176
177
 
177
178
 
178
179
  <div class="method-source-code" id="prepare_config-source">
179
- <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_tools.rb, line 40</span>
180
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">prepare_config</span>(<span class="ruby-identifier">run_id</span>)
180
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_tools.rb, line 41</span>
181
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">prepare_config</span>(<span class="ruby-identifier">run_id</span>, <span class="ruby-identifier">env</span> = <span class="ruby-keyword">nil</span>)
181
182
  <span class="ruby-constant">Connection</span>.<span class="ruby-identifier">test_run_id</span> = <span class="ruby-identifier">run_id</span>
182
183
  <span class="ruby-identifier">write_test_run_id</span>(<span class="ruby-identifier">run_id</span>)
183
- <span class="ruby-identifier">generate_cucumber_execution_file</span>(<span class="ruby-identifier">run_id</span>)
184
+ <span class="ruby-identifier">generate_cucumber_execution_file</span>(<span class="ruby-identifier">run_id</span>, <span class="ruby-identifier">env</span>)
184
185
  <span class="ruby-keyword">end</span></pre>
185
186
  </div>
186
187
 
@@ -211,10 +212,10 @@ href="TestRailTools.html#method-c-generate_cucumber_execution_file">::generate_c
211
212
 
212
213
 
213
214
  <div class="method-source-code" id="write_test_run_id-source">
214
- <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_tools.rb, line 30</span>
215
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_rail_tools.rb, line 31</span>
215
216
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">write_test_run_id</span>(<span class="ruby-identifier">test_run_id</span>)
216
- <span class="ruby-identifier">test_rail_data_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-constant">CONFIG_PATH</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/^:test_run_id: \d+/</span>, <span class="ruby-node">&quot;:test_run_id: #{test_run_id}&quot;</span>)
217
- <span class="ruby-identifier">config_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">CONFIG_PATH</span>, <span class="ruby-string">&quot;w&quot;</span>)
217
+ <span class="ruby-identifier">test_rail_data_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-constant">TestRailDataLoad</span><span class="ruby-operator">::</span><span class="ruby-constant">TEST_RAIL_FILE_CONFIG_PATH</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/^:test_run_id:.*/</span>, <span class="ruby-node">&quot;:test_run_id: #{test_run_id}&quot;</span>)
218
+ <span class="ruby-identifier">config_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">TestRailDataLoad</span><span class="ruby-operator">::</span><span class="ruby-constant">TEST_RAIL_FILE_CONFIG_PATH</span>, <span class="ruby-string">&quot;w&quot;</span>)
218
219
  <span class="ruby-identifier">config_file</span>.<span class="ruby-identifier">write</span> (<span class="ruby-identifier">test_rail_data_file</span>)
219
220
  <span class="ruby-identifier">config_file</span>.<span class="ruby-identifier">close</span>
220
221
  <span class="ruby-keyword">end</span></pre>
@@ -104,6 +104,19 @@
104
104
  </header>
105
105
 
106
106
 
107
+ <div id="attribute-i-command" class="method-detail">
108
+ <div class="method-heading attribute-method-heading">
109
+ <span class="method-name">command</span><span
110
+ class="attribute-access-type">[RW]</span>
111
+ </div>
112
+
113
+ <div class="method-description">
114
+
115
+
116
+
117
+ </div>
118
+ </div>
119
+
107
120
  <div id="attribute-i-environment" class="method-detail">
108
121
  <div class="method-heading attribute-method-heading">
109
122
  <span class="method-name">environment</span><span
@@ -144,7 +157,7 @@
144
157
 
145
158
  <div class="method-heading">
146
159
  <span class="method-name">new</span><span
147
- class="method-args">()</span>
160
+ class="method-args">(env=nil)</span>
148
161
 
149
162
  <span class="method-click-advice">click to toggle source</span>
150
163
 
@@ -154,21 +167,25 @@
154
167
  <div class="method-description">
155
168
 
156
169
  <p>Checking of correct naming of created test run and return parameters for
157
- runnng test run</p>
170
+ running test run</p>
158
171
 
159
172
 
160
173
 
161
174
 
162
175
  <div class="method-source-code" id="new-source">
163
- <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_run_parameters.rb, line 13</span>
164
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
165
- <span class="ruby-identifier">parameters</span> = <span class="ruby-constant">Connection</span>.<span class="ruby-identifier">test_run_name</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">match</span>(<span class="ruby-node">/^(#{VENTURE_REGEX}) (#{ENVIRONMENT_REGEX})*/</span>)
166
- <span class="ruby-keyword">begin</span>
167
- <span class="ruby-ivar">@venture</span> = <span class="ruby-identifier">parameters</span>[<span class="ruby-value">1</span>]
168
- <span class="ruby-ivar">@environment</span> = <span class="ruby-identifier">parameters</span>[<span class="ruby-value">2</span>]
169
- <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span>
170
- <span class="ruby-identifier">raise</span> (<span class="ruby-string">&quot;The test run name is not valid. Format: &#39;venture env description&#39;&quot;</span>)
176
+ <pre><span class="ruby-comment"># File lib/test_rail_integration/generator/test_run_parameters.rb, line 15</span>
177
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">env</span>=<span class="ruby-keyword">nil</span>)
178
+ <span class="ruby-ivar">@venture</span> = <span class="ruby-string">&quot;&quot;</span>
179
+ <span class="ruby-ivar">@environment</span> = <span class="ruby-string">&quot;&quot;</span>
180
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">env</span>
181
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">env</span>[<span class="ruby-value">0</span>]
182
+ <span class="ruby-ivar">@venture</span> = <span class="ruby-identifier">env</span>[<span class="ruby-value">0</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">env</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">match</span>(<span class="ruby-node">/(#{VENTURE_REGEX})/</span>)
183
+ <span class="ruby-keyword">end</span>
184
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">env</span>[<span class="ruby-value">1</span>]
185
+ <span class="ruby-ivar">@environment</span> = <span class="ruby-identifier">env</span>[<span class="ruby-value">1</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">env</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">match</span>(<span class="ruby-node">/(#{ENVIRONMENT_REGEX})/</span>)
186
+ <span class="ruby-keyword">end</span>
171
187
  <span class="ruby-keyword">end</span>
188
+ <span class="ruby-ivar">@command</span> = <span class="ruby-constant">EXEC_COMMAND</span>
172
189
  <span class="ruby-keyword">end</span></pre>
173
190
  </div>
174
191
 
data/doc/created.rid CHANGED
@@ -1,22 +1,22 @@
1
- Wed, 14 Jan 2015 14:40:47 +0700
1
+ Thu, 05 Mar 2015 10:33:11 +0700
2
2
  ./bin/test_rail_integration Tue, 23 Dec 2014 14:37:32 +0700
3
3
  ./Gemfile Tue, 23 Dec 2014 17:42:32 +0700
4
4
  ./Gemfile.lock Wed, 24 Dec 2014 10:11:20 +0700
5
5
  ./lib/test_rail_integration/cli.rb Wed, 14 Jan 2015 14:37:49 +0700
6
- ./lib/test_rail_integration/generator/API_client.rb Sun, 14 Dec 2014 17:51:04 +0700
7
- ./lib/test_rail_integration/generator/connection.rb Mon, 05 Jan 2015 12:00:00 +0700
8
- ./lib/test_rail_integration/generator/project/run_test_run.rb Fri, 26 Dec 2014 13:50:12 +0700
9
- ./lib/test_rail_integration/generator/project/test_rail_data.yml Sat, 03 Jan 2015 13:07:42 +0700
6
+ ./lib/test_rail_integration/generator/API_client.rb Wed, 04 Mar 2015 11:24:53 +0700
7
+ ./lib/test_rail_integration/generator/connection.rb Thu, 05 Mar 2015 10:23:35 +0700
8
+ ./lib/test_rail_integration/generator/project/run_test_run.rb Wed, 04 Mar 2015 14:14:36 +0700
9
+ ./lib/test_rail_integration/generator/project/test_rail_data.yml Wed, 04 Mar 2015 11:13:22 +0700
10
10
  ./lib/test_rail_integration/generator/project.rb Wed, 14 Jan 2015 14:40:19 +0700
11
- ./lib/test_rail_integration/generator/test_case_result.rb Mon, 05 Jan 2015 12:00:00 +0700
12
- ./lib/test_rail_integration/generator/test_rail_data_load.rb Mon, 05 Jan 2015 12:00:00 +0700
13
- ./lib/test_rail_integration/generator/test_rail_hooks.rb Fri, 26 Dec 2014 14:52:30 +0700
14
- ./lib/test_rail_integration/generator/test_rail_tools.rb Mon, 05 Jan 2015 12:13:46 +0700
15
- ./lib/test_rail_integration/generator/test_run_parameters.rb Mon, 05 Jan 2015 12:13:46 +0700
16
- ./lib/test_rail_integration/version.rb Wed, 14 Jan 2015 14:40:42 +0700
11
+ ./lib/test_rail_integration/generator/test_case_result.rb Wed, 04 Mar 2015 14:58:51 +0700
12
+ ./lib/test_rail_integration/generator/test_rail_data_load.rb Wed, 04 Mar 2015 11:48:55 +0700
13
+ ./lib/test_rail_integration/generator/test_rail_hooks.rb Thu, 05 Mar 2015 10:25:45 +0700
14
+ ./lib/test_rail_integration/generator/test_rail_tools.rb Wed, 04 Mar 2015 11:24:53 +0700
15
+ ./lib/test_rail_integration/generator/test_run_creation.rb Wed, 04 Mar 2015 11:24:53 +0700
16
+ ./lib/test_rail_integration/generator/test_run_parameters.rb Wed, 04 Mar 2015 15:49:19 +0700
17
+ ./lib/test_rail_integration/version.rb Thu, 05 Mar 2015 10:33:04 +0700
17
18
  ./lib/test_rail_integration.rb Mon, 22 Dec 2014 14:22:46 +0700
18
19
  ./LICENSE.txt Thu, 25 Dec 2014 14:07:50 +0700
19
20
  ./Rakefile Mon, 15 Dec 2014 11:19:14 +0700
20
- ./README.md Fri, 26 Dec 2014 14:52:30 +0700
21
- ./test_rail_integration-0.0.5.gem Fri, 26 Dec 2014 14:56:24 +0700
21
+ ./README.md Thu, 05 Mar 2015 10:32:56 +0700
22
22
  ./test_rail_integration.gemspec Thu, 25 Dec 2014 13:33:20 +0700
data/doc/index.html CHANGED
@@ -93,6 +93,8 @@
93
93
 
94
94
  <li><a href="./TestRail/TestRailTools.html">TestRail::TestRailTools</a>
95
95
 
96
+ <li><a href="./TestRail/TestRunCreation.html">TestRail::TestRunCreation</a>
97
+
96
98
  <li><a href="./TestRail/TestRunParameters.html">TestRail::TestRunParameters</a>
97
99
 
98
100
  <li><a href="./TestRailIntegration.html">TestRailIntegration</a>
@@ -1 +1 @@
1
- var search_data = {"index":{"searchIndex":["testrail","apiclient","apierror","connection","hook","testcaseresult","testraildataload","testrailtools","testrunparameters","testrailintegration","cli","testtail","generators","project","cases_id()","change_test_run_name()","client()","commit_test_result()","copy_file()","failed_result?()","generate_cucumber_execution_file()","get_previous_test_result()","get_test_result()","new()","new()","new()","passed_result?()","perform()","prepare_config()","send_get()","send_post()","source_root()","test_rail_data()","test_rail_data_file_exist?()","test_run_data()","test_run_id()","test_run_id=()","test_run_name()","to_test_rail_api()","unchanged_pass_result?()","update_test_rail()","write_test_run_id()","gemfile","gemfile.lock","license","readme","rakefile","test_rail_integration.gemspec"],"longSearchIndex":["testrail","testrail::apiclient","testrail::apierror","testrail::connection","testrail::hook","testrail::testcaseresult","testrail::testraildataload","testrail::testrailtools","testrail::testrunparameters","testrailintegration","testrailintegration::cli","testrailintegration::testtail","testrailintegration::testtail::generators","testrailintegration::testtail::generators::project","testrail::connection::cases_id()","testrail::connection::change_test_run_name()","testrail::connection::client()","testrail::connection::commit_test_result()","testrailintegration::testtail::generators::project::copy_file()","testrail::hook::failed_result?()","testrail::testrailtools::generate_cucumber_execution_file()","testrail::connection::get_previous_test_result()","testrail::connection::get_test_result()","testrail::apiclient::new()","testrail::testcaseresult::new()","testrail::testrunparameters::new()","testrail::hook::passed_result?()","testrailintegration::cli#perform()","testrail::testrailtools::prepare_config()","testrail::apiclient#send_get()","testrail::apiclient#send_post()","testrailintegration::testtail::generators::project::source_root()","testrail::testraildataload::test_rail_data()","testrailintegration::testtail::generators::project::test_rail_data_file_exist?()","testrail::connection::test_run_data()","testrail::connection::test_run_id()","testrail::connection::test_run_id=()","testrail::connection::test_run_name()","testrail::testcaseresult#to_test_rail_api()","testrail::hook::unchanged_pass_result?()","testrail::hook::update_test_rail()","testrail::testrailtools::write_test_run_id()","","","","","",""],"info":[["TestRail","","TestRail.html","",""],["TestRail::APIClient","","TestRail/APIClient.html","",""],["TestRail::APIError","","TestRail/APIError.html","",""],["TestRail::Connection","","TestRail/Connection.html","",""],["TestRail::Hook","","TestRail/Hook.html","",""],["TestRail::TestCaseResult","","TestRail/TestCaseResult.html","",""],["TestRail::TestRailDataLoad","","TestRail/TestRailDataLoad.html","",""],["TestRail::TestRailTools","","TestRail/TestRailTools.html","",""],["TestRail::TestRunParameters","","TestRail/TestRunParameters.html","",""],["TestRailIntegration","","TestRailIntegration.html","",""],["TestRailIntegration::CLI","","TestRailIntegration/CLI.html","",""],["TestRailIntegration::TestTail","","TestRailIntegration/TestTail.html","",""],["TestRailIntegration::TestTail::Generators","","TestRailIntegration/TestTail/Generators.html","",""],["TestRailIntegration::TestTail::Generators::Project","","TestRailIntegration/TestTail/Generators/Project.html","",""],["cases_id","TestRail::Connection","TestRail/Connection.html#method-c-cases_id","(test_run_id)","<p>Get ID of all test cases from current test run\n<p>cases = client.send_get(“get_tests/12”)\n"],["change_test_run_name","TestRail::Connection","TestRail/Connection.html#method-c-change_test_run_name","()","<p>Changing name of test run from &lt;test run name&gt; in progress to\n&lt;test run name&gt;\n<p>VN LIVE_TEST …\n"],["client","TestRail::Connection","TestRail/Connection.html#method-c-client","()","<p>Creates connection to TestRail server\n<p>client = TestRail::APIClient.new(&#39;&lt;TestRail\nserver&gt;&#39;,“&lt;User …\n"],["commit_test_result","TestRail::Connection","TestRail/Connection.html#method-c-commit_test_result","(test_case_result)","<p>Send test result to TestRail for current test run\nclient.send_post(“add_result_for_case/&lt;number_of …\n"],["copy_file","TestRailIntegration::TestTail::Generators::Project","TestRailIntegration/TestTail/Generators/Project.html#method-c-copy_file","(file_name, root = nil)","<p>Copying templates for using for accessing to testrail\n"],["failed_result?","TestRail::Hook","TestRail/Hook.html#method-c-failed_result-3F","(result)",""],["generate_cucumber_execution_file","TestRail::TestRailTools","TestRail/TestRailTools.html#method-c-generate_cucumber_execution_file","(id_of_run)","<p>Method generates executable cucumber file\n<p>generate_cucumber_execution_file(2)\n<p>cucumber -p lazada.vn.live_test …\n"],["get_previous_test_result","TestRail::Connection","TestRail/Connection.html#method-c-get_previous_test_result","(case_id)","<p>Parse results and returns Failed if this test was marked as failed.\n"],["get_test_result","TestRail::Connection","TestRail/Connection.html#method-c-get_test_result","(case_id)","<p>Obtaining of all previous test results for current test case\n<p>client.send_get(“get_results_for_case/12/3534”) …\n"],["new","TestRail::APIClient","TestRail/APIClient.html#method-c-new","(connection_data)",""],["new","TestRail::TestCaseResult","TestRail/TestCaseResult.html#method-c-new","(test_case_id, title)",""],["new","TestRail::TestRunParameters","TestRail/TestRunParameters.html#method-c-new","()","<p>Checking of correct naming of created test run and return parameters for\nrunnng test run\n"],["passed_result?","TestRail::Hook","TestRail/Hook.html#method-c-passed_result-3F","(result, prev_result)",""],["perform","TestRailIntegration::CLI","TestRailIntegration/CLI.html#method-i-perform","()",""],["prepare_config","TestRail::TestRailTools","TestRail/TestRailTools.html#method-c-prepare_config","(run_id)","<p>Preparation for create right cucumber executable file\n"],["send_get","TestRail::APIClient","TestRail/APIClient.html#method-i-send_get","(uri)","<p>Send Get\n<p>Issues a GET request (read) against the API and returns the result (as Ruby\nhash).\n<p>Arguments: …\n"],["send_post","TestRail::APIClient","TestRail/APIClient.html#method-i-send_post","(uri, data)","<p>Send POST\n<p>Issues a POST request (write) against the API and returns the result (as\nRuby hash).\n<p>Arguments: …\n"],["source_root","TestRailIntegration::TestTail::Generators::Project","TestRailIntegration/TestTail/Generators/Project.html#method-c-source_root","()","<p>Obtaining path of project folder\n"],["test_rail_data","TestRail::TestRailDataLoad","TestRail/TestRailDataLoad.html#method-c-test_rail_data","()","<p>Loading of test rail information\n"],["test_rail_data_file_exist?","TestRailIntegration::TestTail::Generators::Project","TestRailIntegration/TestTail/Generators/Project.html#method-c-test_rail_data_file_exist-3F","()","<p>Checking existence of tes trail data file\n"],["test_run_data","TestRail::Connection","TestRail/Connection.html#method-c-test_run_data","()","<p>Getting information about test run\n"],["test_run_id","TestRail::Connection","TestRail/Connection.html#method-c-test_run_id","()","<p>Getting test run id value\n"],["test_run_id=","TestRail::Connection","TestRail/Connection.html#method-c-test_run_id-3D","(test_run_id)","<p>Setting up test run id\n"],["test_run_name","TestRail::Connection","TestRail/Connection.html#method-c-test_run_name","()","<p>Get test run name\n"],["to_test_rail_api","TestRail::TestCaseResult","TestRail/TestCaseResult.html#method-i-to_test_rail_api","()","<p>Send status to TestRail\n<p>{status_id: 1, comment: “Test passed”}\n"],["unchanged_pass_result?","TestRail::Hook","TestRail/Hook.html#method-c-unchanged_pass_result-3F","(result, prev_result)",""],["update_test_rail","TestRail::Hook","TestRail/Hook.html#method-c-update_test_rail","(scenario)",""],["write_test_run_id","TestRail::TestRailTools","TestRail/TestRailTools.html#method-c-write_test_run_id","(test_run_id)","<p>Writing test run ID into test rail data file\n"],["Gemfile","","Gemfile.html","","<p>source &#39;rubygems.org&#39;\n<p>gem &#39;thor&#39; gem &#39;fileutils&#39;\n"],["Gemfile.lock","","Gemfile_lock.html","","<p>GEM\n\n<pre>remote: https://rubygems.org/\nspecs:\n fileutils (0.7)\n rmagick (&gt;= 2.13.1)\n rmagick (2.13.4) ...</pre>\n"],["LICENSE","","LICENSE_txt.html","","<p>MIT License\n<p>Permission is hereby granted, free of charge, to any person obtaining a\ncopy of this software …\n"],["README","","README_md.html","","<p>TestRailIntegration\n<p>This game made for interaction between TestRail and Ruby automation\nframework Cucumber+Watir …\n"],["Rakefile","","Rakefile.html","","<p>require “bundler/gem_tasks”\n"],["test_rail_integration.gemspec","","test_rail_integration_gemspec.html","","<p>lib = File.expand_path(&#39;../lib&#39;, __FILE__) $LOAD_PATH.unshift(lib)\nunless $LOAD_PATH.include?(lib) …\n"]]}}
1
+ var search_data = {"index":{"searchIndex":["testrail","apiclient","apierror","connection","hook","testcaseresult","testraildataload","testrailtools","testruncreation","testrunparameters","testrailintegration","cli","testtail","generators","project","cases_id()","cases_with_types()","change_test_run_name()","check_presence_of_test_run()","client()","commit_test_result()","copy_file()","create_new_test_run_with_name()","create_test_run_with_name()","failed_result?()","generate_cucumber_execution_file()","generate_test_run_name()","get_created_test_run_id()","get_indexes_of_fails()","get_last_failed_comment()","get_previous_comments()","get_previous_test_result()","get_test_result()","get_test_runs()","get_test_runs_names()","initialize_test_run()","new()","new()","new()","passed_result?()","perform()","prepare_config()","project_id()","send_get()","send_post()","source_root()","test_rail_data()","test_rail_data_file_exist?()","test_run_data()","test_run_id()","test_run_id=()","test_run_name()","test_suite_id()","to_test_rail_api()","unchanged_pass_result?()","update_test_rail()","write_test_run_id()","gemfile","gemfile.lock","license","readme","rakefile","test_rail_integration.gemspec"],"longSearchIndex":["testrail","testrail::apiclient","testrail::apierror","testrail::connection","testrail::hook","testrail::testcaseresult","testrail::testraildataload","testrail::testrailtools","testrail::testruncreation","testrail::testrunparameters","testrailintegration","testrailintegration::cli","testrailintegration::testtail","testrailintegration::testtail::generators","testrailintegration::testtail::generators::project","testrail::connection::cases_id()","testrail::connection::cases_with_types()","testrail::connection::change_test_run_name()","testrail::testruncreation::check_presence_of_test_run()","testrail::connection::client()","testrail::connection::commit_test_result()","testrailintegration::testtail::generators::project::copy_file()","testrail::connection::create_new_test_run_with_name()","testrail::connection::create_test_run_with_name()","testrail::hook::failed_result?()","testrail::testrailtools::generate_cucumber_execution_file()","testrail::connection::generate_test_run_name()","testrail::testruncreation::get_created_test_run_id()","testrail::connection::get_indexes_of_fails()","testrail::connection::get_last_failed_comment()","testrail::connection::get_previous_comments()","testrail::connection::get_previous_test_result()","testrail::connection::get_test_result()","testrail::connection::get_test_runs()","testrail::testruncreation::get_test_runs_names()","testrail::testruncreation::initialize_test_run()","testrail::apiclient::new()","testrail::testcaseresult::new()","testrail::testrunparameters::new()","testrail::hook::passed_result?()","testrailintegration::cli#perform()","testrail::testrailtools::prepare_config()","testrail::connection::project_id()","testrail::apiclient#send_get()","testrail::apiclient#send_post()","testrailintegration::testtail::generators::project::source_root()","testrail::testraildataload::test_rail_data()","testrailintegration::testtail::generators::project::test_rail_data_file_exist?()","testrail::connection::test_run_data()","testrail::connection::test_run_id()","testrail::connection::test_run_id=()","testrail::connection::test_run_name()","testrail::connection::test_suite_id()","testrail::testcaseresult#to_test_rail_api()","testrail::hook::unchanged_pass_result?()","testrail::hook::update_test_rail()","testrail::testrailtools::write_test_run_id()","","","","","",""],"info":[["TestRail","","TestRail.html","",""],["TestRail::APIClient","","TestRail/APIClient.html","",""],["TestRail::APIError","","TestRail/APIError.html","",""],["TestRail::Connection","","TestRail/Connection.html","",""],["TestRail::Hook","","TestRail/Hook.html","",""],["TestRail::TestCaseResult","","TestRail/TestCaseResult.html","",""],["TestRail::TestRailDataLoad","","TestRail/TestRailDataLoad.html","",""],["TestRail::TestRailTools","","TestRail/TestRailTools.html","",""],["TestRail::TestRunCreation","","TestRail/TestRunCreation.html","",""],["TestRail::TestRunParameters","","TestRail/TestRunParameters.html","",""],["TestRailIntegration","","TestRailIntegration.html","",""],["TestRailIntegration::CLI","","TestRailIntegration/CLI.html","",""],["TestRailIntegration::TestTail","","TestRailIntegration/TestTail.html","",""],["TestRailIntegration::TestTail::Generators","","TestRailIntegration/TestTail/Generators.html","",""],["TestRailIntegration::TestTail::Generators::Project","","TestRailIntegration/TestTail/Generators/Project.html","",""],["cases_id","TestRail::Connection","TestRail/Connection.html#method-c-cases_id","(test_run_id)","<p>Get ID of all test cases from current test run\n<p>cases = client.send_get(“get_tests/12”)\n"],["cases_with_types","TestRail::Connection","TestRail/Connection.html#method-c-cases_with_types","()","<p>Take all test types\n"],["change_test_run_name","TestRail::Connection","TestRail/Connection.html#method-c-change_test_run_name","(run_id = test_run_id)","<p>Changing name of test run from &lt;test run name&gt; in progress to\n&lt;test run name&gt;\n<p>VN LIVE_TEST …\n"],["check_presence_of_test_run","TestRail::TestRunCreation","TestRail/TestRunCreation.html#method-c-check_presence_of_test_run","()","<p>Checking that test run already created\n"],["client","TestRail::Connection","TestRail/Connection.html#method-c-client","()","<p>Creates connection to TestRail server\n<p>client = TestRail::APIClient.new(&#39;&lt;TestRail\nserver&gt;&#39;,“&lt;User …\n"],["commit_test_result","TestRail::Connection","TestRail/Connection.html#method-c-commit_test_result","(test_case_result)","<p>Send test result to TestRail for current test run\nclient.send_post(“add_result_for_case/&lt;number_of …\n"],["copy_file","TestRailIntegration::TestTail::Generators::Project","TestRailIntegration/TestTail/Generators/Project.html#method-c-copy_file","(file_name, root = nil)","<p>Copying templates for using for accessing to testrail\n"],["create_new_test_run_with_name","TestRail::Connection","TestRail/Connection.html#method-c-create_new_test_run_with_name","()","<p>Send request for creation test run with name (“add_run/3”, {suite_id: 3,\nname “New test …\n"],["create_test_run_with_name","TestRail::Connection","TestRail/Connection.html#method-c-create_test_run_with_name","(name)","<p>Create test run in test rail for project with name\n"],["failed_result?","TestRail::Hook","TestRail/Hook.html#method-c-failed_result-3F","(result)",""],["generate_cucumber_execution_file","TestRail::TestRailTools","TestRail/TestRailTools.html#method-c-generate_cucumber_execution_file","(id_of_run, env = nil)","<p>Method generates executable cucumber file\n<p>generate_cucumber_execution_file(2)\n<p>cucumber -p profile.vn.live_test …\n"],["generate_test_run_name","TestRail::Connection","TestRail/Connection.html#method-c-generate_test_run_name","()","<p>Generate name for test run with date\n"],["get_created_test_run_id","TestRail::TestRunCreation","TestRail/TestRunCreation.html#method-c-get_created_test_run_id","()","<p>Get id for new test run that we created\n"],["get_indexes_of_fails","TestRail::Connection","TestRail/Connection.html#method-c-get_indexes_of_fails","(test_case_id)","<p>Get indexes of failed results\n"],["get_last_failed_comment","TestRail::Connection","TestRail/Connection.html#method-c-get_last_failed_comment","(test_case_id)","<p>Get last failed comment for test case\n"],["get_previous_comments","TestRail::Connection","TestRail/Connection.html#method-c-get_previous_comments","(case_id)","<p>Parse results and returns previous comment.\n"],["get_previous_test_result","TestRail::Connection","TestRail/Connection.html#method-c-get_previous_test_result","(case_id)","<p>Parse results and returns Failed if this test was marked as failed.\n"],["get_test_result","TestRail::Connection","TestRail/Connection.html#method-c-get_test_result","(case_id)","<p>Obtaining of all previous test results for current test case\n<p>client.send_get(“get_results_for_case/12/3534”) …\n"],["get_test_runs","TestRail::Connection","TestRail/Connection.html#method-c-get_test_runs","()","<p>Get all test runs for project\n"],["get_test_runs_names","TestRail::TestRunCreation","TestRail/TestRunCreation.html#method-c-get_test_runs_names","()","<p>Get all test run names for project\n"],["initialize_test_run","TestRail::TestRunCreation","TestRail/TestRunCreation.html#method-c-initialize_test_run","()","<p>Check and create test run\n"],["new","TestRail::APIClient","TestRail/APIClient.html#method-c-new","(connection_data)",""],["new","TestRail::TestCaseResult","TestRail/TestCaseResult.html#method-c-new","(test_case_id, title)",""],["new","TestRail::TestRunParameters","TestRail/TestRunParameters.html#method-c-new","(env=nil)","<p>Checking of correct naming of created test run and return parameters for\nrunning test run\n"],["passed_result?","TestRail::Hook","TestRail/Hook.html#method-c-passed_result-3F","(result, prev_result)",""],["perform","TestRailIntegration::CLI","TestRailIntegration/CLI.html#method-i-perform","()",""],["prepare_config","TestRail::TestRailTools","TestRail/TestRailTools.html#method-c-prepare_config","(run_id, env = nil)","<p>Preparation for create right cucumber executable file\n"],["project_id","TestRail::Connection","TestRail/Connection.html#method-c-project_id","()","<p>Setting project id\n"],["send_get","TestRail::APIClient","TestRail/APIClient.html#method-i-send_get","(uri)","<p>Send Get\n<p>Issues a GET request (read) against the API and returns the result (as Ruby\nhash).\n<p>Arguments: …\n"],["send_post","TestRail::APIClient","TestRail/APIClient.html#method-i-send_post","(uri, data)","<p>Send POST\n<p>Issues a POST request (write) against the API and returns the result (as\nRuby hash).\n<p>Arguments: …\n"],["source_root","TestRailIntegration::TestTail::Generators::Project","TestRailIntegration/TestTail/Generators/Project.html#method-c-source_root","()","<p>Obtaining path of project folder\n"],["test_rail_data","TestRail::TestRailDataLoad","TestRail/TestRailDataLoad.html#method-c-test_rail_data","()","<p>Loading of test rail information\n"],["test_rail_data_file_exist?","TestRailIntegration::TestTail::Generators::Project","TestRailIntegration/TestTail/Generators/Project.html#method-c-test_rail_data_file_exist-3F","()","<p>Checking existence of tes trail data file\n"],["test_run_data","TestRail::Connection","TestRail/Connection.html#method-c-test_run_data","(id_of_run=test_run_id)","<p>Getting information about test run\n"],["test_run_id","TestRail::Connection","TestRail/Connection.html#method-c-test_run_id","()","<p>Setting test run id value\n"],["test_run_id=","TestRail::Connection","TestRail/Connection.html#method-c-test_run_id-3D","(test_run_id)","<p>Setting up test run id\n"],["test_run_name","TestRail::Connection","TestRail/Connection.html#method-c-test_run_name","(id_of_run=test_run_id)","<p>Get test run name\n"],["test_suite_id","TestRail::Connection","TestRail/Connection.html#method-c-test_suite_id","()","<p>Setting test suite id\n"],["to_test_rail_api","TestRail::TestCaseResult","TestRail/TestCaseResult.html#method-i-to_test_rail_api","()","<p>Send status to TestRail\n<p>{status_id: 1, comment: “Test passed”}\n"],["unchanged_pass_result?","TestRail::Hook","TestRail/Hook.html#method-c-unchanged_pass_result-3F","(result, prev_result)",""],["update_test_rail","TestRail::Hook","TestRail/Hook.html#method-c-update_test_rail","(scenario)","<p>Updating Test Rail according to logic\n"],["write_test_run_id","TestRail::TestRailTools","TestRail/TestRailTools.html#method-c-write_test_run_id","(test_run_id)","<p>Writing test run ID into test rail data file\n"],["Gemfile","","Gemfile.html","","<p>source &#39;rubygems.org&#39;\n<p>gem &#39;thor&#39; gem &#39;fileutils&#39;\n"],["Gemfile.lock","","Gemfile_lock.html","","<p>GEM\n\n<pre>remote: https://rubygems.org/\nspecs:\n fileutils (0.7)\n rmagick (&gt;= 2.13.1)\n rmagick (2.13.4) ...</pre>\n"],["LICENSE","","LICENSE_txt.html","","<p>MIT License\n<p>Permission is hereby granted, free of charge, to any person obtaining a\ncopy of this software …\n"],["README","","README_md.html","","<p>TestRailIntegration\n<p>This game made for interaction between TestRail and Ruby automation\nframework Cucumber+Watir …\n"],["Rakefile","","Rakefile.html","","<p>require “bundler/gem_tasks”\n"],["test_rail_integration.gemspec","","test_rail_integration_gemspec.html","","<p>lib = File.expand_path(&#39;../lib&#39;, __FILE__) $LOAD_PATH.unshift(lib)\nunless $LOAD_PATH.include?(lib) …\n"]]}}
Binary file
@@ -78,6 +78,9 @@
78
78
  <li class="class">
79
79
  <a href="TestRail/TestRailTools.html">TestRail::TestRailTools</a>
80
80
  </li>
81
+ <li class="class">
82
+ <a href="TestRail/TestRunCreation.html">TestRail::TestRunCreation</a>
83
+ </li>
81
84
  <li class="class">
82
85
  <a href="TestRail/TestRunParameters.html">TestRail::TestRunParameters</a>
83
86
  </li>
@@ -106,11 +109,21 @@
106
109
  &mdash;
107
110
  <span class="container">TestRail::Connection</span>
108
111
 
112
+ <li class="method">
113
+ <a href="TestRail/Connection.html#method-c-cases_with_types">::cases_with_types</a>
114
+ &mdash;
115
+ <span class="container">TestRail::Connection</span>
116
+
109
117
  <li class="method">
110
118
  <a href="TestRail/Connection.html#method-c-change_test_run_name">::change_test_run_name</a>
111
119
  &mdash;
112
120
  <span class="container">TestRail::Connection</span>
113
121
 
122
+ <li class="method">
123
+ <a href="TestRail/TestRunCreation.html#method-c-check_presence_of_test_run">::check_presence_of_test_run</a>
124
+ &mdash;
125
+ <span class="container">TestRail::TestRunCreation</span>
126
+
114
127
  <li class="method">
115
128
  <a href="TestRail/Connection.html#method-c-client">::client</a>
116
129
  &mdash;
@@ -126,6 +139,16 @@
126
139
  &mdash;
127
140
  <span class="container">TestRailIntegration::TestTail::Generators::Project</span>
128
141
 
142
+ <li class="method">
143
+ <a href="TestRail/Connection.html#method-c-create_new_test_run_with_name">::create_new_test_run_with_name</a>
144
+ &mdash;
145
+ <span class="container">TestRail::Connection</span>
146
+
147
+ <li class="method">
148
+ <a href="TestRail/Connection.html#method-c-create_test_run_with_name">::create_test_run_with_name</a>
149
+ &mdash;
150
+ <span class="container">TestRail::Connection</span>
151
+
129
152
  <li class="method">
130
153
  <a href="TestRail/Hook.html#method-c-failed_result-3F">::failed_result?</a>
131
154
  &mdash;
@@ -136,6 +159,31 @@
136
159
  &mdash;
137
160
  <span class="container">TestRail::TestRailTools</span>
138
161
 
162
+ <li class="method">
163
+ <a href="TestRail/Connection.html#method-c-generate_test_run_name">::generate_test_run_name</a>
164
+ &mdash;
165
+ <span class="container">TestRail::Connection</span>
166
+
167
+ <li class="method">
168
+ <a href="TestRail/TestRunCreation.html#method-c-get_created_test_run_id">::get_created_test_run_id</a>
169
+ &mdash;
170
+ <span class="container">TestRail::TestRunCreation</span>
171
+
172
+ <li class="method">
173
+ <a href="TestRail/Connection.html#method-c-get_indexes_of_fails">::get_indexes_of_fails</a>
174
+ &mdash;
175
+ <span class="container">TestRail::Connection</span>
176
+
177
+ <li class="method">
178
+ <a href="TestRail/Connection.html#method-c-get_last_failed_comment">::get_last_failed_comment</a>
179
+ &mdash;
180
+ <span class="container">TestRail::Connection</span>
181
+
182
+ <li class="method">
183
+ <a href="TestRail/Connection.html#method-c-get_previous_comments">::get_previous_comments</a>
184
+ &mdash;
185
+ <span class="container">TestRail::Connection</span>
186
+
139
187
  <li class="method">
140
188
  <a href="TestRail/Connection.html#method-c-get_previous_test_result">::get_previous_test_result</a>
141
189
  &mdash;
@@ -147,20 +195,35 @@
147
195
  <span class="container">TestRail::Connection</span>
148
196
 
149
197
  <li class="method">
150
- <a href="TestRail/TestCaseResult.html#method-c-new">::new</a>
198
+ <a href="TestRail/Connection.html#method-c-get_test_runs">::get_test_runs</a>
151
199
  &mdash;
152
- <span class="container">TestRail::TestCaseResult</span>
200
+ <span class="container">TestRail::Connection</span>
153
201
 
154
202
  <li class="method">
155
- <a href="TestRail/TestRunParameters.html#method-c-new">::new</a>
203
+ <a href="TestRail/TestRunCreation.html#method-c-get_test_runs_names">::get_test_runs_names</a>
156
204
  &mdash;
157
- <span class="container">TestRail::TestRunParameters</span>
205
+ <span class="container">TestRail::TestRunCreation</span>
206
+
207
+ <li class="method">
208
+ <a href="TestRail/TestRunCreation.html#method-c-initialize_test_run">::initialize_test_run</a>
209
+ &mdash;
210
+ <span class="container">TestRail::TestRunCreation</span>
158
211
 
159
212
  <li class="method">
160
213
  <a href="TestRail/APIClient.html#method-c-new">::new</a>
161
214
  &mdash;
162
215
  <span class="container">TestRail::APIClient</span>
163
216
 
217
+ <li class="method">
218
+ <a href="TestRail/TestCaseResult.html#method-c-new">::new</a>
219
+ &mdash;
220
+ <span class="container">TestRail::TestCaseResult</span>
221
+
222
+ <li class="method">
223
+ <a href="TestRail/TestRunParameters.html#method-c-new">::new</a>
224
+ &mdash;
225
+ <span class="container">TestRail::TestRunParameters</span>
226
+
164
227
  <li class="method">
165
228
  <a href="TestRail/Hook.html#method-c-passed_result-3F">::passed_result?</a>
166
229
  &mdash;
@@ -171,6 +234,11 @@
171
234
  &mdash;
172
235
  <span class="container">TestRail::TestRailTools</span>
173
236
 
237
+ <li class="method">
238
+ <a href="TestRail/Connection.html#method-c-project_id">::project_id</a>
239
+ &mdash;
240
+ <span class="container">TestRail::Connection</span>
241
+
174
242
  <li class="method">
175
243
  <a href="TestRailIntegration/TestTail/Generators/Project.html#method-c-source_root">::source_root</a>
176
244
  &mdash;
@@ -206,6 +274,11 @@
206
274
  &mdash;
207
275
  <span class="container">TestRail::Connection</span>
208
276
 
277
+ <li class="method">
278
+ <a href="TestRail/Connection.html#method-c-test_suite_id">::test_suite_id</a>
279
+ &mdash;
280
+ <span class="container">TestRail::Connection</span>
281
+
209
282
  <li class="method">
210
283
  <a href="TestRail/Hook.html#method-c-unchanged_pass_result-3F">::unchanged_pass_result?</a>
211
284
  &mdash;