fastlane-plugin-android_testlab_script_swit 0.1.59 → 0.1.60
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: 433ae917a1d77fd508b76854302277fc1b5c7a7eb695e4f514c56da61d5a78ed
|
|
4
|
+
data.tar.gz: 8eb294131557ff2f01c5cf8d47a6c4b2b03301841cc9f50aea40c1152270e0e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7141618559c47af3b089ab46181a19f420e29a1824a9fb22ccd7f625a99be57fea7815a44079888d983ad30332da7315e9c250a3fd448dbc0e2bf43d399569de
|
|
7
|
+
data.tar.gz: '084d6edaabc6c2d7e879fde41bd63dddaa83716a82746ce0f9184e15c9d6fbdef2f6113e724584d4a5f6afed47c3508091977cfba49dd9b0e76dae2369fe1ad2'
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
|
@@ -43,6 +43,9 @@ module Fastlane
|
|
|
43
43
|
json = JSON.parse(File.read(params[:console_log_file_name]))
|
|
44
44
|
UI.message("Test status: #{json}")
|
|
45
45
|
|
|
46
|
+
#
|
|
47
|
+
payload_string = params[:swit_webhook_payload]
|
|
48
|
+
|
|
46
49
|
# 각 JSON 객체에 대해 반복
|
|
47
50
|
json.each do |item|
|
|
48
51
|
# 정보 추출하기
|
|
@@ -59,6 +62,18 @@ module Fastlane
|
|
|
59
62
|
parts.each_with_index do |part, index|
|
|
60
63
|
UI.message("Part #{index + 1}: #{part}")
|
|
61
64
|
end
|
|
65
|
+
|
|
66
|
+
params[:devices].each_with_index do |device, index|
|
|
67
|
+
payload_string += %Q{
|
|
68
|
+
{"type":"rt_section","indent":1,"elements":[{"type":"rt_text","content":"Device#{index + 1}"}]},
|
|
69
|
+
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"model : #{device[:model]}"}]},
|
|
70
|
+
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"OS Version : #{device[:version]}"}]},
|
|
71
|
+
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"locale : #{device[:locale]}"}}},
|
|
72
|
+
{"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
|
|
73
|
+
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
|
|
74
|
+
}
|
|
75
|
+
end
|
|
76
|
+
|
|
62
77
|
end
|
|
63
78
|
|
|
64
79
|
|