Class: TestSteps::Handlers::Ipause

Inherits:
Base
  • Object
show all
Defined in:
lib/functions/handlers/ipause.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



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

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

  sleep(wait_time.to_i)
  Report.results.puts('Wait completed for seconds: ' + wait_time.to_s)
  true
rescue StandardError
  Report.results.puts('Wait failed for seconds: ' + wait_time.to_s)
  false
end