fastlane-plugin-android_testlab_script_swit 0.1.922 → 0.1.923
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: 98e670368c1eba76edbce6e281af9227d19ccdb1a386e32be94b88c526649661
|
4
|
+
data.tar.gz: 21682973e8c24b7f427c51fcda5059393c83549731fd37dadc335e785c11d372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4826467698d0db269599453c257979b2b7c0fa1bbb6c6b3abc4ce5c40420616779f5e7cacba8a77aef120aa487c2af419f8f809e21f0434083f59398500ac6d4
|
7
|
+
data.tar.gz: b78fec0efc3c1a4b31045e50d93968427867cf6ec1a852bb062064dfe99ddfd578ef051699d0a499007586331e44ae68c603a6a493c0128427c6225aff255b31
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -69,28 +69,29 @@ module Fastlane
|
|
69
69
|
|
70
70
|
# Swit Result PayLoad
|
71
71
|
swit_device_payload = ""
|
72
|
-
|
72
|
+
|
73
73
|
# Swit Send PayLoad - 테스트 시간 추가
|
74
74
|
swit_webhook_payload = params[:swit_webhook_payload][0..-5] + ','
|
75
75
|
swit_webhook_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"테스트 시간 : #{duration}\"}]},"
|
76
|
-
|
76
|
+
|
77
77
|
# Firebase Test Lab Result Json
|
78
78
|
resultJson = JSON.parse(File.read(params[:console_log_file_name]))
|
79
79
|
|
80
80
|
swit_device_payload = resultJson.map.with_index do |item, device_index|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
81
|
+
axis_value_parts = item["axis_value"].split('-')
|
82
|
+
outcome = item["outcome"]
|
83
|
+
|
84
|
+
model = axis_value_parts[0]
|
85
|
+
version = axis_value_parts[1]
|
86
|
+
locale = axis_value_parts[2]
|
87
|
+
orientation = axis_value_parts[3]
|
88
|
+
|
89
|
+
parts_payload = axis_value_parts.map do |part|
|
90
|
+
"{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
|
91
|
+
end.join(',')
|
92
|
+
|
93
|
+
device_payload = "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"model: #{model}\"},{\"type\":\"rt_text\", \"content\": \"version: #{version}\"},{\"type\":\"rt_text\", \"content\": \"locale: #{locale}\"},{\"type\":\"rt_text\", \"content\": \"orientation: #{orientation}\"},{\"type\":\"rt_text\", \"content\": \"Outcome: #{outcome}\"}]}"
|
92
94
|
|
93
|
-
device_payload = "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"model: #{model}\"},{\"type\":\"rt_text\", \"content\": \"version: #{version}\"},{\"type\":\"rt_text\", \"content\": \"locale: #{locale}\"},{\"type":" rt_text\", \"content": \"orientation: #{orientation}\", {\"type":" rt_text", " content": "Outcome: \\\"#{outcome}\\\"" }]}"
|
94
95
|
end.join(',')
|
95
96
|
|
96
97
|
swit_device_payload.chomp!(',')
|