304. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/7/2018 11:36:08 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.

304.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\spec rspec_helper.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\spec rspec_helper.rb Fri Dec 7 13:25:44 2018 UTC

304.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 4 212
Changed 3 6
Inserted 0 0
Removed 0 0

304.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

304.4 Active regular expressions

No regular expressions were active.

304.5 Comparison detail

  1   require 'r ubygems'
  2   require 'p age-object '
  3   require 'p age-object /page_fact ory'
  4   require 'r spec'
  5   require 'w atir-webdr iver'
  6  
  7   RSpec.conf igure do | c|
  8     # declar e an exclu sion filte r
  9     #c.filte r_run_excl uding :bro ken => tru e
  10     c.filter _run_exclu ding :regr ession =>  true
  11     c.filter _run_exclu ding :acce ptance =>  true
  12     c.filter _run_exclu ding :smok etest => t rue
  13     c.filter _run_exclu ding :arch ived => tr ue
  14     c.filter _run_exclu ding :brok en => true
  15   end
  16  
  17   RSpec.conf igure do | config|
  18  
  19     fetch_cu rrent_exam ple = RSpe c.respond_ to?(:curre nt_example ) ? proc {  RSpec.cur rent_examp le } : pro c { |conte xt| contex t.example  }
  20  
  21     config.i nclude Pag eObject::P ageFactory
  22  
  23     config.a fter(:each ) do
  24       exampl e = fetch_ current_ex ample.call (self);
  25  
  26       if exa mple.excep tion
  27         meta  = example .metadata
  28         file name = Fil e.basename (meta[:fil e_path])
  29         line _number =  meta[:line _number]
  30         buil dJobUrl =  ENV["JOB_U RL"]
  31         buil dJobNumber  = ENV["BU ILD_NUMBER "]
  32         scre enshot_nam e = "scree nshot-#{fi lename}-#{ line_numbe r}.png"
  33         scre enshot_dir  = "screen shots" + ( buildJobNu mber != ni l ? ("_" +  buildJobN umber.to_s ) : "")
  34         scre enshot_pat h = screen shot_dir +  "/#{scree nshot_name }"
  35  
  36  
  37         if ! Dir.exists ?(screensh ot_dir)
  38           Di r.mkdir sc reenshot_d ir
  39         end
  40  
  41         @dri ver.screen shot.save  screenshot _path
  42         puts  "----Test  Failed @  URL =>  "  + @driver. url
  43         puts  "----Scre enshot --- ---------- ---------- ---------- ---------- ---------- ---------- ---------"
  44         puts  meta[:ful l_descript ion] + "\n   Screensh ot: #{scre enshot_pat h}\n  " +  (buildJobU rl != nil  ? buildJob Url.to_s :  "") + "/w s/veteran- appointmen t-requests /test/wati r-ruby/" +  screensho t_path
  45         puts  "-------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------"
  46       end
  47     end
  48  
  49   end
  50  
  51   VAR_BASE_U RL = ENV[' VAR_BASE_U RL'] || "h ttp://loca lhost:8089 /var/v4/"
  52   VAR_SERVIC E_URL = EN V['VAR_SER VICE_URL']  || "http: //localhos t:8089/"
  53   MONGO_PORT  = ENV['MO NGO_PORT']  || "27017 "
  54   MONGO_URL  = "mongodb ://localho st:#{MONGO _PORT}/"
  55   MONGO_VMM_ URI = ENV[ 'MONGO_VMM _URI'] ||  "mongodb:/ /vmm:vmm@l ocalhost:2 7017/vmm?"
  56  
  57   ORACLE_USE R = ENV['O RACLE_USER '] || "VAR DB"
  58   ORACLE_PAS SWORD = EN V['ORACLE_ PASSWORD']  || " PW_R e d a cte d      "
  59   ORACLE_VAM F_HOST_POR T= ENV['OR ACLE_VAMF_ HOST_PORT' ] || "//lo calhost:15 21"
  60   ORACLE_SER VICE_NAME  = ENV['ORA CLE_SERVIC E_NAME'] | | "xe"
  61  
  62  
  63   MockUser =  {"usernam e" => " pw_reda c t e d ", "passwo rd" => "pa ss"}
  64   MockUserSi ngleDFN={" username"  => "zztest .patientte n", "passw ord" => "p ass"}
  65  
  66   TIME_OUT_L IMIT = 45
  67  
  68   #App Stati c variable s
  69   PRIMARY_CA RE = "Prim ary Care"
  70   AUDIOLOGY  = "Audiolo gy"
  71   OPTOMETRY  = "Optomet ry"
  72   MENTAL_HEA LTH = "Out patient Me ntal Healt h"
  73   EXPRESS_CA RE = "Expr ess Care"
  74  
  75   #Common Me thods
  76   def verify ErrorMessa ge (errorM essage)
  77     Watir::W ait.until  {@error.er rorSummary Header_ele ment.exist s?}
  78     Watir::W ait.until  {@error.er rorSummary Header_ele ment.text  == "The fo llowing er rors were  found:"}
  79  
  80     @error.e rrorSummar yHeader_el ement.when _visible
  81     expect(@ error.erro rSummaryHe ader_eleme nt.text).t o eq("The  following  errors wer e found:")
  82   #  expect( @error.get FocusedEle ment() ==  @error.err orSummaryH eader_elem ent).to eq (true)
  83     expect(@ error.isEr rorMsgDisp layed?(err orMessage) ).to eq(tr ue)
  84   end
  85  
  86   def compar eContents( expected_c ontent, ac tual_conte nt)
  87     expected _content.e ach_with_i ndex do |e xpectedScr eenRow, i|
  88       expect (actual_co ntent[i].t o_s.strip) .to includ e(expected ScreenRow. to_s.strip )
  89     end
  90   end
  91  
  92   pw_reda c t e d  = {"usern ame" => " pw_reda c t e d ", "passwo rd" => "pa ss", "user id" => "10 06088937V0 99668", "e dipi" => " 1113138327 "}
  93   MockUser02  = {"usern ame" => "M ockUser02" , "passwor d" => "pas s", "useri d" => "101 3599714"}
  94   MockUser03  = {"usern ame" => "m ockuser03" , "passwor d" => "pas s", "useri d" => "500 0000345V87 9"}
  95   MockUser05  = {"usern ame" => "m ockuser05" , "passwor d" => "pas s", "useri d" => "500 0000348V76 5"}
  96   MockUser09  = {"usern ame" => "m ockuser09" , "passwor d" => "pas s", "useri d" => "500 0000360V67 2"}
  97   MockUser10  = {"usern ame" => "m ockuser10" , "passwor d" => "pas s", "useri d" => "500 0000361V61 2"}
  98   VarPatient 14 = {"use rname" =>  "zztest.pa tient14",  "password"  => "pass" , "userid"  => "00000 00014"}
  99   VarVeteran 01 = {"use rname" =>  "zztest.ve teran01",  "password"  => "pass" , "userid"  => "12444 20300"}
  100  
  101  
  102  
  103  
  104  
  105  
  106  
  107  
  108  
  109