37. EPMO Open Source Coordination Office Redaction File Detail Report

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

37.1 Files compared

# Location File Last Modified
1 mobile-kidney-web-2.0.0.zip\mobile-kidney-web\acceptance_test\watir\spec\learn-more Kidney_Info_How_to_Protect_My_Kidneys_Content_DCKDA_413_spec.rb Wed Apr 4 20:16:46 2018 UTC
2 mobile-kidney-web-2.0.0.zip\mobile-kidney-web\acceptance_test\watir\spec\learn-more Kidney_Info_How_to_Protect_My_Kidneys_Content_DCKDA_413_spec.rb Tue May 29 15:51:42 2018 UTC

37.2 Comparison summary

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

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

37.4 Active regular expressions

No regular expressions were active.

37.5 Comparison detail

  1   #!/bin/env  ruby
  2   # encoding : utf-8
  3  
  4   require 'r ubygems'
  5   require 'r spec'
  6   require 'w atir-webdr iver'
  7   require 'p age-object '
  8   require 's preadsheet '
  9  
  10   require_re lative '.. /rspec_hel per'
  11   require_re lative '.. /../lib/pa ges/login_ page'
  12   require_re lative '.. /../lib/pa ges/eula'
  13   require_re lative '.. /../lib/pa ges/landin g_page'
  14   require_re lative '.. /../lib/pa ges/roa'
  15   require_re lative '.. /../lib/pa ges/launch pad'
  16   require_re lative '.. /../lib/pa ges/common _elements'
  17   require_re lative '.. /../lib/pa ges/common _tests'
  18   require_re lative '.. /../lib/pa ges/modal_ dialog'
  19   require_re lative '.. /../lib/pa ges/left_s ide_nav'
  20   require_re lative '.. /../lib/pa ges/learn_ more_accor dions'
  21  
  22   describe ' Story#DCKD A-413 Kidn ey_Info_Ho w_to_Prote ct_My_Kidn eys_Conten t_DCKDA_41 3_spec.rb' , :regress ion => tru e do
  23     include  DriverOper ationsModu le
  24  
  25     headingN ame = "How  to Protec t Your Kid neys"
  26  
  27     before(: all) do
  28  
  29       initia lizeConfig urations()
  30  
  31       @commo nElements  = CommonEl ement.new( @driver)
  32       @login page = Log inPage.new (@driver)
  33       @eula  = Eula.new (@driver)
  34       @landi ng = Landi ngPage.new (@driver)
  35       @roa =  Roa.new(@ driver)
  36       @leftn av = LeftS ideNav.new (@driver)
  37       @lp =  Launchpad. new(@drive r)
  38       @commo nTest = Co mmonTest.n ew(@driver )
  39       @modal  = Modal.n ew(@driver )
  40       @lmAcc d = LearnM oreAccd.ne w(@driver)
  41  
  42         @commonTes t.passByLa ndingPageA ndAuthenti cate(" AI ", " AI ", "patien t01, zztes t", "D1234 01")
  43       begin
  44         Wati r::Wait.un til
  45         @com monElement s.angulart itle_eleme nt.visible ?
  46       rescue
  47         Wati r::Wait::T imeoutErro r
  48         unti l
  49         @com monElement s.angulart itle_eleme nt.visible ?
  50         end
  51       end
  52  
  53       @commo nTest.wait ForContent LoadedSumm aryPage
  54       @leftn av.leftSid eNav
  55  
  56       @leftn av.home_el ement.when _visible
  57  
  58       @leftn av.learnMo re
  59       @commo nElements. secondaryH eader_elem ent.when_v isible(tim eout=10)
  60  
  61       @leftn av.kidneyI nfo
  62       @commo nElements. primaryHea der_elemen t.when_vis ible(timeo ut=10)
  63       
  64       @leftn av.clickAc cordion(3)
  65       sleep  0.5
  66     end
  67  
  68     after(:a ll) do
  69       @drive r.close
  70     end
  71  
  72     dataShee tFilePath  = File.dir name(__FIL E__) + '/. ./../datas heet/Kidne y_Info_Tex t_Content. xls'
  73     book = S preadsheet .open data SheetFileP ath
  74     sheet1 =  book.work sheet 'how ToProtectY ourKidneys '
  75  
  76     counter  = 0
  77     sheet1.e ach 1 do | row|
  78       counte r = counte r + 1
  79  
  80       rowLen gth = row. length
  81  
  82       sectio nID = row[ 0].to_i
  83       expect edImageInf o = row[2] .split(/\r ?\n/)
  84       expect edImgName  = expected ImageInfo. first
  85       expect edImgAckno wledgement  = ""
  86  
  87       if exp ectedImage Info.lengt h > 1
  88         expe ctedImgAck nowledgeme nt = expec tedImageIn fo.last
  89       end
  90       
  91       expect edImgAltNa me = row[3 ]
  92       expect edSectionH eader = ro w[4]
  93  
  94       contex t 'Story#D CKDA-414~4 26|TC#DCKD A-1143: Im age and co ntent for  this secti on display s correctl y - ' + ex pectedSect ionHeader  do
  95  
  96         if r ow[2] != " na"
  97           it  '. Verify  the image  file name  is correc t. ' do
  98              if @lmAccd .getImgtUn derEachSec tion(secti onID, head ingName).i nclude?(ex pectedImgN ame) == fa lse
  99                puts "Di fferent! F ailed sect ionID=" +  sectionID. to_s + ";  Displayed  Img=" + @l mAccd.getI mgtUnderEa chSection( sectionID,  headingNa me)
  100              end
  101              expect(@lm Accd.getIm gtUnderEac hSection(s ectionID,  headingNam e).include ?(expected ImgName)). to eq(true )
  102           en d
  103  
  104           it  '. Verify  that the  image has  the correc t alt text . ' do
  105              if @lmAccd .getImgAlt TextUnderE achSection (sectionID , headingN ame).inclu de?(expect edImgAltNa me) == fal se
  106                puts "Di fferent! F ailed sect ionID=" +  sectionID. to_s + ";  Displayed  alt text="  + @lmAccd .getImgAlt TextUnderE achSection (sectionID , headingN ame)
  107              end
  108              expect(@lm Accd.getIm gAltTextUn derEachSec tion(secti onID, head ingName).i nclude?(ex pectedImgA ltName)).t o eq(true)
  109           en d
  110  
  111           it  '. Verify  the image  acknowled gement is  correct. '  do
  112              expect(@lm Accd.getIm gAcknowled gementUnde rEachSecti on(section ID, headin gName)).to  eq(expect edImgAckno wledgement )
  113           en d
  114  
  115           it  '. Click  the image  and verify  it opens  up in a mo dal screen . ' do
  116                Watir::W ait.until  {@lmAccd.t ext.includ e? "Manage  Health Pr oblems"}
  117                @lmAccd. clickImgtU nderEachSe ction(sect ionID, hea dingName)
  118                @modal.i mgTitle_el ement.when _visible(t imeout=10)
  119                expect(@ modal.imgT itle).to e q(expected SectionHea der)
  120                expect(@ modal.clos eImg?).to  eq(true)
  121                @modal.c loseImg
  122                @modal.i mgTitle_el ement.when _not_visib le
  123                expect(@ modal.imgT itle?).to  eq(false)
  124           en d
  125  
  126           it  '. Verify  that the  segment he ader displ ays correc tly. ' do
  127              $bodyConte nt = @lmAc cd.getBody ContentUnd erEachSect ion(sectio nID, headi ngName)
  128              expect($bo dyContent. include?(e xpectedSec tionHeader )).to eq(t rue)
  129           en d
  130  
  131           it  '. Verify  the in Ph one form f actor, the  image doe s not disp lay. ' do
  132              resizeWind owTo(320,  480)
  133              sleep 1
  134              expect(@lm Accd.isImg Present(se ctionID, h eadingName )).to eq(f alse)
  135             
  136              resizeWind owToDefaul t()
  137           en d
  138  
  139           it  '. Verify  that all  segments u nder this  section di splays cor rectly. '  do
  140  
  141              $bodyConte nt = @lmAc cd.getBody ContentUnd erEachSect ion(sectio nID, headi ngName)
  142  
  143              dataFileCo ntent = ex pectedSect ionHeader
  144              for column  in 5..row Length-1
  145  
  146                expected SegContent  = row[col umn].strip
  147                dataFile Content +=  expectedS egContent
  148              end
  149  
  150              totalBodyC ontent = $ bodyConten t.delete!( "\n")
  151  
  152              expect(dat aFileConte nt).to eq( totalBodyC ontent)
  153           en d
  154  
  155         else
  156  
  157           it  '. Verify  the Knowl edge Check  text disp lays. ' do
  158              $bodyConte nt = @lmAc cd.getBody ContentUnd erEachSect ion(sectio nID, headi ngName)
  159              expect($bo dyContent. include?(e xpectedSec tionHeader )).to eq(t rue)
  160           en d
  161         end
  162       end
  163     end
  164  
  165   end
  166