41. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/8/2017 1:33:40 PM Central Standard 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.

41.1 Files compared

# Location File Last Modified
1 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\SeleniumTests\src\essentialComponents Acceptance.java Fri Dec 8 17:52:36 2017 UTC
2 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\SeleniumTests\src\essentialComponents Acceptance.java Fri Dec 8 19:08:34 2017 UTC

41.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 292
Changed 2 8
Inserted 0 0
Removed 0 0

41.3 Comparison options

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

41.4 Active regular expressions

No regular expressions were active.

41.5 Comparison detail

  1   package es sentialCom ponents;
  2  
  3   import jav a.sql.Conn ection;
  4   import jav a.sql.Driv erManager;
  5   import jav a.sql.Prep aredStatem ent;
  6   import jav a.sql.SQLE xception;
  7  
  8   import org .openqa.se lenium.By;
  9   import org .openqa.se lenium.Web Driver;
  10   import org .openqa.se lenium.Web Element;
  11   import org .openqa.se lenium.sup port.FindB y;
  12   import org .openqa.se lenium.sup port.PageF actory;
  13   import org .openqa.se lenium.sup port.ui.Ex pectedCond itions;
  14   import org .openqa.se lenium.sup port.ui.Se lect;
  15   import org .openqa.se lenium.sup port.ui.We bDriverWai t;
  16  
  17   public cla ss Accepta nce {
  18           We bDriver dr iver;
  19  
  20           pu blic Accep tance(WebD river driv er) {
  21                    this .driver =  driver;
  22                    Page Factory.in itElements (driver, t his);
  23           }
  24  
  25           @F indBy(id =  "VAlogo")
  26           We bElement l blDepartOf VA;
  27  
  28           @F indBy(xpat h = "//h2[ contains(t ext(), 'Fe e Payment' )]")
  29           We bElement l blFPPS;
  30           
  31           
  32           
  33           @F indBy(xpat h = "//but ton[@type= 'button']" )
  34           We bElement l oginAdminB tn;
  35  
  36           @F indBy(xpat h = "//but ton[@class ='button s econdary'] ")
  37           We bElement b tnDecline;
  38           
  39  
  40  
  41  
  42  
  43           pu blic void  ButtonAcce ptClick()  throws Int erruptedEx ception {
  44                    setD ropDown("R EAD_ONLY") ;
  45                    Thre ad.sleep(2 000);
  46                    WebD riverWait  button = n ew WebDriv erWait(dri ver, 60);
  47                    butt on.until(E xpectedCon ditions.el ementToBeC lickable(l oginAdminB tn)).click ();
  48                    try  {
  49                             Thread .sleep(200 0);
  50                    } ca tch (Inter ruptedExce ption e) {
  51                             // TOD O Auto-gen erated cat ch block
  52                             e.prin tStackTrac e();
  53                    }
  54                    // b tnAccept.c lick();
  55           }
  56  
  57           pu blic void  ButtonDecl ineClick()  {
  58                    btnD ecline.cli ck();
  59           }
  60  
  61           pu blic boole an isVATit lesExist()  {
  62                    if ( lblDepartO fVA.isDisp layed() &&  lblFPPS.i sDisplayed ())
  63                             return  true;
  64                    else
  65                             return  false;
  66           }
  67  
  68           pu blic void  Authentiva tionValid( ) {
  69                    try  {
  70  
  71                             Class. forName("o racle.jdbc .driver.Or acleDriver ");
  72                    } ca tch (Class NotFoundEx ception e)  {
  73                             System .out.print ln("Setup  the Oracle  JDBC Driv er?");
  74                             e.prin tStackTrac e();
  75                             return ;
  76                    }
  77                    Syst em.out.pri ntln("Orac le JDBC Dr iver Regis tered!");
  78                    Conn ection con nection =  null;
  79                    Prep aredStatem ent prepar edStmt = n ull;
  80                    try  {
  81                              connection  = DriverM anager.get Connection ("jdbc:ora cle:thin:@ IP                    /CAET1.aac . DNS     ",
  82                                                "FPPS_OWNE R", " REDACTED ");
  83                             if (co nnection ! = null) {
  84                                      System.o ut.println ("Connecte d to datab ase and ex ecuting th e query");
  85                                      // Query  to update  the sso_a uthenticat ion table
  86                                      String q uery = "up date sso_a uthenticat ion set gu id = ? whe re guid=?" ;
  87                                      prepared Stmt = con nection.pr epareState ment(query );
  88                                      prepared Stmt.setSt ring(1, "2 3456");
  89                                      prepared Stmt.setSt ring(2, "9 999");
  90                                      // execu te the pre paredstate ment
  91                                      prepared Stmt.execu teUpdate() ;
  92                                      System.o ut.println ("SSO_AUTH ENTICATION  table has  been upda ted succes sfully!!!" );
  93                                      prepared Stmt.close ();
  94                                      connecti on.close() ;
  95                             } else  {
  96                                      System.o ut.println ("Failed t o make con nection!") ;
  97                             }
  98                    } ca tch (SQLEx ception e)  {
  99  
  100                             System .out.print ln("Connec tion Faile d! Check o utput cons ole");
  101                             e.prin tStackTrac e();
  102                             return ;
  103                    }
  104           }
  105  
  106           pu blic void  Authentiva tionInVali d() {
  107                    try  {
  108  
  109                             Class. forName("o racle.jdbc .driver.Or acleDriver ");
  110                    } ca tch (Class NotFoundEx ception e)  {
  111                             System .out.print ln("Setup  the Oracle  JDBC Driv er?");
  112                             e.prin tStackTrac e();
  113                             return ;
  114                    }
  115                    Syst em.out.pri ntln("Orac le JDBC Dr iver Regis tered!");
  116                    Conn ection con nection =  null;
  117                    Prep aredStatem ent prepar edStmt = n ull;
  118                    try  {
  119                              connection  = DriverM anager.get Connection ("jdbc:ora cle:thin:@ IP                    /CAET1.aac . DNS     ",
  120                                                "FPPS_OWNE R", " REDACTED ");
  121                             if (co nnection ! = null) {
  122                                      System.o ut.println ("Connecte d to datab ase and ex ecuting th e query");
  123                                      // Query  to update  the sso_a uthenticat ion table
  124                                      String q uery = "up date sso_a uthenticat ion set gu id =?  whe re guid=?" ;
  125                                      prepared Stmt = con nection.pr epareState ment(query );
  126                                      prepared Stmt.setSt ring(1, "9 999");// i nvalid gui d
  127                                      prepared Stmt.setSt ring(2, "2 3456");
  128                                      // execu te the pre paredstate ment
  129                                      prepared Stmt.execu teUpdate() ;
  130                                      System.o ut.println ("SSO_AUTH ENTICATION  table has  been upda ted succes sfully!!!" );
  131                                      prepared Stmt.close ();
  132                                      connecti on.close() ;
  133                             } else  {
  134                                      System.o ut.println ("Failed t o make con nection!") ;
  135                             }
  136                    } ca tch (SQLEx ception e)  {
  137  
  138                             System .out.print ln("Connec tion Faile d! Check o utput cons ole");
  139                             e.prin tStackTrac e();
  140                             return ;
  141                    }
  142           }
  143           
  144           pu blic void  setDropDow n(String d ropDown){
  145                    Sele ct dropdow n = new Se lect(drive r.findElem ent(By.id( "selectRol e2")));
  146                    drop down.selec tByVisible Text(dropD own);
  147           }
  148           
  149           
  150   }