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

36.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_And_Kidney_Disease_Content_DCKDA_349_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_And_Kidney_Disease_Content_DCKDA_349_spec.rb Tue May 29 15:50:24 2018 UTC

36.2 Comparison summary

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

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

36.4 Active regular expressions

No regular expressions were active.

36.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-349 Kidn ey_And_Kid ney_Diseas e_Content_ DCKDA_349_ spec.rb',  :regressio n => true  do
  23     include  DriverOper ationsModu le
  24  
  25     headingN ame = "Kid neys and K idney Dise ase"
  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         @commonTes t.passByLa ndingPageA ndAuthenti cate(" AI ", " AI ", "patien t01, zztes t", "D1234 01")
  42       begin
  43         Wati r::Wait.un til
  44         @com monElement s.angulart itle_eleme nt.visible ?
  45       rescue
  46         Wati r::Wait::T imeoutErro r
  47         unti l
  48         @com monElement s.angulart itle_eleme nt.visible ?
  49         end
  50       end
  51  
  52       @commo nTest.wait ForContent LoadedSumm aryPage
  53       @leftn av.leftSid eNav
  54  
  55       @leftn av.home_el ement.when _visible
  56  
  57       @leftn av.learnMo re
  58       @commo nElements. secondaryH eader_elem ent.when_v isible(tim eout=10)
  59  
  60       @leftn av.kidneyI nfo
  61       @commo nElements. primaryHea der_elemen t.when_vis ible(timeo ut=10)
  62  
  63       @leftn av.clickAc cordion(1)
  64       sleep  0.5
  65     end
  66  
  67     after(:a ll) do
  68       @drive r.close
  69     end
  70  
  71     dataShee tFilePath  = File.dir name(__FIL E__) + '/. ./../datas heet/Kidne y_Info_Tex t_Content. xls'
  72     book = S preadsheet .open data SheetFileP ath
  73     sheet1 =  book.work sheet 'kid neyAndKidn eyDisease'
  74  
  75     counter  = 0
  76     sheet1.e ach 1 do | row|
  77     counter  = counter  + 1
  78  
  79     rowLengt h = row.le ngth
  80  
  81     sectionI D = row[0] .to_i
  82     
  83     expected ImageInfo  = row[2].s plit(/\r?\ n/)
  84     expected ImgName =  expectedIm ageInfo.fi rst
  85     expected ImgAcknowl edgement =  ""
  86  
  87     if expec tedImageIn fo.length  > 1
  88        expec tedImgAckn owledgemen t = expect edImageInf o.last
  89     end
  90     
  91     expected ImgAltName  = row[3]
  92     expected SectionHea der = row[ 4]
  93  
  94     context  'Story#DCK DA-366~377 |TC#DCKDA- 1105: Imag e and cont ent for th is section  displays  correctly  - ' + expe ctedSectio nHeader do
  95  
  96       if row [2] != "na "
  97         it ' . Verify t he image f ile name i s correct.  ' do
  98                if @lmAc cd.getImgt UnderEachS ection(sec tionID, he adingName) .include?( expectedIm gName) ==  false
  99                  puts " Different!  Failed se ctionID="  + sectionI D.to_s + " ; Displaye d Img=" +  @lmAccd.ge tImgtUnder EachSectio n(sectionI D, heading Name)
  100                end
  101           ex pect(@lmAc cd.getImgt UnderEachS ection(sec tionID, he adingName) .include?( expectedIm gName)).to  eq(true)
  102         end
  103  
  104         it ' . Verify t hat the im age has th e correct  alt text.  ' do
  105           if  @lmAccd.g etImgAltTe xtUnderEac hSection(s ectionID,  headingNam e).include ?(expected ImgAltName ) == false
  106              puts "Diff erent! Fai led sectio nID=" + se ctionID.to _s + "; Di splayed al t text=" +  @lmAccd.g etImgAltTe xtUnderEac hSection(s ectionID,  headingNam e)
  107           en d
  108           ex pect(@lmAc cd.getImgA ltTextUnde rEachSecti on(section ID, headin gName).inc lude?(expe ctedImgAlt Name)).to  eq(true)
  109         end
  110  
  111         it ' . Verify t he image a cknowledge ment is co rrect. ' d o
  112              expect(@lm Accd.getIm gAcknowled gementUnde rEachSecti on(section ID, headin gName)).to  eq(expect edImgAckno wledgement )
  113         end
  114  
  115         it ' . Click th e image an d verify i t opens up  in a moda l screen.  ' do
  116              Watir::Wai t.until {@ lmAccd.tex t.include?  "Healthy  Kidneys"}
  117             
  118              @lmAccd.cl ickImgtUnd erEachSect ion(sectio nID, headi ngName)
  119              @modal.img Title_elem ent.when_v isible(tim eout=10)
  120              expect(@mo dal.imgTit le).to eq( expectedSe ctionHeade r)
  121              expect(@mo dal.closeI mg?).to eq (true)
  122              @modal.clo seImg
  123              @modal.img Title_elem ent.when_n ot_visible
  124              expect(@mo dal.imgTit le?).to eq (false)
  125         end
  126  
  127         it ' . Verify t hat the se gment head er display s correctl y. ' do
  128           $b odyContent  = @lmAccd .getBodyCo ntentUnder EachSectio n(sectionI D, heading Name)
  129           ex pect($body Content.in clude?(exp ectedSecti onHeader)) .to eq(tru e)
  130         end
  131  
  132         it ' . Verify t he in Phon e form fac tor, the i mage does  not displa y. ' do
  133           re sizeWindow To(320, 48 0)
  134           sl eep 1
  135           ex pect(@lmAc cd.isImgPr esent(sect ionID, hea dingName)) .to eq(fal se)
  136           
  137           re sizeWindow ToDefault( )
  138         end
  139  
  140         it ' . Verify t hat all se gments und er this se ction disp lays corre ctly. ' do
  141  
  142           $b odyContent  = @lmAccd .getBodyCo ntentUnder EachSectio n(sectionI D, heading Name)
  143  
  144           da taFileCont ent = expe ctedSectio nHeader
  145           fo r column i n 5..rowLe ngth-1
  146  
  147              expectedSe gContent =  row[colum n].strip
  148              dataFileCo ntent += e xpectedSeg Content
  149           en d
  150  
  151           to talBodyCon tent = $bo dyContent. delete!("\ n")
  152  
  153           ex pect(dataF ileContent ).to eq(to talBodyCon tent)
  154         end
  155  
  156       else
  157  
  158         it ' . Verify t he Knowled ge Check t ext displa ys. ' do
  159           $b odyContent  = @lmAccd .getBodyCo ntentUnder EachSectio n(sectionI D, heading Name)
  160           ex pect($body Content.in clude?(exp ectedSecti onHeader)) .to eq(tru e)
  161         end
  162       end
  163     end
  164     end
  165  
  166   end