fastlane-plugin-android_testlab_script_swit 0.1.914 → 0.1.915
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: 3bbbcfb99af6fca66373690a1e9dd4a9f917a18b38ac267c3a44495bfafc53d3
|
4
|
+
data.tar.gz: 7e66e6d341a29612dc8c27618eedce46bf4b35e8c2f88c708c5b6ab261bf18b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e520824c98f01c0932f815a3ce944f1d6f2f6cc511c5be85b4fcb28f6db582c2b4508233f82fa4e9a758681d37e3ecc053db9cbec9fae6f27884b8bdb0c667
|
7
|
+
data.tar.gz: 3a0af5d053f62b651a52e6e73e855c6cc37adbd700364f867a5f2fde165e2c6004c482279b462fcf03a67f7f5f2c178ff74bcc54e5464372bb3628ff9ca229fe
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -50,25 +50,6 @@ module Fastlane
|
|
50
50
|
# Firebase Test Lab Result Json
|
51
51
|
resultJson = JSON.parse(File.read(params[:console_log_file_name]))
|
52
52
|
|
53
|
-
# 각 JSON 객체에 대해 반복
|
54
|
-
# resultJson.each do |item|
|
55
|
-
# # 정보 추출하기
|
56
|
-
# axis_value = item["axis_value"]
|
57
|
-
# outcome = item["outcome"]
|
58
|
-
# test_details = item["test_details"]
|
59
|
-
#
|
60
|
-
# # 'axis_value' 분리하기
|
61
|
-
# parts = axis_value.split('-')
|
62
|
-
#
|
63
|
-
# parts.each_with_index do |part, index|
|
64
|
-
# swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
|
65
|
-
# {\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{parts[index]}\"}]},
|
66
|
-
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : #{outcome}\"}]}"
|
67
|
-
#
|
68
|
-
# swit_device_payload += "," unless index == parts.length - 1
|
69
|
-
# end
|
70
|
-
# end
|
71
|
-
|
72
53
|
resultJson.each_with_index do |item, device_index|
|
73
54
|
# 정보 추출하기
|
74
55
|
axis_value = item["axis_value"]
|
@@ -81,23 +62,41 @@ module Fastlane
|
|
81
62
|
swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},"
|
82
63
|
|
83
64
|
parts.each_with_index do |part, part_index|
|
84
|
-
swit_device_payload += "{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{
|
65
|
+
swit_device_payload += "{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]},"
|
85
66
|
|
86
67
|
if part_index == (parts.length -1)
|
87
|
-
swit_device_payload += "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content
|
68
|
+
swit_device_payload += "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : #{outcome}\"}]}"
|
69
|
+
swit_device_payload += "," unless device_index == (resultJson.length -1)
|
88
70
|
end
|
89
71
|
end
|
90
|
-
|
91
|
-
swit_device_payload += "," unless device_index == (resultJson.length - 1) && part_index == (parts.length - 1)
|
92
72
|
end
|
93
73
|
|
94
74
|
# remove the last comma if it exists
|
95
75
|
swit_device_payload.chomp!(',')
|
96
76
|
|
97
77
|
|
78
|
+
# 각 JSON 객체에 대해 반복
|
79
|
+
# resultJson.each do |item|
|
80
|
+
# # 정보 추출하기
|
81
|
+
# axis_value = item["axis_value"]
|
82
|
+
# outcome = item["outcome"]
|
83
|
+
# test_details = item["test_details"]
|
84
|
+
#
|
85
|
+
# # 'axis_value' 분리하기
|
86
|
+
# parts = axis_value.split('-')
|
87
|
+
#
|
88
|
+
# parts.each_with_index do |part, index|
|
89
|
+
# swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
|
90
|
+
# {\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{parts[index]}\"}]},
|
91
|
+
# {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : #{outcome}\"}]}"
|
92
|
+
#
|
93
|
+
# swit_device_payload += "," unless index == parts.length - 1
|
94
|
+
# end
|
95
|
+
# end
|
96
|
+
|
97
|
+
|
98
98
|
|
99
|
-
|
100
|
-
|
99
|
+
|
101
100
|
|
102
101
|
# 중간 체크
|
103
102
|
UI.message(swit_device_payload)
|