fastlane-plugin-android_testlab_script_swit 0.1.928 → 0.1.929
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acbb17c99a6df326344bb76a346872f53075f47a46596e9c8eca50b9efe50d9c
|
4
|
+
data.tar.gz: 0f099ad12baf1233686a79f9316fe3367b84c3b915f5690492902a90b8969627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9388b11fb87d45ddf8cda935334606db85dde5fa53e12c7634a1814a04b5e88f5e3f79cc6aadcfe161ed741165e83d543b3b288de5b6c77f768b29ba6c00caa
|
7
|
+
data.tar.gz: '0807db883f1de7d1bf6ae35aeda302d56bc83d3ad07b0236f15c8deaa8a3dcc4fddba5e71ae47e31e8a212cc6403495312ee7e533ba243f6568231d7508773c2'
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -73,7 +73,7 @@ module Fastlane
|
|
73
73
|
|
74
74
|
# Swit Send PayLoad - 테스트 시간 추가
|
75
75
|
swit_webhook_payload = params[:swit_webhook_payload][0..-5] + ','
|
76
|
-
|
76
|
+
swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"테스트 시간 : \"},{\"type\":\"rt_text\",\"content\":\"#{duration}\",\"styles\":{\"bold\":true}}]},"
|
77
77
|
|
78
78
|
# Firebase Test Lab Result Json
|
79
79
|
resultJson = JSON.parse(File.read(params[:console_log_file_name]))
|
@@ -86,21 +86,25 @@ module Fastlane
|
|
86
86
|
version = axis_value_parts[1]
|
87
87
|
locale = axis_value_parts[2]
|
88
88
|
orientation = axis_value_parts[3]
|
89
|
-
|
90
|
-
parts_payload = axis_value_parts.map do |part|
|
91
|
-
"{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
|
92
|
-
end.join(',')
|
93
|
-
|
94
|
-
# device_payload =
|
95
|
-
# "[{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"#{model}\"}]}, " +
|
96
|
-
# "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"OS: #{version} / Locale: #{locale} / Orientation: #{orientation}\"}]}, " +
|
97
|
-
# "{\"type\":\"rich_text\",\"elements\":[{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"}]}}]"
|
98
89
|
|
90
|
+
# 디바이스 정보
|
99
91
|
device_payload =
|
100
92
|
"[{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"#{model}\"}]}, " +
|
101
|
-
"{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"OS: #{version} / Locale: #{locale} / Orientation: #{orientation}\"}]}, "
|
102
|
-
|
103
|
-
|
93
|
+
"{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"OS: #{version} / Locale: #{locale} / Orientation: #{orientation}\"}]}, "
|
94
|
+
|
95
|
+
# 성공 여부
|
96
|
+
if outcome == 'passed'
|
97
|
+
device_payload +=
|
98
|
+
"{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"},{\"type\":\"rt_text\",\"content\":\" Passed \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"}]}"
|
99
|
+
elsif outcome == 'failed'
|
100
|
+
device_payload +=
|
101
|
+
"{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":interrobang:\"},{\"type\":\"rt_text\",\"content\":\" Failed \"},{\"type":"\:interrobang:\"}]}"
|
102
|
+
else # Skip or other outcomes
|
103
|
+
device_payload +=
|
104
|
+
"{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":bulb:\"},{\"type\":\"rt_text\",\"content\":\" Failed \"},{\"type":"\:bulb:\"}]}"
|
105
|
+
end
|
106
|
+
|
107
|
+
device_payload += "]"
|
104
108
|
|
105
109
|
end.join(',')
|
106
110
|
|