fastlane-plugin-android_testlab_script_swit 0.1.923 → 0.1.925
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb53a680f9b72d0306dc5dfd500770b91a6dd6685ee74162634fdfc63620049b
|
4
|
+
data.tar.gz: 8577d0dc9f6a99c6852659b84fa7d1f7d056d8b9425a025f87b7a3c44af837f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65147933cff1cef5c549d667c482c5b947ed0de183295ecd7244697e9bcdfe4cb1a23e9c857ba156c189583cb0805fe5d0f940d87356f762bcc195a169b1147b
|
7
|
+
data.tar.gz: 33b66527d1bce78cf7289049cc2163691a3a7ca849e5965162c918734c4cb244d25e922d1d657f4b5b36ab266e767959adf7987626441c9effdeae4eb55d9420
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -15,7 +15,7 @@ module Fastlane
|
|
15
15
|
duration_sec_total = (end_time - start_time).round(1)
|
16
16
|
duration_min = (duration_sec_total / 60).round(1)
|
17
17
|
duration_sec = duration_sec_total % 60
|
18
|
-
return "#{duration_min}분
|
18
|
+
return "총 #{duration_min}분 테스트"
|
19
19
|
end
|
20
20
|
|
21
21
|
# actions run
|
@@ -24,6 +24,7 @@ module Fastlane
|
|
24
24
|
UI.message("Start Action")
|
25
25
|
UI.message("********************************")
|
26
26
|
|
27
|
+
# TestLab 작업 및 작업 소요시간 측정
|
27
28
|
duration = measure_time do
|
28
29
|
|
29
30
|
# Result Bucket & Dir
|
@@ -72,7 +73,7 @@ module Fastlane
|
|
72
73
|
|
73
74
|
# Swit Send PayLoad - 테스트 시간 추가
|
74
75
|
swit_webhook_payload = params[:swit_webhook_payload][0..-5] + ','
|
75
|
-
swit_webhook_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"테스트 시간 : #{duration}\"}]},"
|
76
|
+
swit_webhook_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"테스트 시간 : #{duration}\",\"styles\":{\"bold\":true}}]},"
|
76
77
|
|
77
78
|
# Firebase Test Lab Result Json
|
78
79
|
resultJson = JSON.parse(File.read(params[:console_log_file_name]))
|
@@ -81,17 +82,17 @@ module Fastlane
|
|
81
82
|
axis_value_parts = item["axis_value"].split('-')
|
82
83
|
outcome = item["outcome"]
|
83
84
|
|
84
|
-
model
|
85
|
-
version
|
86
|
-
locale
|
87
|
-
orientation
|
85
|
+
model = axis_value_parts[0]
|
86
|
+
version = axis_value_parts[1]
|
87
|
+
locale = axis_value_parts[2]
|
88
|
+
orientation = axis_value_parts[3]
|
88
89
|
|
89
90
|
parts_payload = axis_value_parts.map do |part|
|
90
91
|
"{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
|
91
92
|
end.join(',')
|
92
93
|
|
93
|
-
device_payload = "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"
|
94
|
-
|
94
|
+
device_payload = "[{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"#{model}\"}]},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"OS: #{version} / Locale: #{locale} / Orientation: #{orientation}\"},{\"type\":\"rich_text\",\"elements\":[{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"},{\"type\":\"rt_text\",\"content\":\" #{outcome} \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"}]}"
|
95
|
+
|
95
96
|
end.join(',')
|
96
97
|
|
97
98
|
swit_device_payload.chomp!(',')
|
@@ -99,7 +100,6 @@ module Fastlane
|
|
99
100
|
# Swit PayLoad 병합
|
100
101
|
swit_webhook_payload += swit_device_payload + ']}]}'
|
101
102
|
|
102
|
-
# 마지막 체크
|
103
103
|
UI.message(swit_webhook_payload)
|
104
104
|
|
105
105
|
# Swit WebHook
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-android_testlab_script_swit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.925
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 나비이쁜이
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|