252. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/7/2018 11:36:06 AM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

252.1 Files compared

# Location File Last Modified
1 C:\SCRUB\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\test\watir-ruby\common loginLogout.rb Mon Oct 22 23:25:20 2018 UTC
2 C:\MHED-scrubbed\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\test\watir-ruby\common loginLogout.rb Fri Dec 7 13:24:32 2018 UTC

252.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 156
Changed 1 4
Inserted 0 0
Removed 0 0

252.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

252.4 Active regular expressions

No regular expressions were active.

252.5 Comparison detail

  1   require 'r ubygems'
  2   require 'w atir-webdr iver'
  3   require_re lative '.. /pages/com munity_car e/communit y_Care_Pag eObject'
  4   require_re lative '.. /spec/rspe c_helper'
  5   require_re lative '.. /module/da tabase/Ora cleUtility '
  6  
  7   class Logi nLogout
  8     include  PageObject
  9     include  OracleUtil ity
  10  
  11     def init ialize(dri ver)
  12       @drive r = driver
  13       @cc_po  = Communi tyCare_Pag eObject.ne w(@driver)
  14       @modal  = Modal.n ew(@driver )
  15     end
  16  
  17     def logi n(user, la ndingPage  = true, ro aDisplayed  = false)
  18  
  19       if lan dingPage = = true
  20         @cc_ po.landing .login_ele ment.when_ visible(TI ME_OUT_LIM IT)
  21         @cc_ po.landing .login
  22         @cc_ po.landing .vetLink
  23         @cc_ po.common. waitWhileS pinnerPres ent
  24       else
  25         puts  "Log in n ot from La nding Page "
  26       end
  27  
  28       if roa Displayed  == false
  29         setD efaultROAF orPatient( user["user id"])
  30       end
  31  
  32       @cc_po .login.log in_element .when_visi ble(TIME_O UT_LIMIT)
  33       login_ as(user["u sername"],  user["pas sword"])
  34       @cc_po .login.log in
  35  
  36       if roa Displayed  == false
  37         puts  "ROA has  been accep ted before "
  38       else
  39         @cc_ po.roa.nex tButton_el ement.when _present(T IME_OUT_LI MIT)
  40         @cc_ po.roa.nex tButton
  41         @cc_ po.roa.ver ify_elemen t.when_pre sent(TIME_ OUT_LIMIT)
  42         @cc_ po.roa.ver ify
  43       end
  44       @cc_po .common.wa itWhileSpi nnerPresen t
  45     end
  46  
  47     def logi n_as(usern ame, passw ord)
  48         @cc_po.log in. V s ID          
sername
  49         @cc_po.log in. V s ID         
assword
  50     end
  51  
  52     def logo ut(close = true)
  53       @cc_po .userMenu. userMenu_e lement.whe n_visible( TIME_OUT_L IMIT)
  54       @cc_po .userMenu. userMenu_e lement.foc us
  55       @cc_po .userMenu. userMenu_e lement.sen d_keys :re turn
  56       @cc_po .userMenu. logOut_ele ment.when_ present(TI ME_OUT_LIM IT)
  57       @cc_po .userMenu. logOut_ele ment.focus
  58       @cc_po .userMenu. logOut_ele ment.send_ keys :retu rn
  59       if clo se == true
  60         @dri ver.close
  61       else
  62         puts  "Browser  will not b e closed"
  63       end
  64     end
  65  
  66     def logi n_from_use rmenu(user )
  67       @cc_po .userMenu. userMenu_e lement.whe n_visible( TIME_OUT_L IMIT)
  68       @cc_po .userMenu. userMenu_e lement.foc us
  69       @cc_po .userMenu. userMenu_e lement.sen d_keys :re turn
  70       @cc_po .userMenu. login_elem ent.when_v isible(TIM E_OUT_LIMI T)
  71       @cc_po .userMenu. login_elem ent.focus
  72       @cc_po .userMenu. login_elem ent.send_k eys :retur n
  73       @cc_po .login.log in_element .when_visi ble(TIME_O UT_LIMIT)
  74       login_ as(user["u sername"],  user["pas sword"])
  75       @cc_po .login.log in
  76       @cc_po .common.wa itWhileSpi nnerPresen t
  77     end
  78  
  79  
  80   end