Produced by Araxis Merge on 5/10/2018 8:40:53 AM 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | MHED_APPS_CIF.zip\VAR v4.2.7\var-web-4.2.7@0810ae549c1.zip\veteran-appointment-requests\test\watir-ruby\spec | rspec_helper.rb | Mon Apr 9 06:06:53 2018 UTC |
2 | MHED_APPS_CIF.zip\VAR v4.2.7\var-web-4.2.7@0810ae549c1.zip\veteran-appointment-requests\test\watir-ruby\spec | rspec_helper.rb | Tue May 8 12:38:54 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 5 | 180 |
Changed | 4 | 22 |
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 | 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 | ||
52 | #BASE_URL = "https:/ / IP /veteran-a ppointment -requests" | |
53 | ||
54 | BASE_URL = "http://l ocalhost: PORT /var/v4/" | |
55 | CC_URL = " http://loc alhost: PORT /var/v4/" | |
56 | ||
57 | MockUser = {"usernam e" => " REDACTED ", "passwo rd" => " REDACTED "} | |
58 | NoDFNUser ={"usernam e" => " REDACTED ", "passwo rd" => " REDACTED "} | |
59 | NoICNUser ={"usernam e" => " REDACTED ", "passwo rd" => " REDACTED "} | |
60 | MockUserSi ngleDFN={" username" => " REDACTED ", "passwo rd" => " REDACTED "} | |
61 | ||
62 | TIME_OUT_L IMIT = 45 | |
63 | ||
64 | #App Stati c variable s | |
65 | PRIMARY_CA RE = "Prim ary Care" | |
66 | AUDIOLOGY = "Audiolo gy" | |
67 | OPTOMETRY = "Optomet ry" | |
68 | MENTAL_HEA LTH = "Out patient Me ntal Healt h" | |
69 | EXPRESS_CA RE = "Expr ess Care" | |
70 | ||
71 | #Common Me thods | |
72 | def verify ErrorMessa ge (errorM essage) | |
73 | Watir::W ait.until {@error.er rorSummary Header_ele ment.exist s?} | |
74 | Watir::W ait.until {@error.er rorSummary Header_ele ment.text == "The fo llowing er rors were found:"} | |
75 | ||
76 | @error.e rrorSummar yHeader_el ement.when _visible | |
77 | expect(@ error.erro rSummaryHe ader_eleme nt.text).t o eq("The following errors wer e found:") | |
78 | # expect( @error.get FocusedEle ment() == @error.err orSummaryH eader_elem ent).to eq (true) | |
79 | expect(@ error.isEr rorMsgDisp layed?(err orMessage) ).to eq(tr ue) | |
80 | end | |
81 | ||
82 | def compar eContents( expected_c ontent, ac tual_conte nt) | |
83 | expected _content.e ach_with_i ndex do |e xpectedScr eenRow, i| | |
84 | expect (actual_co ntent[i].t o_s.strip) .to includ e(expected ScreenRow. to_s.strip ) | |
85 | end | |
86 | end | |
87 | ||
88 | MockUser01 = {"usern ame" => " REDACTED ", "passwo rd" => " REDACTED ", "userid " => " REDACTED "} | |
89 | MockUser02 = {"usern ame" => " REDACTED ", "passwo rd" => " REDACTED ", "userid " => " REDACTED "} | |
90 | VarPatient 14 = {"use rname" => " REDACTED ", "passwo rd" => " REDACTED ", "userid " => " REDACTED "} | |
91 | VarVeteran 01 = {"use rname" => " REDACTED ", "passwo rd" => " REDACTED ", "userid " => " REDACTED "} | |
92 | ||
93 | ||
94 | ||
95 | ||
96 | ||
97 | ||
98 | ||
99 | ||
100 | ||
101 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.