Class: OpsManagerUiDrivers::Version18::StateChangeProgress

Inherits:
OpsManagerUiDrivers::Version17::StateChangeProgress show all
Defined in:
lib/ops_manager_ui_drivers/version18/state_change_progress.rb

Instance Method Summary collapse

Methods inherited from OpsManagerUiDrivers::Version17::StateChangeProgress

#errand_ran_with_text?, #initialize

Constructor Details

This class inherits a constructor from OpsManagerUiDrivers::Version17::StateChangeProgress

Instance Method Details

#errand_ran?(errand_name) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
9
10
# File 'lib/ops_manager_ui_drivers/version18/state_change_progress.rb', line 6

def errand_ran?(errand_name)
  open_install_progress
  !!(/Errand '#{errand_name}' completed successfully \(exit code 0\)/ =~
    browser.find('#install-output .output', visible: false).text(:all))
end

#state_change_success?Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
18
19
20
# File 'lib/ops_manager_ui_drivers/version18/state_change_progress.rb', line 12

def state_change_success?
  load_change_log
  content = browser.find('#change-log > tbody > tr:first-child')
  if content.text.include?('FAILED')
    browser.fail_early('Installation failed!')
  else
    content.text.include?('SUCCEEDED')
  end
end