fastlane-plugin-android_testlab_script_swit 0.1.90 → 0.1.901
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: 9df5077c3ed88a2e24742ccf721a792a30aaa518a55e8a75ce83bcb772472faa
|
4
|
+
data.tar.gz: f8a9cc8f6578206bb345b59f9588b648e70aab5d938629ba3f8bf081a16680e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e75382078a46efded4b897a55f587db722df98ff7aa213d8deb5859179e16f797d215b02bcd0f907b3b0f10d7feb28549e0cc8d123da97d9737e1cec2dfa2a70
|
7
|
+
data.tar.gz: 65d80a84ab251238aab9aa972b60847b0e91761f399a1a754a6c20dac500a001ac5fc79b00b4a3dd6ef1b9668ededd260963d613b17ff60605eba7e221b714a8
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -48,6 +48,9 @@ module Fastlane
|
|
48
48
|
# Firebase Test Lab Result Json
|
49
49
|
resultJson = JSON.parse(File.read(params[:console_log_file_name]))
|
50
50
|
|
51
|
+
# 결과 데이터 저장용 배열 생성
|
52
|
+
results = []
|
53
|
+
|
51
54
|
# 각 JSON 객체에 대해 반복
|
52
55
|
resultJson.each do |item|
|
53
56
|
# 정보 추출하기
|
@@ -61,31 +64,27 @@ module Fastlane
|
|
61
64
|
# 출력하기
|
62
65
|
UI.message("Outcome: #{outcome}, Test Details: #{test_details}")
|
63
66
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"OS Version : #{device[:version]}\"}]},
|
68
|
-
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{device[:locale]}\"}]},
|
69
|
-
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"orientation : #{device[:orientation]}\"}]},
|
70
|
-
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Result : #{outcome}\"}]}"
|
67
|
+
# 결과 데이터 저장
|
68
|
+
results << { parts: parts, outcome: outcome }
|
69
|
+
end
|
71
70
|
|
72
|
-
|
73
|
-
|
71
|
+
results.each do |result|
|
72
|
+
result[:parts].each_with_index do |part, index|
|
73
|
+
new_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
|
74
|
+
{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"model : #{part[:model]}\"}]},
|
75
|
+
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"OS Version : #{part[:version]}\"}]},
|
76
|
+
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{part[:locale]}\"}]},
|
77
|
+
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"orientation : #{part[:orientation]}\"}]},
|
78
|
+
{\"type\":{\"tada:\"},{\"name\":{\"tada:\"}}},
|
79
|
+
{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : " + result[:outcome] + "\"}]}"
|
80
|
+
|
81
|
+
new_payload += "," unless index == result[:parts].length -1
|
82
|
+
end
|
74
83
|
end
|
75
|
-
|
84
|
+
|
85
|
+
# 결과좀 봅시다.
|
76
86
|
UI.message(new_payload)
|
77
87
|
|
78
|
-
# params[:devices].each_with_index do |device, index|
|
79
|
-
# new_payload += "{\"type\": \"rt_section\", \"indent\": 1, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Device#{index + 1}\"}]},
|
80
|
-
# {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
|
81
|
-
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"OS Version : #{device[:version]}\"}]},
|
82
|
-
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{device[:locale]}\"}]},
|
83
|
-
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"orientation : #{device[:orientation]}\"}]},
|
84
|
-
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Result : #{outcome}\"}]}"
|
85
|
-
#
|
86
|
-
# new_payload += "," unless index == params[:devices].length - 1
|
87
|
-
# end
|
88
|
-
|
89
88
|
# Fetch results
|
90
89
|
download_dir = params[:download_dir]
|
91
90
|
if download_dir
|