Class: MdnMonitor
- Inherits:
-
BaseMonitor
- Object
- BaseMonitor
- MdnMonitor
- Defined in:
- lib/test_case/monitoring/mdn_monitor.rb
Instance Attribute Summary
Attributes inherited from BaseMonitor
#health_hash, #host, #id, #identity, #iteration, #job, #logger, #ssh, #start_time, #status, #stop_time
Instance Method Summary collapse
-
#check_menu ⇒ Object
def check_health end.
- #find_mac ⇒ Object
- #mdn_menu ⇒ Object
Methods inherited from BaseMonitor
#black_screen_roi, #check_black_screen, #check_health, #check_live_video?, #check_platform, #check_power, #dut, #initialize, #no_input_roi, #report_parental_controls, #server_name
Methods included from TmcHelpers
#aws_config, #aws_create_s3_bucket, #aws_delete_s3, #aws_delete_s3_bucket, #aws_read_s3, #aws_upload_s3, #aws_write_s3, #get_clean_ocr_text, #get_readable_size, #get_readable_time, #get_string_similarity, #get_substring_similarity, #is_rating?, #is_year?, #jsonify, #pick_random, #rubify, #send_webex_alert, #to_camel_case, #to_pascal_case, #to_snake_case, #twb_case_exists?, #twb_get_case_instance_id, #twb_get_suite_instance_id, #twb_post_screenshot, #twb_post_screenshot!, #twb_post_suite, #twb_post_testcase, #twb_post_teststep, #twb_post_teststep!, #twb_prep_s3_screenshot, #twb_suite_exists?, #until_condition, #until_equals, #until_includes, #until_not_empty, #until_not_equals, #until_not_includes, #until_not_nil, #until_same, #web_delete, #web_get, #web_post, #web_put
Methods included from HttpHelper
Methods included from CsvHelper
Methods included from SshHelper
Methods included from EmailHelper
#send_email, #send_email_setup
Methods included from SnmpHelper
Methods included from ReportMonitor
#assign_email_params?, #assign_test_params, #confirm_platform, #generate_email_msg, #invalid_report, #log_hash, #send_legacy_err_hash, #set_err_result, #sword_send_results, #take_screenshot
Methods included from RoiHelper
Constructor Details
This class inherits a constructor from BaseMonitor
Instance Method Details
#check_menu ⇒ Object
def check_health end
15 16 17 18 |
# File 'lib/test_case/monitoring/mdn_monitor.rb', line 15 def set_err_report(@health_hash, 'Unable to nav to menu. Check platform or device health', 'M3') unless .press_key_until_displayed?('menu', presses: 5, timeout: 5000, try_every: 1000) dut.press_key('exit', sleep_time: 500) end |
#find_mac ⇒ Object
20 21 22 |
# File 'lib/test_case/monitoring/mdn_monitor.rb', line 20 def find_mac # Can't tell if we can even get the mac end |
#mdn_menu ⇒ Object
4 5 6 7 |
# File 'lib/test_case/monitoring/mdn_monitor.rb', line 4 def roi_resolution(dut.roi.text.new(:x => 342, :y => 54, :width => 486, :height => 102, :similarity => 70, :text => 'Find Channels', :only_digits => false, :ref_img => ""), dut.height, dut.width) end |