Class: TestSteps::Handlers::ExecuteSystemCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/functions/handlers/execute_system_command.rb

Instance Method Summary collapse

Methods inherited from Base

#login_button, #login_check, #login_process, #mem_word_check, #open_url_process, perform, #portal_mem_word, register

Instance Method Details

#perform(step_attributes) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/functions/handlers/execute_system_command.rb', line 8

def perform(step_attributes)
  syst_cmd = step_attributes[:testvalue]

  b_result = system syst_cmd
  if b_result == true
    MyLog.log.info("Cmd has been executed sucessfully #{syst_cmd}")
    return true
  else
    MyLog.log.warn("Theres a problem executing command #{syst_cmd}")
    return false
  end
end