fastlane-plugin-android_testlab_script_swit 0.1.63 → 0.1.65
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: 1fc0eb92a8a4e555766bd5e6f12f0a43fbd27b46717be754ef8f864858a603bc
|
4
|
+
data.tar.gz: a36d33568e3d50a4f7d224ec26f5456107a75a8fb36b65b4e1dff7a2a537b1fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ed0a90aebf88805010c2280bef4d02e42ba1265c478002ece4be2297e9efe5020495de5d58a7682bf03e865caf732edff5801cc91ec09b5b687ff8209cef29a
|
7
|
+
data.tar.gz: 3ced2b081eb3440187d3affe0204452cbc854ac1715d47e5958fddd3ca3de8ec68e933e4fadc162d7873c2102dd45900544ce356cbb11b82c7431fb4e532eabb
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -44,7 +44,7 @@ module Fastlane
|
|
44
44
|
UI.message("Test status: #{json}")
|
45
45
|
|
46
46
|
#
|
47
|
-
|
47
|
+
payload_string = params[:swit_webhook_payload]
|
48
48
|
|
49
49
|
# 각 JSON 객체에 대해 반복
|
50
50
|
json.each do |item|
|
@@ -61,19 +61,18 @@ module Fastlane
|
|
61
61
|
|
62
62
|
parts.each_with_index do |part, index|
|
63
63
|
UI.message("Part #{index + 1}: #{part}")
|
64
|
-
|
65
|
-
params[:devices].each_with_index do |device, index|
|
66
|
-
payload_string = {
|
67
|
-
{"type":"rt_section","indent":1,"elements":[{"type":"rt_text","content":"Device#{index + 1}"}]},
|
68
|
-
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"model : #{device[:model]}"}]},
|
69
|
-
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"OS Version : #{device[:version]}"}]},
|
70
|
-
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"locale : #{device[:locale]}"}}},
|
71
|
-
{"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
|
72
|
-
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
|
73
|
-
}
|
74
|
-
end
|
75
64
|
end
|
76
|
-
|
65
|
+
end
|
66
|
+
|
67
|
+
params[:devices].each_with_index do |device, index|
|
68
|
+
payload_string = {
|
69
|
+
{"type":"rt_section","indent":1,"elements":[{"type":"rt_text","content":"Device#{index + 1}"}]},
|
70
|
+
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"model : #{device[:model]}"}]},
|
71
|
+
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"OS Version : #{device[:version]}"}]},
|
72
|
+
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"locale : #{device[:locale]}"}}},
|
73
|
+
{"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
|
74
|
+
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
|
75
|
+
}
|
77
76
|
end
|
78
77
|
|
79
78
|
|
@@ -91,7 +90,7 @@ module Fastlane
|
|
91
90
|
|
92
91
|
|
93
92
|
# Swit Message
|
94
|
-
HTTParty.post(params[:swit_webhook_url], body:
|
93
|
+
HTTParty.post(params[:swit_webhook_url], body: payload_string.to_json, headers: { 'Content-Type' => 'application/json' })
|
95
94
|
|
96
95
|
UI.message("Finish Action")
|
97
96
|
end
|
@@ -297,19 +296,6 @@ module Fastlane
|
|
297
296
|
[['console_output.log', 'A console log when running Firebase Test Lab with gcloud']]
|
298
297
|
end
|
299
298
|
|
300
|
-
#
|
301
|
-
def wait_for_test_to_complete(url)
|
302
|
-
loop do
|
303
|
-
html = open(url).read
|
304
|
-
|
305
|
-
if html.include?("TestLab is complete")
|
306
|
-
break
|
307
|
-
else
|
308
|
-
sleep(10) # wait for 10 seconds before checking again
|
309
|
-
end
|
310
|
-
end
|
311
|
-
end
|
312
|
-
|
313
299
|
def self.example_code
|
314
300
|
|
315
301
|
end
|