Produced by Araxis Merge on 5/10/2018 8:40:01 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\SM v2.2.5\scheduling-manager-web-2.2.5@30ba13bb3af.zip\scheduling-manager\test\watir-ruby\spec | rspec_helper.rb | Sat Apr 7 11:28:42 2018 UTC |
2 | MHED_APPS_CIF.zip\SM v2.2.5\scheduling-manager-web-2.2.5@30ba13bb3af.zip\scheduling-manager\test\watir-ruby\spec | rspec_helper.rb | Thu May 3 13:06:11 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 188 |
Changed | 2 | 6 |
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 | ||
51 | def compar eContents( expected_c ontent, ac tual_conte nt) | |
52 | expected _content.e ach_with_i ndex do |e xpectedScr eenRow, i| | |
53 | expect (actual_co ntent[i].s trip).to e q(expected ScreenRow. strip) | |
54 | end | |
55 | end | |
56 | ||
57 | def verify ErrorMessa ge (errorM essage) | |
58 | Watir::W ait.until {@error.er rorSummary Header_ele ment.exist s?} | |
59 | Watir::W ait.until {@error.er rorSummary Header_ele ment.text == "The fo llowing er rors were found:"} | |
60 | ||
61 | @error.e rrorSummar yHeader_el ement.when _visible | |
62 | expect(@ error.erro rSummaryHe ader_eleme nt.text).t o eq("The following errors wer e found:") | |
63 | # expect( @error.get FocusedEle ment() == @error.err orSummaryH eader_elem ent).to eq (true) | |
64 | expect(@ error.isEr rorMsgDisp layed?(err orMessage) ).to eq(tr ue) | |
65 | end | |
66 | ||
67 | BASE_URL = "https:// IP /schedulin g-manager/ " | |
68 | VAR_URL = "https:// IP /veteran-a ppointment -requests" | |
69 | TIME_OUT_L IMIT = 45 | |
70 | SM_URL = " https:// IP /schedulin g-manager/ " | |
71 | ||
72 | #App Stati c variable s | |
73 | PRIMARY_CA RE = "PRIM ARY CARE" | |
74 | AUDIOLOGY = "AUDIOLO GY" | |
75 | OPTOMETRY = "OPTOMET RY" | |
76 | MENTAL_HEA LTH = "OUT PATIENT ME NTAL HEALT H" | |
77 | EXPRESS_CA RE = "EXPR ESS CARE" | |
78 | ||
79 | #login cre dentials | |
80 | UserAccess 7 = {"acce ss_code" = > "access7 ", "verify _code" => "verify7!" , "station " => "BOST ON HCS VAM C", "vista _location" => "523", "userId"=> "990"} | |
81 | UserAccess 70 = {"acc ess_code" => "access 70", "veri fy_code" = > "verify7 0!", "stat ion" => "B OSTON HCS VAMC", "vi sta_locati on"=> "523 ", "userId "=>"1615"} | |
82 | UserAccess 50 = {"acc ess_code" => "access 50", "veri fy_code" = > "verify5 0!", "stat ion" => "B OSTON HCS VAMC", "vi sta_locati on"=> "523 ", "userId "=>"1595"} | |
83 | UserAccess 1234 = {"a ccess_code " => "cprs 1234", "ve rify_code" => "cprs4 321$", "st ation" => "WASHINGTO N", "vista _location" => "688", "userId"=> "1"} | |
84 | ||
85 | ||
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 | ||
92 | ||
93 | ||
94 | ||
95 | ||
96 | ||
97 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.