fastlane-plugin-android_testlab_script_swit 0.1.928 → 0.1.930

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: 928674a569cc7c119534982c35ce37eb83063b1caa6f649799e459abf0eeaca0
4
- data.tar.gz: 62d89a0671967cc08da2a3030853c3063bf3af5872512fde3a7efa5531608c09
3
+ metadata.gz: d661d78b60ccc70f614d21df9c36ae52dcf6bf78d2ab0d3fc958e9139663499d
4
+ data.tar.gz: 87dc78443a17651dfbf42e297349dfc9e68364a2187be4ec7102422062526021
5
5
  SHA512:
6
- metadata.gz: 0c9cb8c274bd4721bf913f72575067d27e4cdb35b62aa14effec0251e82f1d1d555ebdd6c54d08bffab66e972247f8124073de0607f758dc0715bfc0cb3136a0
7
- data.tar.gz: 51cdea554d53b161d895fb562167ce700230eea9cb4e9e678f6b9c94ee3faeef7279dc9f5e0fdbddcf97d6fdeb01e10626a63db6ed53bf9d3e509db0fa65cf20
6
+ metadata.gz: df5fff2dfc74c7554ffb3caf42af9dca220f9a6a003e955907b488bf60e8dfc15f9493ed0f6cc85d46de0dd6c158d37d5d6968bd58bcc7653c3e9c30474c08b6
7
+ data.tar.gz: 98c3be3a9d12a442ff9aeb43014784a75b9c36d2813205ff3d35733b752770bab91cc760112a08e2f7b1c59b1e301b77cd1e874d5d256fb421d704e66cf244c6
@@ -73,7 +73,7 @@ module Fastlane
73
73
 
74
74
  # Swit Send PayLoad - 테스트 시간 추가
75
75
  swit_webhook_payload = params[:swit_webhook_payload][0..-5] + ','
76
- swit_webhook_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"테스트 시간 : #{duration}\",\"styles\":{\"bold\":true}}]},"
76
+ swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"테스트 시간 : \"},{\"type\":\"rt_text\",\"content\":\"#{duration}\",\"styles\":{\"bold\":true}}]},"
77
77
 
78
78
  # Firebase Test Lab Result Json
79
79
  resultJson = JSON.parse(File.read(params[:console_log_file_name]))
@@ -86,21 +86,25 @@ module Fastlane
86
86
  version = axis_value_parts[1]
87
87
  locale = axis_value_parts[2]
88
88
  orientation = axis_value_parts[3]
89
-
90
- parts_payload = axis_value_parts.map do |part|
91
- "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
92
- end.join(',')
93
-
94
- # device_payload =
95
- # "[{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"#{model}\"}]}, " +
96
- # "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"OS: #{version} / Locale: #{locale} / Orientation: #{orientation}\"}]}, " +
97
- # "{\"type\":\"rich_text\",\"elements\":[{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"}]}}]"
98
89
 
90
+ # 디바이스 정보
99
91
  device_payload =
100
92
  "[{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"#{model}\"}]}, " +
101
- "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"OS: #{version} / Locale: #{locale} / Orientation: #{orientation}\"}]}, " +
102
- "{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"}]}]"
103
-
93
+ "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"OS: #{version} / Locale: #{locale} / Orientation: #{orientation}\"}]}, "
94
+
95
+ # 성공 여부
96
+ if outcome == 'passed'
97
+ device_payload +=
98
+ "{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"},{\"type\":\"rt_text\",\"content\":\" Passed \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"}]}"
99
+ elsif outcome == 'failed'
100
+ device_payload +=
101
+ "{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":interrobang:\"},{\"type\":\"rt_text\",\"content\":\" Failed \"},{\"type\":\":interrobang:\"}]}"
102
+ else # Skip or other outcomes
103
+ device_payload +=
104
+ "{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":bulb:\"},{\"type\":\"rt_text\",\"content\":\" Failed \"},{\"type\":\:bulb:\"}]}"
105
+ end
106
+
107
+ device_payload += "]"
104
108
 
105
109
  end.join(',')
106
110
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.928"
3
+ VERSION = "0.1.930"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-android_testlab_script_swit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.928
4
+ version: 0.1.930
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이