Produced by Araxis Merge on 4/2/2019 1:07:47 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\ARS_Frontend\ars-app\SeleniumTests\src\automation\Pages | EDI_WebViewerPDILookup.java | Wed Mar 27 19:18:21 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ARS_Frontend\ars-app\SeleniumTests\src\automation\Pages | EDI_WebViewerPDILookup.java | Fri Mar 29 17:57:56 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 346 |
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 | package au tomation.P ages; | |
2 | ||
3 | import jav a.io.IOExc eption; | |
4 | import jav a.util.Lis t; | |
5 | ||
6 | import org .junit.Ass ert; | |
7 | import aut omation.Ex plorerSuit e; | |
8 | import aut omation.Sh aredCodeCl ass; | |
9 | import po. EDI_PDILoo kupPO; | |
10 | import po. EDI_WebVie werDentalP O; | |
11 | import po. LoginPO; | |
12 | ||
13 | /*** | |
14 | * | |
15 | * @author EKutsenko , | |
16 | * @versio n 1.0 | |
17 | */ | |
18 | public cla ss EDI_Web ViewerPDIL ookup exte nds Explor erSuite { | |
19 | ED I_PDILooku pPO ediWeb ViewerLook up; | |
20 | ED I_WebViewe rDentalPO ediWebView erClaimInf o; | |
21 | Lo ginPO sele ctLogin; | |
22 | ||
23 | ||
24 | pu blic void localRunne r() throws IOExcepti on, Interr uptedExcep tion{ | |
25 | //dr iver.manag e().timeou ts().impli citlyWait( 10, TimeUn it.SECONDS ); | |
26 | ediW ebViewerLo okup = new EDI_PDILo okupPO(dri ver); | |
27 | ediW ebViewerCl aimInfo = new EDI_We bViewerDen talPO(driv er); | |
28 | load Page(); | |
29 | test Title(); | |
30 | test InputPosit iveDental( ); | |
31 | test InputPosit iveInstit( ); | |
32 | test InputPosit iveProf(); | |
33 | test ResetButto n(); | |
34 | test InputNegat iveDental( ); | |
35 | } | |
36 | ||
37 | ||
38 | public void load Page() thr ows Interr uptedExcep tion { | |
39 | se lectLogin = new Logi nPO(driver ); | |
40 | //driver.g et("https: // SERVER . DOMAIN : PORT /"); // Ru nning on Q A env | |
41 | selectLogi n.selectUs erNameDrop Down("
|
|
42 | se lectLogin. acceptBtnC lick(); | |
43 | ed iWebViewer Lookup.EDI searchClk( ); | |
44 | // selectLogi n.submitBt nClick(); | |
45 | } | |
46 | ||
47 | ||
48 | //Test a Title, it should be "EDI We b Viewer" | |
49 | pu blic void testTitle( ) throws I OException , Interrup tedExcepti on{ | |
50 | Stri ng expecte ds = "EDI Web Viewer "; | |
51 | try { | |
52 | ||
53 | String actuals = ediWebVie werLookup. getTitle() ; | |
54 | // Thread .sleep(300 0); | |
55 | Assert.ass ertEquals( "Title is wrong!", e xpecteds, actuals); | |
56 | System.out .println(" Verify a t itle is pa ssed"); | |
57 | SharedCode Class.addR eport("Ver ify a titl e is passe d"); | |
58 | } ca tch (Asser tionError | Excepti on e) { | |
59 | System .out.print ln("Verify a title i s FAILED w ith a erro r: " + e); | |
60 | Shared CodeClass. addReport( "Verify a title is F AILED with a error: " + e.getM essage()); | |
61 | Shared CodeClass. addReport( "********* ********** ********** ********** ********** ********** "); | |
62 | } | |
63 | } | |
64 | ||
65 | ||
66 | // Verify tha t a dental pdi bring s a user t o a EDI We b Viewer D ental clai m page | |
67 | pu blic void testInputP ositiveDen tal() thro ws IOExcep tion, Inte rruptedExc eption{ | |
68 | Stri ng pdiDent al = "2006 1720300095 2"; | |
69 | char actual; | |
70 | char expected = 'D'; | |
71 | try { | |
72 | ediWeb ViewerLook up.setPDIN umber(pdiD ental); | |
73 | ediWeb ViewerLook up.clickBu ttonRetrie ve(); | |
74 | ||
75 | actual = ediWebV iewerClaim Info.getCl aimType(); | |
76 | Assert .assertEqu als("Claim Type is w rong!", ex pected, ac tual); | |
77 | System.out .println(" Verify a d ental pdi is passed" ); | |
78 | SharedCode Class.addR eport("Ver ify a dent al pdi is passed"); | |
79 | } ca tch (Asser tionError | Excepti on e) { | |
80 | System .out.print ln("Verify a a denta l pdi is F AILED with a error: " + e); | |
81 | Shared CodeClass. addReport( "Verify a a dental p di is FAIL ED with a error: " + e.getMess age()); | |
82 | } | |
83 | } | |
84 | ||
85 | // Verify tha t a Inst p di brings a user to a EDI Web Viewer Ins titutional claim pag e | |
86 | publ ic void te stInputPos itiveInsti t() throws IOExcepti on, Interr uptedExcep tion{ | |
87 | ediWeb ViewerLook up.EDIsear chClk(); | |
88 | String pdi = "20 0617203000 830"; | |
89 | char a ctual; | |
90 | char e xpected = 'I'; | |
91 | try { | |
92 | ediWebVi ewerLookup .setPDINum ber(pdi); | |
93 | ediWebVi ewerLookup .clickButt onRetrieve (); | |
94 | actual = ediWebVie werClaimIn fo.getClai mType(); | |
95 | Assert.a ssertEqual s("Claim T ype is wro ng!", expe cted, actu al); | |
96 | Sy stem.out.p rintln("Ve rify an In st pdi is passed"); | |
97 | Sh aredCodeCl ass.addRep ort("Verif y a Inst p di is pass ed"); | |
98 | } catc h (Asserti onError | Exception e) { | |
99 | System.o ut.println ("Verify a n Inst pdi is FAILED with a er ror: " + e ); | |
100 | SharedCo deClass.ad dReport("V erify an I nstit pdi is FAILED with a err or: " + e. getMessage ()); | |
101 | } | |
102 | } | |
103 | ||
104 | //Ve rify that a Prof pdi brings a user to a EDI Web Vi ewer Insti tutional c laim page | |
105 | public v oid testIn putPositiv eProf() th rows IOExc eption, In terruptedE xception{ | |
106 | ediWebView erLookup.E DIsearchCl k(); | |
107 | String pdi = "200617 203000824" ; | |
108 | char actua l; | |
109 | char expec ted = 'P'; | |
110 | try { | |
111 | ed iWebViewer Lookup.set PDINumber( pdi); | |
112 | ed iWebViewer Lookup.cli ckButtonRe trieve(); | |
113 | ||
114 | ac tual = edi WebViewerC laimInfo.g etClaimTyp e(); | |
115 | As sert.asser tEquals("C laim Type is wrong!" , expected , actual); | |
116 | System .out.print ln("Verify an Prof p di is pass ed"); | |
117 | Shared CodeClass. addReport( "Verify a Prof pdi i s passed") ; | |
118 | } catch (A ssertionEr ror | Exc eption e) { | |
119 | Sy stem.out.p rintln("Ve rify an Pr of pdi is FAILED wit h a error: " + e); | |
120 | Sh aredCodeCl ass.addRep ort("Verif y an Prof pdi is FAI LED with a error: " + e.getMes sage()); | |
121 | } | |
122 | } | |
123 | ||
124 | // Verify tha t a Retrie ve button is inactiv e until us er enters 15 digits | |
125 | publ ic void te stInputNeg ativeDenta l() throws IOExcepti on, Interr uptedExcep tion{ | |
126 | ediWeb ViewerLook up.EDIsear chClk(); | |
127 | String pdiDental = "200617 20300095"; | |
128 | ||
129 | try { | |
130 | ediWebVi ewerLookup .setPDINum ber(pdiDen tal); | |
131 | Assert.a ssertTrue( ediWebView erLookup.i sDisabledB uttonRetri eve()); | |
132 | System.o ut.println ("Verify t hat Retrie ve button is inactiv e until us er enters 15 digits is passed" ); | |
133 | } ca tch (Asser tionError | Excepti on e) { | |
134 | System .out.print ln("Verify that Retr ieve butto n is inact ive until user enter s 15 digit s is FAILE D with a e rror: " + e); | |
135 | Shared CodeClass. addReport( "Verify th at Retriev e button i s inactive until use r enters 1 5 digits F AILED with an error: " + e.get Message()) ; | |
136 | } | |
137 | ||
138 | } | |
139 | ||
140 | // Verify a Reset b utton | |
141 | publ ic void te stResetBut ton() thro ws IOExcep tion, Inte rruptedExc eption{ | |
142 | ediWeb ViewerLook up.EDIsear chClk(); | |
143 | String pdiDental = "200617 20300095"; | |
144 | ediWeb ViewerLook up.clickBu ttonResetF orm(); | |
145 | ||
146 | try { | |
147 | Assert.a ssertTrue( ediWebView erLookup.i sInputClea n()); | |
148 | System.o ut.println ("Verify R eset butto n is passe d"); | |
149 | } ca tch (Asser tionError | Excepti on e) { | |
150 | System .out.print ln("Reset button FAI LED with a error: " + e); | |
151 | Shared CodeClass. addReport( "Verify Re set button FAILED wi th an erro r: " + e.g etMessage( )); | |
152 | } | |
153 | ||
154 | ||
155 | } | |
156 | ||
157 | ||
158 | ||
159 | ||
160 | ||
161 | ||
162 | /* | |
163 | pu blic void testTable( ) { | |
164 | ||
165 | driv er.findEle ment(By.id ("searchBu tton")).cl ick(); | |
166 | // WebE lement wai t = (new W ebDriverWa it(driver, 10)) | |
167 | // .until (ExpectedC onditions. presenceOf AllElement sLocatedBy (By.xpath( "//table/t head/tr/th "))); | |
168 | List <WebElemen t> headers = driver .findEleme nts(By.xpa th("//tabl e/thead/tr /th")); | |
169 | for( WebElement header: h eaders) { | |
170 | System .out.print ln(header. getText()) ; | |
171 | } | |
172 | ||
173 | } */ | |
174 | ||
175 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.