Class: TestSteps::Handlers::CheckLogs
- Defined in:
- lib/functions/handlers/check_logs.rb
Overview
Check a log file function.
Instance Method Summary collapse
Methods inherited from Base
#initialize, #login_check, #login_process, #mem_word_check, #open_url_process, perform, #portal_mem_word, register
Constructor Details
This class inherits a constructor from TestSteps::Handlers::Base
Instance Method Details
#perform ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/functions/handlers/check_logs.rb', line 11 def perform result = system 'egrep -i ' + @value + ' ' + @value2 + ' > ' + output if result == true MyLog.log.info("Data has matched: #{@value} in LogFile: #{@value2}") return true else MyLog.log.warn("Problem finding: #{@value} in LogFile: #{@value2}") return false end end |