testrail_helper 0.0.2 → 0.0.3
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/lib/testrail_helper/version.rb +1 -1
- data/test.rb +3 -3
- 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: 92fcc806b8b08ad4204980db5a20e0cfdfa4d813
|
4
|
+
data.tar.gz: 18fc0e09856c9fb4e188645ad4146914d8a795b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e84e206166131b01b5cfaacb39e8134b7c2f045e528b6607f82799a9902fa01eea17c30dbc1aae4a3b436180a22200e5699243f95e526f87c4f2a25c0a3e1ca2
|
7
|
+
data.tar.gz: c65e6627f8cb0bf3d5210a12bd9c6bdd97a02151a279f6b650ce40f72dde6e8e0df99964615636d31788eca96d1c2a83bc01593a11b0b247d7c686a8efec0b09
|
data/test.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/lib/testrail_helper')
|
2
2
|
|
3
3
|
# create a new client
|
4
|
-
client = TestrailHelper::Client.new(username:'
|
4
|
+
client = TestrailHelper::Client.new(username:'',password: '',url: 'https://blarg.testrail.com/')
|
5
5
|
|
6
6
|
# get a list of test cases by passing in the suite_id and section_id
|
7
7
|
cases = client.get_all_test_cases_in_section(suite_id: "729", section_id: "8")
|
@@ -15,5 +15,5 @@ filtered_cases_with_or = client.filter_by_fields_or(cases,priority_id: 4, creat
|
|
15
15
|
# write list to file
|
16
16
|
write_to_file(cases,'/output/filename')
|
17
17
|
|
18
|
-
# update test case
|
19
|
-
|
18
|
+
# update a test case by simply putting the test_id
|
19
|
+
update_test_case(12345,priority_id:2,type_id:1)
|