Class: Taf::TestSteps::Handlers::ExecuteSystemCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/taf/test_steps/handlers/base/execute_system_command.rb

Overview

Execute System Command function.

Instance Method Summary collapse

Methods inherited from Base

#initialize, #login_check, #login_process, perform, register, #url_check

Constructor Details

This class inherits a constructor from Taf::TestSteps::Handlers::Base

Instance Method Details

#performObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/taf/test_steps/handlers/base/execute_system_command.rb', line 10

def perform
  b_result = system @value
  if b_result == true
    Taf::MyLog.log.info("Cmd has been executed sucessfully #{@value}")
    true
  else
    Taf::MyLog.log.warn("Theres a problem executing command #{@value}")
    false
  end
end