59. EPMO Open Source Coordination Office Redaction File Detail Report

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

59.1 Files compared

# Location File Last Modified
1 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\Testing\src\Pages Acceptance.java Fri Dec 8 17:53:06 2017 UTC
2 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\Testing\src\Pages Acceptance.java Fri Dec 8 19:16:48 2017 UTC

59.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 4 258
Changed 3 10
Inserted 0 0
Removed 0 0

59.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

59.4 Active regular expressions

No regular expressions were active.

59.5 Comparison detail

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