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 | FPPS_SSO.java | Wed Mar 27 19:18:20 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ARS_Frontend\ars-app\SeleniumTests\src\automation\Pages | FPPS_SSO.java | Fri Mar 29 17:58:16 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 148 |
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.Arr ayList; | |
5 | import jav a.util.Arr ays; | |
6 | import jav a.util.Lis t; | |
7 | ||
8 | import org .junit.Ass ert; | |
9 | import org .openqa.se lenium.By; | |
10 | import org .openqa.se lenium.sup port.ui.Ex pectedCond itions; | |
11 | import org .openqa.se lenium.sup port.ui.We bDriverWai t; | |
12 | ||
13 | import aut omation.Ex plorerSuit e; | |
14 | import aut omation.Sh aredCodeCl ass; | |
15 | import po. EDIWebView erProfPO; | |
16 | import po. EDI_PDILoo kupPO; | |
17 | import po. EDI_Prof_D etail_PO; | |
18 | import po. EDI_WebVie werDentalP O; | |
19 | import po. LoginPO; | |
20 | import po. SsoPO; | |
21 | ||
22 | /*** | |
23 | * | |
24 | * @author EKutsenko , | |
25 | * @versio n 1.1 | |
26 | */ | |
27 | ||
28 | public cla ss FPPS_SS O extends ExplorerSu ite { | |
29 | Ss oPO sso; | |
30 | ||
31 | St ring baseU rl = "http s:// SERVER . DOMAIN . EXT /qa"; | |
32 | St ring logou tUrl = "ht tps://ssol ogon.int.i am. DOMAIN . EXT /centrallo gin/centra llanding.a spx "; | |
33 | St ring descr iption; | |
34 | ||
35 | pu blic void localRunne r() throws IOExcepti on, Interr uptedExcep tion { | |
36 | sso = new SsoP O(driver); | |
37 | getS ignInPage( ); | |
38 | veri fySignIn(" Validate t hat Sign I n is displ ayed"); | |
39 | getL ogOutPage( ); | |
40 | veri fyLogOut(" Validate L og Out"); | |
41 | ||
42 | } | |
43 | ||
44 | // Load Login page | |
45 | pu blic void getSignInP age(){ | |
46 | driv er.get(bas eUrl); | |
47 | } | |
48 | ||
49 | // Validate t hat Sign I n is displ ayed on sc reen | |
50 | pu blic void verifySign In(String descriptio n) throws IOExceptio n { | |
51 | try { | |
52 | Assert .assertTru e(descript ion, sso.i sSignInDis played()); | |
53 | Shared CodeClass. assertPass ed(descrip tion); | |
54 | } ca tch (Asser tionError | Exceptio n e) { | |
55 | Shared CodeClass. assertFail ed(descrip tion, e); | |
56 | } | |
57 | } | |
58 | ||
59 | // Load Logou t page | |
60 | pu blic void getLogOutP age(){ | |
61 | driv er.get(log outUrl); | |
62 | } | |
63 | ||
64 | // Val idate Logo ut | |
65 | pu blic void verifyLogO ut(String descriptio n) throws IOExceptio n { | |
66 | Stri ng expecte d = "You h ave been l ogged out of VA Sing le Sign-On ."; | |
67 | try { | |
68 | sso.cl ickLogOut( ); | |
69 | String actual = sso.getSuc cessMsg(); | |
70 | Assert .assertEqu als(descri ption, exp ected, act ual); | |
71 | Shared CodeClass. assertPass ed(descrip tion); | |
72 | } ca tch (Asser tionError | Exceptio n e) { | |
73 | Shared CodeClass. assertFail ed(descrip tion, e); | |
74 | } | |
75 | } | |
76 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.