Produced by Araxis Merge on 5/8/2017 10:03:28 PM Eastern 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | var-utility-web-Release-1.0.0-Branch.zip\var-utility-web-Release-1.0.0-Branch\acceptance-tests\watir-ruby\spec | rspec_helper.rb | Wed Jan 25 20:20:12 2017 UTC |
| 2 | var-utility-web-Release-1.0.0-Branch.zip\var-utility-web-Release-1.0.0-Branch\acceptance-tests\watir-ruby\spec | rspec_helper.rb | Fri May 5 19:25:39 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 156 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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 | end | |
| 15 | ||
| 16 | RSpec.conf igure do | config| | |
| 17 | ||
| 18 | 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 } | |
| 19 | ||
| 20 | config.i nclude Pag eObject::P ageFactory | |
| 21 | ||
| 22 | config.a fter(:each ) do | |
| 23 | exampl e = fetch_ current_ex ample.call (self); | |
| 24 | ||
| 25 | if exa mple.excep tion | |
| 26 | meta = example .metadata | |
| 27 | file name = Fil e.basename (meta[:fil e_path]) | |
| 28 | line _number = meta[:line _number] | |
| 29 | buil dJobUrl = ENV["JOB_U RL"] | |
| 30 | buil dJobNumber = ENV["BU ILD_NUMBER "] | |
| 31 | scre enshot_nam e = "scree nshot-#{fi lename}-#{ line_numbe r}.png" | |
| 32 | scre enshot_dir = "screen shots" + ( buildJobNu mber != ni l ? ("_" + buildJobN umber.to_s ) : "") | |
| 33 | scre enshot_pat h = screen shot_dir + "/#{scree nshot_name }" | |
| 34 | ||
| 35 | ||
| 36 | if ! Dir.exists ?(screensh ot_dir) | |
| 37 | Di r.mkdir sc reenshot_d ir | |
| 38 | end | |
| 39 | ||
| 40 | @dri ver.screen shot.save screenshot _path | |
| 41 | puts "----Test Failed @ URL => " + @driver. url | |
| 42 | puts "----Scre enshot --- ---------- ---------- ---------- ---------- ---------- ---------- ---------" | |
| 43 | 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 | |
| 44 | puts "-------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------" | |
| 45 | end | |
| 46 | end | |
| 47 | ||
| 48 | end | |
| 49 | ||
| 50 | BASE_URL = "https:// IP /var-utili ty" | |
| 51 | TIME_OUT_L IMIT = 45 | |
| 52 | ||
| 53 | #App Stati c variable s | |
| 54 | PRIMARY_CA RE = "Prim ary Care" | |
| 55 | AUDIOLOGY = "Audiolo gy" | |
| 56 | OPTOMETRY = "Optomet ry" | |
| 57 | MENTAL_HEA LTH = "Out patient Me ntal Healt h" | |
| 58 | ||
| 59 | ||
| 60 | #Common Me thods | |
| 61 | def verify ErrorMessa ge (errorM essage) | |
| 62 | Watir::W ait.until {@error.er rorSummary Header_ele ment.exist s?} | |
| 63 | Watir::W ait.until {@error.er rorSummary Header_ele ment.text == "The fo llowing er rors were found:"} | |
| 64 | ||
| 65 | @error.e rrorSummar yHeader_el ement.when _visible | |
| 66 | expect(@ error.erro rSummaryHe ader_eleme nt.text).t o eq("The following errors wer e found:") | |
| 67 | expect(@ error.getF ocusedElem ent() == @ error.erro rSummaryHe ader_eleme nt).to eq( true) | |
| 68 | expect(@ error.isEr rorMsgDisp layed?(err orMessage) ).to eq(tr ue) | |
| 69 | end | |
| 70 | ||
| 71 | ||
| 72 | ||
| 73 | ||
| 74 | ||
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | ||
| 79 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.