Class: TestSteps::Handlers::ExecuteSystemCommand
- Defined in:
- lib/functions/handlers/execute_system_command.rb
Overview
Execute System Command function.
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
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/functions/handlers/execute_system_command.rb', line 11 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 |