itriagetestrail 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itriagetestrail/version.rb +1 -1
- data/lib/itriagetestrail.rb +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de99aa91a1b1cfd4c36a14726de04ee4a4391730
|
4
|
+
data.tar.gz: 03dba8ae536a3ee66a29e7481fcaecb5df44fdf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2de9ed80a3a51a1a9e22a9181c836d0116dd729b1ea88f4449394e0ebd9a8614123905941b152ce58a5a725f4d2894374142702e017b8cb387772b1853d20854
|
7
|
+
data.tar.gz: b7b58cba1a2ed419d7d80b6f6bfd9101db487e7d7341841e9697fe568154030d84a1358f79a1d2ec7b19bd1414c2a062b3360563cc083e258d33157942b02dc5
|
data/lib/itriagetestrail.rb
CHANGED
@@ -22,7 +22,7 @@ module Itriagetestrail
|
|
22
22
|
@run_id = 0
|
23
23
|
@setup = false
|
24
24
|
@testrail_config = testrail_config
|
25
|
-
@project_id = @testrail_config
|
25
|
+
@project_id = @testrail_config['project_id']
|
26
26
|
@execute = execute
|
27
27
|
end
|
28
28
|
|
@@ -37,7 +37,7 @@ module Itriagetestrail
|
|
37
37
|
@submitted = { results: [] }
|
38
38
|
|
39
39
|
@external_results = { results: [] }
|
40
|
-
@batch_size = @testrail_config
|
40
|
+
@batch_size = @testrail_config['batch_size']
|
41
41
|
|
42
42
|
make_connection
|
43
43
|
|
@@ -55,9 +55,9 @@ module Itriagetestrail
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def make_connection
|
58
|
-
@client = TestRail::APIClient.new(@testrail_config
|
59
|
-
@client.user = @testrail_config
|
60
|
-
@client.password = @testrail_config
|
58
|
+
@client = TestRail::APIClient.new(@testrail_config['site'])
|
59
|
+
@client.user = @testrail_config['user']
|
60
|
+
@client.password = @testrail_config['password']
|
61
61
|
end
|
62
62
|
|
63
63
|
# TestRail Sections
|
@@ -143,7 +143,7 @@ module Itriagetestrail
|
|
143
143
|
# open a test run to submit test results
|
144
144
|
def add_testrail_run
|
145
145
|
|
146
|
-
if @testrail_config
|
146
|
+
if @testrail_config['include_all?'] then
|
147
147
|
|
148
148
|
body = {
|
149
149
|
:name => "POC Regression on #{Time.now}",
|
@@ -226,7 +226,7 @@ module Itriagetestrail
|
|
226
226
|
def shutdown
|
227
227
|
@pool.shutdown
|
228
228
|
|
229
|
-
if @testrail_config
|
229
|
+
if @testrail_config['close_run?']
|
230
230
|
@client.send_post("close_run/#{@run_id}", {})
|
231
231
|
end
|
232
232
|
end
|