fastlane-plugin-android_testlab_script_swit 0.1.928 → 0.1.929

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: 928674a569cc7c119534982c35ce37eb83063b1caa6f649799e459abf0eeaca0
4
- data.tar.gz: 62d89a0671967cc08da2a3030853c3063bf3af5872512fde3a7efa5531608c09
3
+ metadata.gz: acbb17c99a6df326344bb76a346872f53075f47a46596e9c8eca50b9efe50d9c
4
+ data.tar.gz: 0f099ad12baf1233686a79f9316fe3367b84c3b915f5690492902a90b8969627
5
5
  SHA512:
6
- metadata.gz: 0c9cb8c274bd4721bf913f72575067d27e4cdb35b62aa14effec0251e82f1d1d555ebdd6c54d08bffab66e972247f8124073de0607f758dc0715bfc0cb3136a0
7
- data.tar.gz: 51cdea554d53b161d895fb562167ce700230eea9cb4e9e678f6b9c94ee3faeef7279dc9f5e0fdbddcf97d6fdeb01e10626a63db6ed53bf9d3e509db0fa65cf20
6
+ metadata.gz: e9388b11fb87d45ddf8cda935334606db85dde5fa53e12c7634a1814a04b5e88f5e3f79cc6aadcfe161ed741165e83d543b3b288de5b6c77f768b29ba6c00caa
7
+ data.tar.gz: '0807db883f1de7d1bf6ae35aeda302d56bc83d3ad07b0236f15c8deaa8a3dcc4fddba5e71ae47e31e8a212cc6403495312ee7e533ba243f6568231d7508773c2'
@@ -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.929"
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.929
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이