Class: Taf::TestSteps::Handlers::Login
- Defined in:
- lib/taf/test_steps/handlers/base/login.rb
Overview
Logins function.
Instance Method Summary collapse
Methods inherited from Base
#initialize, #login_check, #login_process, #mem_word_check, perform, #portal_mem_word, register
Constructor Details
This class inherits a constructor from Taf::TestSteps::Handlers::Base
Instance Method Details
#login_user(user) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/taf/test_steps/handlers/base/login.rb', line 20 def login_user(user) case @value.downcase when 'portal_login' portal_login(user) when 'sso_login' sso_login(user) end end |
#perform ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/taf/test_steps/handlers/base/login.rb', line 10 def perform user = @value2 user = ENV[user.to_s] if ENV[user.to_s] login_user(user) rescue StandardError Taf::MyLog.log.error "unable to find login: #{@value}" raise Taf::LoginTypeFailed end |