testrail-rails 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/testrail/client.rb +34 -7
- data/lib/testrail/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b7113da49f5b0838f62f25288a921ba74e1aae2
|
4
|
+
data.tar.gz: 84570548470cbe5e1ec1798e652387a0c568fc86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e59a39cb539255a624d7565002d26344f9e63c79a5764ebbf940d268189d0124eb98fdd31a1a47b1e82c6beb4ae9d1122c2a96b357d9a88a1af7db52418d13d
|
7
|
+
data.tar.gz: 2386a421c4e11a1ac216eddbe973f3ca1f193bf2e6fe0ee202f53ee680021fed7b24cf88785d5fd50ef181da682d78215b1d4fe5c19ff2c729e1a2060d5369d9
|
data/lib/testrail/client.rb
CHANGED
@@ -1,13 +1,40 @@
|
|
1
|
-
require 'testrail/api_client'
|
2
|
-
|
3
1
|
module TestRail
|
4
2
|
class Client
|
5
|
-
attr_accessor :connection
|
3
|
+
attr_accessor :connection, :url, :username, :password
|
4
|
+
|
5
|
+
def initialize(username,password,url)
|
6
|
+
@url_endpoint = url || self.class.url
|
7
|
+
@connection = APIClient.new(url)
|
8
|
+
@connection.user = username || self.class.username
|
9
|
+
@connection.password = password || self.class.password
|
10
|
+
end
|
11
|
+
|
12
|
+
def project
|
13
|
+
Project.new(connection)
|
14
|
+
end
|
15
|
+
|
16
|
+
def release
|
17
|
+
Release.new(connection)
|
18
|
+
end
|
19
|
+
|
20
|
+
def section
|
21
|
+
Section.new(connection)
|
22
|
+
end
|
23
|
+
|
24
|
+
def suite
|
25
|
+
Suite.new(connection)
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_case
|
29
|
+
TestCase.new(connection)
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_result
|
33
|
+
TestResult.new(connection)
|
34
|
+
end
|
6
35
|
|
7
|
-
def
|
8
|
-
|
9
|
-
@connection.user = user
|
10
|
-
@connection.password = password
|
36
|
+
def test_run
|
37
|
+
TestRun.new(connection)
|
11
38
|
end
|
12
39
|
end
|
13
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testrail-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Lockhart
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|