fastlane-plugin-android_testlab_script_swit 0.1.90 → 0.1.902

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: 82712f087c69dac8512098d15ba7d160b5ecc26b17fc34b99c010df78d240d9e
4
+ data.tar.gz: 977921657a61d11746d5252b84122792111eaab122a9b67a767d27091148e53f
5
5
  SHA512:
6
- metadata.gz: ba546f3c0bdb4a35ee019bf169158f4e066f30bfedbb1f9dd63a6072c306b3de8ea138b957eb1e5226e7c7b3a757aa159cf53c3fa18956b874948469699ab389
7
- data.tar.gz: 64b0385cbd1182da0539ec72adc73e848544c19f68108696eda918d8f9d96b4112cc814305ca88effc9a0e51e9569fb7c7ad3750f662634304bf0d09359363c0
6
+ metadata.gz: 0165a44eb45c86af49f43fb607b545ce97123e120f1708ab8d4de0ca7cc3d0703318a160ab412db1a95fe8d5abef40f5efd0b20578e3c1c7fb220a902695d084
7
+ data.tar.gz: 4f471a77ca2564591794f37f9f255598c27b85e6558f58f09d12069302d95efac4f46ed0e850119b4db0dba443fd46a16af71a48367b9a0e86cd5c3715ad6bf7
@@ -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":" "result", "outcome": "#{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.902"
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.902
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이