fastlane-plugin-android_testlab_script_swit 0.1.75 → 0.1.77
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: 31f2720d5a8e271527f36d63b7b539f6bbcf49bc18274ff301e2834d0b914439
|
4
|
+
data.tar.gz: 57f8d948ffda0714534c53ec5b82a3de8f08715026bd01a74a4c37717e0f3dd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e041d0a69b92f1c12ed454d7d0ace6be710d586c0527a015ce37212062bd9441f8d46d6546cb132e55878471425174337c691183483ea6f2a1922a1ed191cb9d
|
7
|
+
data.tar.gz: b17bb5231f3484e448ef8cfa4d31385fa533a83f76bfefd5869bac771bcddaa5246a26067d2743ba58c6dd398d75966eadd62954150e367535f1b448ada15661
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -45,22 +45,22 @@ module Fastlane
|
|
45
45
|
|
46
46
|
|
47
47
|
# 각 JSON 객체에 대해 반복
|
48
|
-
json.each do |item|
|
49
|
-
# 정보 추출하기
|
50
|
-
axis_value = item["axis_value"]
|
51
|
-
outcome = item["outcome"]
|
52
|
-
test_details = item["test_details"]
|
53
|
-
|
54
|
-
# 'axis_value' 분리하기
|
55
|
-
parts = axis_value.split('-')
|
56
|
-
|
57
|
-
# 출력하기
|
58
|
-
UI.message("Outcome: #{outcome}, Test Details: #{test_details}")
|
59
|
-
|
60
|
-
parts.each_with_index do |part, index|
|
61
|
-
UI.message("Part #{index + 1}: #{part}")
|
62
|
-
end
|
63
|
-
end
|
48
|
+
# json.each do |item|
|
49
|
+
# # 정보 추출하기
|
50
|
+
# axis_value = item["axis_value"]
|
51
|
+
# outcome = item["outcome"]
|
52
|
+
# test_details = item["test_details"]
|
53
|
+
#
|
54
|
+
# # 'axis_value' 분리하기
|
55
|
+
# parts = axis_value.split('-')
|
56
|
+
#
|
57
|
+
# # 출력하기
|
58
|
+
# UI.message("Outcome: #{outcome}, Test Details: #{test_details}")
|
59
|
+
#
|
60
|
+
# parts.each_with_index do |part, index|
|
61
|
+
# UI.message("Part #{index + 1}: #{part}")
|
62
|
+
# end
|
63
|
+
# end
|
64
64
|
|
65
65
|
# params[:devices].each_with_index do |device, index|
|
66
66
|
# payload_string = +{,
|
@@ -71,6 +71,15 @@ module Fastlane
|
|
71
71
|
# {"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
|
72
72
|
# {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
|
73
73
|
# }
|
74
|
+
# end
|
75
|
+
|
76
|
+
# params[:devices].each_with_index do |device, index|
|
77
|
+
# new_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 : #{device[:model]}\"}]},
|
79
|
+
# {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"OS Version : #{device[:version]}\"}]},
|
80
|
+
# {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"locale : #{device[:locale]}\"}]},
|
81
|
+
# {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"orientation : #{device[:orientation]}\"}]},
|
82
|
+
# {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Result : #{outcome}\"}]}]"
|
74
83
|
# end
|
75
84
|
|
76
85
|
params[:devices].each_with_index do |device, index|
|
@@ -78,8 +87,7 @@ module Fastlane
|
|
78
87
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
|
79
88
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"OS Version : #{device[:version]}\"}]},
|
80
89
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"locale : #{device[:locale]}\"}]},
|
81
|
-
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"orientation : #{device[:orientation]}\"}]}
|
82
|
-
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Result : #{outcome}\"}]}]"
|
90
|
+
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"orientation : #{device[:orientation]}\"}]}"
|
83
91
|
end
|
84
92
|
|
85
93
|
# Fetch results
|