Method: AppleMonitor#find_mac

Defined in:
lib/test_case/monitoring/apple_monitor.rb

#find_macObject



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/test_case/monitoring/apple_monitor.rb', line 86

def find_mac
  url = take_screenshot
  # if result.length > 0

  #   return {result: result, url: url}

  # end

  apple_model_roi = roi_resolution(apple_model, dut.height, dut.width)
  apple_sn_roi = roi_resolution(apple_sn, dut.height, dut.width)
  ip_add_roi = roi_resolution(ip_add, dut.height, dut.width)
  mac_add_roi = roi_resolution(mac_add, dut.height, dut.width)
  @health_hash[:sn] = apple_sn_roi.retrieve.gsub(',', '').strip,
  @health_hash[:model] = apple_model_roi.retrieve
  @health_hash[:ip] = ip_add_roi.retrieve
  @health_hash[:mac] = mac_add_roi.retrieve.upcase.gsub(':', '').gsub(' ', '')
  @health_hash[:url] = url
  

  @health_hash
end