261. EPMO Open Source Coordination Office Redaction File Detail Report

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.

261.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\ARS_Frontend\ars-app\SeleniumTests\src\po EWV_Admin_ModifyUserPO.java Wed Mar 27 19:16:17 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\ARS_Frontend\ars-app\SeleniumTests\src\po EWV_Admin_ModifyUserPO.java Fri Mar 29 17:59:53 2019 UTC

261.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 382
Changed 1 2
Inserted 0 0
Removed 0 0

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

261.4 Active regular expressions

No regular expressions were active.

261.5 Comparison detail

  1   package po ;
  2  
  3  
  4   import jav a.util.Arr ayList;
  5   import jav a.util.Lis t;
  6   import jav a.util.Ran dom;
  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   import aut omation.Ex plorerSuit e;
  16  
  17   public cla ss EWV_Adm in_ModifyU serPO exte nds Explor erSuite {
  18           // WebDriver  driver;
  19           We bDriverWai t wait;
  20           
  21           pu blic EWV_A dmin_Modif yUserPO(We bDriver dr iver){
  22           //       this .driver =  driver;
  23                    Page Factory.in itElements (driver, t his);
  24           }
  25  
  26   //Tabs loc ators
  27           @F indBy(id =  "label1")
  28           pr ivate WebE lement tab PdfRef;
  29           
  30           @F indBy(xpat h = "//lab el[@for= ' TAB_create User_userA dmin_1']")
  31           pr ivate WebE lement tab CreateUser ;
  32           
  33   //Tab Modi fy Users l ocators
  34           @F indBy(xpat h = "//lab el[@for='T AB_modifyU ser_ewvUse rAdmin_1'] ")
  35           pr ivate WebE lement tab ModifyUser s;
  36           
  37           @F indBy(id =  "IPT_user SearchPara m_ewvUserA dmin_1")
  38           pr ivate WebE lement inp utModifyUs er;
  39           
  40           @F indBy(id =  "BTN_user Search_ewv UserAdmin_ 1")
  41           pr ivate WebE lement btn ModifyUser Search;
  42           
  43           @F indBy(id =  "BTN_user Clear_ewvU serAdmin_1 ")
  44           pr ivate WebE lement btn ModifyUser Reset;
  45           
  46           @F indBy(xpat h = "//*[@ id='TBL_th eTable_tab le_1']/tbo dy/tr/td[1 1]/button" )
  47           pr ivate WebE lement btn ModifyUser ResultsMod ify;
  48           
  49           @F indBy(xpat h = "//*[@ id='TBL_th eTable_tab le_1']/tbo dy/tr/td")
  50           pr ivate List <WebElemen t> modifyU serResults ;
  51           
  52           
  53           @F indBy(id =  "IPT_edit Domain_use rAdmin_1")
  54           pr ivate WebE lement inp utModifyDo main;
  55           
  56           @F indBy(id =  "IPT_edit LastName_u serAdmin_1 ")
  57           pr ivate WebE lement inp utModifyLa stName;
  58           
  59           @F indBy(id =  "IPT_edit FirstName_ userAdmin_ 1")
  60           pr ivate WebE lement inp utModifyFi rstName;
  61           
  62           @F indBy(id =  "IPT_edit UserId_use rAdmin_1")
  63           pr ivate WebE lement inp utModifyPh one;
  64           
  65           @F indBy(id =  "IPT_edit email_user Admin_1")
  66           pr ivate WebE lement inp utModifyEm ail;
  67           
  68           @F indBy(id =  "BTN_edit Button_use rAdmin_1")
  69           pr ivate WebE lement btn ModifyUser ;
  70           
  71           @F indBy(xpat h = "//*[@ id='FRM_ed itUser_use rAdmin_1'] /div[2]/la bel")
  72           pr ivate WebE lement cbx MakeAdm;
  73           
  74           @F indBy(xpat h = "//*[@ id='FRM_ed itUser_use rAdmin_1'] /div[3]/la bel")
  75           pr ivate WebE lement cbx StatusAct;
  76           
  77           
  78           
  79   //Modify U sers Tab
  80           pu blic void  tabClickMo difyUser()  throws In terruptedE xception{
  81   //               wait  = new Web DriverWait (driver, 1 0);
  82   //               wait .until(Exp ectedCondi tions.elem entToBeCli ckable(tab ModifyUser s)).click( );
  83                    Thre ad.sleep(1 000);
  84           }
  85           
  86  
  87            p ublic List <String> g etListUser sFromTable (){
  88                     btn ModifyClic k();
  89                    // i nputEnterU serToModif y(user);
  90                    List <String> l ist = new  ArrayList< String>();
  91                    for( WebElement  item: mod ifyUserRes ults){
  92                             list.a dd(item.ge tText());
  93                    }
  94                    list .remove(li st.size()- 1);
  95                //  Syst em.out.pri ntln(list) ;
  96                    retu rn list;
  97                }
  98           
  99    
  100       public  void tabA dminClick( ){
  101           wa it.until(E xpectedCon ditions.vi sibilityOf (tabModify Users)).cl ick();
  102       }
  103       
  104       public  void inpu tEnterUser ToModify(S tring user ){
  105           Sy stem.out.p rintln("us er");
  106           in putModifyU ser.clear( );
  107           in putModifyU ser.sendKe ys(user);
  108           bt nModifyUse rSearch.cl ick();
  109       }
  110           
  111       
  112       public  void btnR esetClick( ){
  113           bt nModifyUse rReset.cli ck();
  114       }
  115       
  116       public  void btnM odifyClick (){
  117           wa it.until(E xpectedCon ditions.el ementToBeC lickable(b tnModifyUs erResultsM odify)).cl ick();
  118       }
  119       
  120       public  List<Stri ng> getMod ifyUserDat aFromTable (){
  121           Li st<String>  list = ne w ArrayLis t<String>( );
  122           fo r(WebEleme nt item: m odifyUserR esults){
  123                    list .add(item. getText()) ;
  124           }
  125           li st.remove( list.size( )-1);
  126       //  Sy stem.out.p rintln(lis t);
  127           re turn list;
  128       }
  129       
  130    //Create  a random d ata and en ter it int o Modify F ields and  array
  131       public  List<Stri ng> setMod ifyUserDat a(){
  132           Ra ndom rando m = new Ra ndom();
  133           in t randNumb er = rando m.nextInt( 10000) + 1 ;
  134             String use rName = " AI ";
  135           St ring domai n = "testD omain" + r andNumber;
  136           St ring lastN ame = "tes tLastName"  + randNum ber;
  137           St ring first Name = "te stFirstNAm e" + randN umber;
  138           St ring phone Number = I nteger.toS tring(rand Number);
  139           St ring email  = "test@t est.test"  + randNumb er;
  140           
  141           St ring expor t = "No";
  142           St ring edit  = "No";
  143           St ring admin  = "Yes";
  144           St ring statu s = "Activ e";
  145           
  146   //      if (cbxStatus Act.isSele cted()) { 
  147   //               cbxS tatusAct.c lick(); 
  148   //                  s tatus = "I nactive";
  149   //               }
  150   //      el se { 
  151   //               cbxS tatusAct.c lick(); 
  152   //               stat us = "Acti ve";
  153   //               }
  154   //    
  155   //      
  156   //      if (cbxMakeAd m.isSelect ed()) { 
  157   //               cbxM akeAdm.cli ck(); 
  158   //               admi n = "No";  }
  159   //      el se {
  160   //                cbx MakeAdm.cl ick(); 
  161   //               admi n = "Yes";  }
  162           
  163           
  164           Li st<String>  list = ne w ArrayLis t<String>( );
  165           li st.add(use rName);
  166           li st.add(dom ain);
  167           li st.add(las tName);
  168           li st.add(fir stName);
  169           li st.add(pho neNumber);
  170           li st.add(ema il);
  171           li st.add(sta tus);
  172           li st.add(exp ort);
  173           li st.add(edi t);
  174           li st.add(adm in);
  175           
  176           
  177           in putModifyD omain.clea r();
  178           in putModifyD omain.send Keys(domai n);
  179           in putModifyL astName.cl ear();
  180           in putModifyL astName.se ndKeys(las tName);
  181           in putModifyF irstName.c lear();
  182           in putModifyF irstName.s endKeys(fi rstName);
  183           in putModifyP hone.clear ();
  184           in putModifyP hone.sendK eys(phoneN umber);
  185           in putModifyE mail.clear ();
  186           in putModifyE mail.sendK eys(email) ;
  187           bt nModifyUse r.click();
  188           
  189           re turn list;
  190       }
  191       
  192   }