fastlane-plugin-android_testlab_script_swit 0.1.904 → 0.1.906
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: 96dab9ced59454726f9aef469e2d6e65f8792ee04570c176860967c98bb20a54
|
4
|
+
data.tar.gz: 3bf15cf5d3d9dc69400239430cf46c37edbfbd21506030bb77ab70174ec8d3e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa7679a0f5db39003d65921c58dcd007400e00bb76ac3836266f1e635aa19875c50827b9d74de73b3f5dc51e7a005259304d0b9e1eea071d7857f164cdd4ae20
|
7
|
+
data.tar.gz: aec5975ea9cbbea101c1015f22dc351984809c455cd61b32a7b7bd484de20a168484e2089f049ef47392cecd02820fa06fdb0bce4450f91b295db46567f9700e
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -51,9 +51,6 @@ module Fastlane
|
|
51
51
|
|
52
52
|
# Firebase Test Lab Result Json
|
53
53
|
resultJson = JSON.parse(File.read(params[:console_log_file_name]))
|
54
|
-
|
55
|
-
# 결과 데이터 저장용 배열 생성
|
56
|
-
results = []
|
57
54
|
|
58
55
|
# 각 JSON 객체에 대해 반복
|
59
56
|
resultJson.each do |item|
|
@@ -64,26 +61,29 @@ module Fastlane
|
|
64
61
|
|
65
62
|
# 'axis_value' 분리하기
|
66
63
|
parts = axis_value.split('-')
|
64
|
+
|
65
|
+
parts.each_with_index do |part, index|
|
66
|
+
swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
|
67
|
+
{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{parts[index]}\"}]},
|
68
|
+
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Result : #{outcome}\"}]}"
|
67
69
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
# 결과 데이터 저장
|
72
|
-
results << { parts: parts, outcome: outcome }
|
70
|
+
swit_device_payload += "," unless index == parts.length - 1
|
71
|
+
end
|
72
|
+
|
73
73
|
end
|
74
74
|
|
75
|
-
results.each do |result|
|
76
|
-
result[:parts].each_with_index do |part, index|
|
77
|
-
swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
|
78
|
-
{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"model : #{
|
79
|
-
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"OS Version : #{part[:version]}\"}]},
|
80
|
-
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{part[:locale]}\"}]},
|
81
|
-
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"orientation : #{part[:orientation]}\"}]},
|
82
|
-
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Result : #{result[:outcome]}\"}]}"
|
83
|
-
|
84
|
-
swit_device_payload += "," unless index == result[:parts].length - 1
|
85
|
-
end
|
86
|
-
end
|
75
|
+
# results.each do |result|
|
76
|
+
# result[:parts].each_with_index do |part, index|
|
77
|
+
# swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
|
78
|
+
# {\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"model : #{part[:model]}\"}]},
|
79
|
+
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"OS Version : #{part[:version]}\"}]},
|
80
|
+
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{part[:locale]}\"}]},
|
81
|
+
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"orientation : #{part[:orientation]}\"}]},
|
82
|
+
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Result : #{result[:outcome]}\"}]}"
|
83
|
+
#
|
84
|
+
# swit_device_payload += "," unless index == result[:parts].length - 1
|
85
|
+
# end
|
86
|
+
# end
|
87
87
|
|
88
88
|
# 결과좀 봅시다.
|
89
89
|
UI.message(new_payload)
|