22. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/29/2018 12:14:32 PM Central Daylight 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.

22.1 Files compared

# Location File Last Modified
1 mobile-kidney-web-2.0.0.zip\mobile-kidney-web\acceptance_test\watir\lib\module DriverOperationsModule.rb Wed Apr 4 20:16:46 2018 UTC
2 mobile-kidney-web-2.0.0.zip\mobile-kidney-web\acceptance_test\watir\lib\module DriverOperationsModule.rb Tue May 29 15:32:35 2018 UTC

22.2 Comparison summary

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

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

22.4 Active regular expressions

No regular expressions were active.

22.5 Comparison detail

  1   require 'a ctive_supp ort/time'
  2   require 'w atir-webdr iver'
  3   require 'r spec'
  4  
  5   module Dri verOperati onsModule
  6  
  7   ### If run ning Local ly change  the option al paramet er value t o $LOCAL f or initial izeConfigu rations
  8   ### If run ning Remot ely change  the optio nal parame ter value  to $REMOTE  for initi alizeConfi gurations
  9   ### Global  Variables  for LOCAL  and REMOT E can be f ound in th e rspec_he lper.rb fi le
  10  
  11     def init ializeConf igurations (base_url  = $REMOTE)
  12       $BASE_ URL = base _url
  13  
  14       if bas e_url == $ REMOTE
  15         brow serCapabil ities = Se lenium::We bDriver::R emote::Cap abilities. firefox(ac cept_insec ure_certs:  true)
  16         @dri ver = Wati r::Browser .new(:remo te,
  17                                           :url => "h ttp://loca lhost: PORT /wd/hub",
  18                                         :desi red_capabi lities =>  browserCap abilities)
  19       elsif  base_url = = $LOCAL
  20         @dri ver = Wati r::Browser .new(:fire fox)
  21       end
  22       @drive r.cookies. clear
  23       @drive r.goto(bas e_url)
  24  
  25     end
  26  
  27     def goto Home()
  28       @drive r.goto($BA SE_URL)
  29     end
  30  
  31     def getC urrentURL( )
  32       return  @driver.u rl
  33     end
  34  
  35     def quit Driver()
  36       @drive r.quit
  37     end
  38  
  39     def resi zeWindowTo (width, he ight)
  40       @drive r.window.r esize_to w idth, heig ht
  41       sleep  1
  42     end
  43  
  44     def resi zeWindowTo Default()
  45       resize WindowTo(1 260, 850)
  46       sleep  1
  47     end
  48  
  49     def pars e(val)
  50       return  JSON.pars e(val)
  51     end
  52  
  53     def getV ersionFrom VersionFil e()
  54       versio nJsonPath  = File.dir name(__FIL E__) + "/. ./../../.. /dist/vers ion.json"
  55  
  56       jsonfi le = File. open(versi onJsonPath ).read
  57       versio nJson= par se(jsonfil e.to_s())
  58  
  59       return  ('v' + ve rsionJson[ 'version']  )
  60  
  61     end
  62  
  63     def swit chWindowTo WindowHand leLast()
  64       @drive r.driver.s witch_to.w indow @dri ver.driver .window_ha ndles.last
  65     end
  66  
  67     def swit chWindowTo WindowHand leFirst()
  68       @drive r.driver.s witch_to.w indow @dri ver.driver .window_ha ndles.firs t
  69     end
  70  
  71     def getN avStops(ro ute)
  72       return  route.spl it(">")
  73     end
  74     
  75     def getD ateNthDays Ago(number OfDaysAgo,  formatStr )
  76       dateNt hDaysAgo =  numberOfD aysAgo.day .ago.strft ime(format =formatStr )
  77  
  78       return  dateNthDa ysAgo
  79  
  80     end
  81  
  82     def getD ateNthDays FromNow(nu mberOfDays FromNow, f ormatStr)
  83       dateNt hDaysFromN ow = numbe rOfDaysFro mNow.day.f rom_now.st rftime(for mat=format Str)
  84  
  85       return  dateNthDa ysFromNow
  86     end
  87  
  88     def getD ateNthMont hsAgo(numb erOfMonths Ago, forma tStr)
  89       dateNt hMonthsAgo  = numberO fMonthsAgo .month.ago .strftime( format=for matStr)
  90  
  91       return  dateNthMo nthsAgo
  92     end
  93  
  94     def getD ateNthMont hsFromNow( numberOfMo nthsFromNo w, formatS tr)
  95       dateNt hMonthsFro mNow = num berOfMonth sFromNow.m onth.from_ now.strfti me(format= formatStr)
  96  
  97       return  dateNthMo nthsFromNo w
  98     end
  99  
  100     def getD ateNthYear sFromNow(n umberOfYea rsFromNow,  formatStr )
  101       dateSt r = number OfYearsFro mNow.year. from_now.s trftime(fo rmat=forma tStr)
  102  
  103       return  dateStr
  104     end
  105  
  106     def getD ateNthYear sAgo(numbe rOfYearsAg o, formatS tr)
  107       dateNt hYearsAgo  = numberOf YearsAgo.y ear.ago.st rftime(for mat=format Str)
  108  
  109       return  dateNthYe arsAgo
  110     end
  111  
  112     def getD ayofWeek(d ateStr)
  113       dateSt rArray = d ateStr.spl it("/")
  114       time =  Time.pars e(dateStrA rray[2] +  '-' + date StrArray[0 ] + '-' +  dateStrArr ay[1] + '  09:00 AM')
  115       puts " time=" + t ime.to_s
  116       time.s trftime("% A")
  117     end
  118  
  119     def getU TCOffset()
  120       offset  = "-04:00 "
  121       zone =  Time.now. in_time_zo ne("Easter n Time (US  & Canada) ").zone
  122  
  123       if (zo ne == "EST ") then
  124         offs et = "-05: 00"
  125       end
  126       
  127       return  offset
  128     end
  129  
  130   end