fastlane-plugin-android_testlab_script_swit 0.1.90 → 0.1.901

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: ffd38591b44817a97feff1ab5dd88b97ace94fd856325487429103004b9309eb
4
- data.tar.gz: 256583798b43f0a30e756d9cfd6acb3b473d03c7f6b9bc4b994a16e5250d0dcf
3
+ metadata.gz: 9df5077c3ed88a2e24742ccf721a792a30aaa518a55e8a75ce83bcb772472faa
4
+ data.tar.gz: f8a9cc8f6578206bb345b59f9588b648e70aab5d938629ba3f8bf081a16680e1
5
5
  SHA512:
6
- metadata.gz: ba546f3c0bdb4a35ee019bf169158f4e066f30bfedbb1f9dd63a6072c306b3de8ea138b957eb1e5226e7c7b3a757aa159cf53c3fa18956b874948469699ab389
7
- data.tar.gz: 64b0385cbd1182da0539ec72adc73e848544c19f68108696eda918d8f9d96b4112cc814305ca88effc9a0e51e9569fb7c7ad3750f662634304bf0d09359363c0
6
+ metadata.gz: e75382078a46efded4b897a55f587db722df98ff7aa213d8deb5859179e16f797d215b02bcd0f907b3b0f10d7feb28549e0cc8d123da97d9737e1cec2dfa2a70
7
+ data.tar.gz: 65d80a84ab251238aab9aa972b60847b0e91761f399a1a754a6c20dac500a001ac5fc79b00b4a3dd6ef1b9668ededd260963d613b17ff60605eba7e221b714a8
@@ -48,6 +48,9 @@ module Fastlane
48
48
  # Firebase Test Lab Result Json
49
49
  resultJson = JSON.parse(File.read(params[:console_log_file_name]))
50
50
 
51
+ # 결과 데이터 저장용 배열 생성
52
+ results = []
53
+
51
54
  # 각 JSON 객체에 대해 반복
52
55
  resultJson.each do |item|
53
56
  # 정보 추출하기
@@ -61,31 +64,27 @@ module Fastlane
61
64
  # 출력하기
62
65
  UI.message("Outcome: #{outcome}, Test Details: #{test_details}")
63
66
 
64
- params[:devices].each_with_index do |device, index|
65
- new_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
66
- {\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"model : #{device[:model]}\"}]},
67
- {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"OS Version : #{device[:version]}\"}]},
68
- {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{device[:locale]}\"}]},
69
- {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"orientation : #{device[:orientation]}\"}]},
70
- {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Result : #{outcome}\"}]}"
67
+ # 결과 데이터 저장
68
+ results << { parts: parts, outcome: outcome }
69
+ end
71
70
 
72
- new_payload += "," unless index == params[:devices].length - 1
73
- end
71
+ results.each do |result|
72
+ result[:parts].each_with_index do |part, index|
73
+ new_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
74
+ {\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"model : #{part[:model]}\"}]},
75
+ {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"OS Version : #{part[:version]}\"}]},
76
+ {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{part[:locale]}\"}]},
77
+ {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"orientation : #{part[:orientation]}\"}]},
78
+ {\"type\":{\"tada:\"},{\"name\":{\"tada:\"}}},
79
+ {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : " + result[:outcome] + "\"}]}"
80
+
81
+ new_payload += "," unless index == result[:parts].length -1
82
+ end
74
83
  end
75
-
84
+
85
+ # 결과좀 봅시다.
76
86
  UI.message(new_payload)
77
87
 
78
- # params[:devices].each_with_index do |device, index|
79
- # new_payload += "{\"type\": \"rt_section\", \"indent\": 1, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Device#{index + 1}\"}]},
80
- # {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
81
- # {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"OS Version : #{device[:version]}\"}]},
82
- # {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{device[:locale]}\"}]},
83
- # {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"orientation : #{device[:orientation]}\"}]},
84
- # {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Result : #{outcome}\"}]}"
85
- #
86
- # new_payload += "," unless index == params[:devices].length - 1
87
- # end
88
-
89
88
  # Fetch results
90
89
  download_dir = params[:download_dir]
91
90
  if download_dir
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.90"
3
+ VERSION = "0.1.901"
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.90
4
+ version: 0.1.901
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이