Produced by Araxis Merge on 9/27/2017 9:44:49 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 | adk\adk\product\tests\acceptance-tests\features\steps | loginscreen_steps.rb | Tue Dec 15 14:06:56 2015 UTC |
| 2 | adk\adk\product\tests\acceptance-tests\features\steps | loginscreen_steps.rb | Tue Sep 26 13:23:08 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 258 |
| Changed | 1 | 4 |
| 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 | path = Fil e.expand_p ath '..', __FILE__ | |
| 2 | $LOAD_PATH .unshift p ath unless $LOAD_PAT H.include? (path) | |
| 3 | path = Fil e.expand_p ath '../.. /../../sha red-test-r uby', __FI LE__ | |
| 4 | $LOAD_PATH .unshift p ath unless $LOAD_PAT H.include? (path) | |
| 5 | path = Fil e.expand_p ath '../he lper', __F ILE__ | |
| 6 | $LOAD_PATH .unshift p ath unless $LOAD_PAT H.include? (path) | |
| 7 | ||
| 8 | require 'A ccessBrows erV2.rb' | |
| 9 | ||
| 10 | class Logi nContainer < AccessB rowserV2 | |
| 11 | include Singleton | |
| 12 | def init ialize | |
| 13 | super | |
| 14 | add_ve rify(Cucum berLabel.n ew("North Region"), VerifyText .new, Acce ssHtmlElem ent.new(:i d, "top-re gion")) | |
| 15 | add_ve rify(Cucum berLabel.n ew("Bottom Region"), VerifyTex t.new, Acc essHtmlEle ment.new(: id, "botto m-region") ) | |
| 16 | add_ve rify(Cucum berLabel.n ew("Applet Header Re gion"), Ve rifyContai nsText.new , AccessHt mlElement. new(:id, " applet-hea der-region ")) | |
| 17 | end | |
| 18 | end # Logi nContainer | |
| 19 | ||
| 20 | Then(/^the main page displays$ /) do | |
| 21 | con= Pat ientDetail sHTMLEleme nts.instan ce | |
| 22 | TestSupp ort.wait_f or_page_lo aded | |
| 23 | con.add_ verify(Cuc umberLabel .new("Pane l Title"), VerifyCon tainsText. new, Acces sHtmlEleme nt.new(:cl ass, "navb ar-brand") ) | |
| 24 | expect(c on.static_ dom_elemen t_exists?( "Panel Tit le")).to e q(true) | |
| 25 | TestSupp ort.succes sfully_log gedin=true | |
| 26 | end | |
| 27 | ||
| 28 | Then(/^the user atte mpts signo ut$/) do | |
| 29 | TestSupp ort.succes sfully_log gedin=true | |
| 30 | con= Log inHTMLElem ents.insta nce | |
| 31 | con.perf orm_action ('Signout' ) | |
| 32 | TestSupp ort.wait_f or_page_lo aded | |
| 33 | expect(c on.static_ dom_elemen t_exists?( "Signout") ).to eq(fa lse) | |
| 34 | TestSupp ort.succes sful_logou t=true | |
| 35 | #sleep 1 00 | |
| 36 | end | |
| 37 | ||
| 38 | Given(/^us er login w ith incorr ect creden tials$/) d o | |
| 39 | con= Log inHTMLElem ents.insta nce | |
| 40 | TestSupp ort.wait_f or_page_lo aded | |
| 41 | con.perf orm_action ('Facility ', 'Panora ma') | |
| 42 | con.perfor m_action(' AccessCode ', ' R E DACTED ') | |
| 43 | con.perfor m_action(' VerifyCode ', ' REDACTED ') | |
| 44 | con.perf orm_action ('SignIn') | |
| 45 | #sleep 1 0 | |
| 46 | end | |
| 47 | ||
| 48 | Then(/^the page disp lays "(.*? )"$/) do | errorMessa ge| | |
| 49 | con= Log inHTMLElem ents.insta nce | |
| 50 | begin | |
| 51 | con.wa it_until_e lement_pre sent(error Message, 6 0) | |
| 52 | rescue E xception = > e | |
| 53 | p "exc eption whi le waiting for #{err orMessage} : #{e}" | |
| 54 | p Test Support.dr iver.page_ source | |
| 55 | end | |
| 56 | con.add_ verify(Cuc umberLabel .new(error Message), VerifyText .new, Acce ssHtmlElem ent.new(:i d, "errorM essage")) | |
| 57 | expect(c on.static_ dom_elemen t_exists?( errorMessa ge)).to eq (true) | |
| 58 | TestSupp ort.succes sfully_log gedin=fals e | |
| 59 | #TestSup port.close _browser | |
| 60 | #sleep 1 0 | |
| 61 | end | |
| 62 | ||
| 63 | Given(/^us er views A DK123 in t he browser $/) do | |
| 64 | con= Log inHTMLElem ents.insta nce | |
| 65 | p Defaul tLogin.adk _url | |
| 66 | p 'start ' | |
| 67 | TestSupp ort.naviga te_to_url( DefaultLog in.adk_url ) | |
| 68 | p 'end' | |
| 69 | TestSupp ort.wait_f or_page_lo aded | |
| 70 | #sleep 1 00 | |
| 71 | TestSupp ort.driver .manage.wi ndow.maxim ize | |
| 72 | con.wait _until_ele ment_prese nt("Access Code", 50) | |
| 73 | #sleep 1 0 | |
| 74 | end | |
| 75 | ||
| 76 | Given(/^us er attempt s login$/) do |table | | |
| 77 | con = Lo ginHTMLEle ments.inst ance | |
| 78 | p "Page Source: " | |
| 79 | p TestSu pport.driv er.page_so urce | |
| 80 | table.ro ws.each do |field, v alue | | |
| 81 | begin | |
| 82 | con.wa it_until_e lement_pre sent(field , 60) | |
| 83 | con.pe rform_acti on(field, value) | |
| 84 | rescue E xception = > e | |
| 85 | p "exc eption whi le waiting for #{fie ld}: #{e}" | |
| 86 | p Test Support.dr iver.page_ source | |
| 87 | end | |
| 88 | ||
| 89 | #sleep 10 | |
| 90 | end | |
| 91 | end | |
| 92 | ||
| 93 | Given(/^us er attempt to go dir ectly to a pplet with out login$ /) do | |
| 94 | con= Log inHTMLElem ents.insta nce | |
| 95 | base_url = DefaultL ogin.adk_u rl | |
| 96 | TestSupp ort.wait_f or_page_lo aded | |
| 97 | path = " #{base_url }/#allergy -list" | |
| 98 | TestSupp ort.naviga te_to_url( path) | |
| 99 | TestSupp ort.wait_f or_page_lo aded | |
| 100 | TestSupp ort.driver .manage.wi ndow.maxim ize | |
| 101 | #sleep 1 0 | |
| 102 | end | |
| 103 | ||
| 104 | Given(/^us er attempt to go dir ectly to a pplet with incorrect subpage$/ ) do | |
| 105 | con= Log inHTMLElem ents.insta nce | |
| 106 | base_url = DefaultL ogin.adk_u rl | |
| 107 | TestSupp ort.wait_f or_page_lo aded | |
| 108 | path = " #{base_url }/#aaaaacc c" | |
| 109 | TestSupp ort.naviga te_to_url( path) | |
| 110 | TestSupp ort.wait_f or_page_lo aded | |
| 111 | TestSupp ort.driver .manage.wi ndow.maxim ize | |
| 112 | #sleep 1 0 | |
| 113 | end | |
| 114 | ||
| 115 | Then(/^use r is redir ected to " (.*?)" pag e$/) do |n ame| | |
| 116 | con= Log inHTMLElem ents.insta nce | |
| 117 | TestSupp ort.wait_f or_page_lo aded | |
| 118 | begin | |
| 119 | con.wa it_until_e lement_pre sent(name, 60) | |
| 120 | rescue E xception = > e | |
| 121 | p "exc eption whi le waiting for #{nam e}: #{e}" | |
| 122 | p Test Support.dr iver.page_ source | |
| 123 | end | |
| 124 | con.add_ verify(Cuc umberLabel .new("Sign In"), Veri fyText.new , AccessHt mlElement. new(:id, " login")) | |
| 125 | expect(c on.static_ dom_elemen t_exists?( "SignIn")) .to eq(tru e) | |
| 126 | end | |
| 127 | ||
| 128 | at_exit do | |
| 129 | puts "ca lling clos e Browser" | |
| 130 | TestSupp ort.close_ browser | |
| 131 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.