fastlane-plugin-android_testlab_script_swit 0.1.916 → 0.1.917
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: 89b7b3b9a757a277099df6757bd42ece2503955a9ec758eee84958e0ccbb6b34
|
|
4
|
+
data.tar.gz: cc93a06dd35e0a13d4b186f09ff19cf631391f94699256ebb584b2a509d930d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c51e037474c6377ac1a0080e0c8b62e5efb75424fd3a81743567573e1e84f8515f52c0dc8ea1571576c32f5cea2272266b3613d3160b06411dcd0eb323da54ca
|
|
7
|
+
data.tar.gz: f608d4c3df7e20a48e27c0bcfcfb39b2d82cb62f55c5e3bda831d833408d03c0eb7aa3128c91ab2c055abb77683eb2df223adeb3255ff7ebfba32b1242bb83b0
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
|
@@ -50,35 +50,21 @@ module Fastlane
|
|
|
50
50
|
# Firebase Test Lab Result Json
|
|
51
51
|
resultJson = JSON.parse(File.read(params[:console_log_file_name]))
|
|
52
52
|
|
|
53
|
-
resultJson.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
parts.each_with_index do |part, part_index|
|
|
65
|
-
swit_device_payload += "{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
|
|
66
|
-
|
|
67
|
-
if part_index == (parts.length -1)
|
|
68
|
-
safe_outcome = outcome.to_json
|
|
69
|
-
swit_device_payload += ",{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\": #{safe_outcome}}]}"
|
|
70
|
-
else
|
|
71
|
-
swit_device_payload += ","
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
swit_device_payload += "," unless device_index == (resultJson.length -1)
|
|
76
|
-
end
|
|
53
|
+
swit_device_payload = resultJson.map.with_index do |item, device_index|
|
|
54
|
+
axis_value_parts = item["axis_value"].split('-')
|
|
55
|
+
outcome = item["outcome"]
|
|
56
|
+
|
|
57
|
+
parts_payload = axis_value_parts.map do |part|
|
|
58
|
+
"{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
|
|
59
|
+
end.join(',')
|
|
60
|
+
|
|
61
|
+
device_payload = "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},#{parts_payload},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\": #{outcome.to_json}}]}"
|
|
62
|
+
end.join(',')
|
|
77
63
|
|
|
78
|
-
# remove the last comma if it exists
|
|
79
64
|
swit_device_payload.chomp!(',')
|
|
80
65
|
|
|
81
66
|
|
|
67
|
+
|
|
82
68
|
|
|
83
69
|
# 각 JSON 객체에 대해 반복
|
|
84
70
|
# resultJson.each do |item|
|