itriagetestrail 1.0.3 → 1.0.4
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/itriagetestrail/testrail_objects/test_cases.rb +21 -6
- data/lib/itriagetestrail/version.rb +1 -1
- 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: 9d21b60356ba0ddfe516b011a8a912bd61181f7d
|
4
|
+
data.tar.gz: 4dcfa425b6a4c62d861ccf2578832c3cb2062b61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '02390035683f9cd1ff2264f20af584ee039d7630aea9d134f04975a4fb9914c671b08357c636343a462d553f533f5e6df08c5e9d3bfcae6add3e3832565b76aa'
|
7
|
+
data.tar.gz: 77e5e1831e7e7596203944bd3c4f7bd68f206d21e81994c53ce3b816020e2d32af6387b97733609f5f93e106e8ada7456cfebfcee0620cae3549b82710b14770
|
@@ -52,13 +52,28 @@ module Itriagetestrail
|
|
52
52
|
testrail_ids
|
53
53
|
end
|
54
54
|
|
55
|
+
def app_version_label
|
56
|
+
''
|
57
|
+
"App Version:#{@app_version}" unless @app_version.nil? || @app_version == ''
|
58
|
+
end
|
59
|
+
|
60
|
+
def jenkins_build_label
|
61
|
+
''
|
62
|
+
" Jenkins Build:#{@jenkins_build}" unless @jenkins_build .nil? || @jenkins_build == ''
|
63
|
+
end
|
64
|
+
|
65
|
+
def time_zone_label
|
66
|
+
' (' + @time_zone.now.strftime('%-I:%M %p') + ')'
|
67
|
+
end
|
68
|
+
|
55
69
|
def test_name
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
70
|
+
ci_label = "#{app_version_label}#{jenkins_build_label}"
|
71
|
+
|
72
|
+
if ci_label.dup.strip == ''
|
73
|
+
'Regression' + time_zone_label
|
74
|
+
else
|
75
|
+
ci_label + time_zone_label
|
76
|
+
end
|
62
77
|
end
|
63
78
|
end
|
64
79
|
end
|