fastlane-plugin-android_testlab_script_swit 0.1.923 → 0.1.924

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: 98e670368c1eba76edbce6e281af9227d19ccdb1a386e32be94b88c526649661
4
- data.tar.gz: 21682973e8c24b7f427c51fcda5059393c83549731fd37dadc335e785c11d372
3
+ metadata.gz: 87ecac21fa5112b7050a926fb270c163957891f415798d9e622104cbd0469d36
4
+ data.tar.gz: a6ea48bee91c09d00545f9c2ea3ee8b2bc68826c330ea0a0b6b2566c9d9d6f97
5
5
  SHA512:
6
- metadata.gz: 4826467698d0db269599453c257979b2b7c0fa1bbb6c6b3abc4ce5c40420616779f5e7cacba8a77aef120aa487c2af419f8f809e21f0434083f59398500ac6d4
7
- data.tar.gz: b78fec0efc3c1a4b31045e50d93968427867cf6ec1a852bb062064dfe99ddfd578ef051699d0a499007586331e44ae68c603a6a493c0128427c6225aff255b31
6
+ metadata.gz: 6612b2355aa6650c3b4a55096462fac2c6d0f55c99e97b65ffded6c9dd05654495e63d5b337ca835359cb4e4105b4ac65376edbd9c36c3a7b9bdb15450f7a04a
7
+ data.tar.gz: 303c49cac3747f52591fe67606d9888a4e03359aeef8f5273cf6e31903be78ca2a38c58da18d7e451712cbd73e50265efe8c697469624d76a8bdd56833c0e1cd
@@ -15,7 +15,7 @@ module Fastlane
15
15
  duration_sec_total = (end_time - start_time).round(1)
16
16
  duration_min = (duration_sec_total / 60).round(1)
17
17
  duration_sec = duration_sec_total % 60
18
- return "#{duration_min}분 소요시간 자동화"
18
+ return "#{duration_min}분 테스트"
19
19
  end
20
20
 
21
21
  # actions run
@@ -24,6 +24,7 @@ module Fastlane
24
24
  UI.message("Start Action")
25
25
  UI.message("********************************")
26
26
 
27
+ # TestLab 작업 및 작업 소요시간 측정
27
28
  duration = measure_time do
28
29
 
29
30
  # Result Bucket & Dir
@@ -72,7 +73,7 @@ module Fastlane
72
73
 
73
74
  # Swit Send PayLoad - 테스트 시간 추가
74
75
  swit_webhook_payload = params[:swit_webhook_payload][0..-5] + ','
75
- swit_webhook_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"테스트 시간 : #{duration}\"}]},"
76
+ swit_webhook_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"테스트 시간 : #{duration}\",\"styles\":{\"bold\":true}}]},"
76
77
 
77
78
  # Firebase Test Lab Result Json
78
79
  resultJson = JSON.parse(File.read(params[:console_log_file_name]))
@@ -81,26 +82,23 @@ module Fastlane
81
82
  axis_value_parts = item["axis_value"].split('-')
82
83
  outcome = item["outcome"]
83
84
 
84
- model = axis_value_parts[0]
85
- version = axis_value_parts[1]
86
- locale = axis_value_parts[2]
87
- orientation = axis_value_parts[3]
85
+ model = axis_value_parts[0]
86
+ version = axis_value_parts[1]
87
+ locale = axis_value_parts[2]
88
+ orientation = axis_value_parts[3]
88
89
 
89
90
  parts_payload = axis_value_parts.map do |part|
90
91
  "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
91
92
  end.join(',')
92
93
 
93
- device_payload = "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"model: #{model}\"},{\"type\":\"rt_text\", \"content\": \"version: #{version}\"},{\"type\":\"rt_text\", \"content\": \"locale: #{locale}\"},{\"type\":\"rt_text\", \"content\": \"orientation: #{orientation}\"},{\"type\":\"rt_text\", \"content\": \"Outcome: #{outcome}\"}]}"
94
-
94
+ device_payload = "[{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"#{model}\"}]},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"OS: #{version} / Locale: #{locale} / Orientation: #{orientation}\"},{\"type\":\"rich_text\",\"elements\":[{\"type\":\"rt_section\",\"elements\":[{\"type\":\"rt_text\",\"content\":\"결과 : \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"},{\"type\":\"rt_text\",\"content\":\" #{outcome} \"},{\"type\":\"rt_emoji\",\"name\":\":tada:\"}]}]}]}"
95
+
95
96
  end.join(',')
96
97
 
97
98
  swit_device_payload.chomp!(',')
98
99
 
99
100
  # Swit PayLoad 병합
100
101
  swit_webhook_payload += swit_device_payload + ']}]}'
101
-
102
- # 마지막 체크
103
- UI.message(swit_webhook_payload)
104
102
 
105
103
  # Swit WebHook
106
104
  HTTParty.post(params[:swit_webhook_url], body: { body_text: swit_webhook_payload }.to_json, headers: { 'Content-Type' => 'application/json' })
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.923"
3
+ VERSION = "0.1.924"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.923
4
+ version: 0.1.924
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-28 00:00:00.000000000 Z
11
+ date: 2023-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler