fastlane-plugin-android_testlab_script_swit 0.1.90 → 0.1.902
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: 82712f087c69dac8512098d15ba7d160b5ecc26b17fc34b99c010df78d240d9e
|
4
|
+
data.tar.gz: 977921657a61d11746d5252b84122792111eaab122a9b67a767d27091148e53f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0165a44eb45c86af49f43fb607b545ce97123e120f1708ab8d4de0ca7cc3d0703318a160ab412db1a95fe8d5abef40f5efd0b20578e3c1c7fb220a902695d084
|
7
|
+
data.tar.gz: 4f471a77ca2564591794f37f9f255598c27b85e6558f58f09d12069302d95efac4f46ed0e850119b4db0dba443fd46a16af71a48367b9a0e86cd5c3715ad6bf7
|
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":" "result", "outcome": "#{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
|