Software engineering due Feb7th19:00

profiledesbar
SWE482_GP41.zip

ShippingApp/build.xml

Builds, tests, and runs the project ShippingApp.

ShippingApp/build/classes/.netbeans_automatic_build

ShippingApp/build/classes/.netbeans_update_resources

ShippingApp/build/classes/shippingapp/Customer.class

                package shippingapp;

                public 
                synchronized 
                class Customer 
                extends ShippingApp {
    
                public String 
                _fName;
    
                public String 
                _lName;
    
                public String 
                _pAddress;
    
                public String 
                _city;
    
                public String 
                _state;
    
                public String 
                _zip;
    javax.swing.JFrame 
                frame;
    
                public void Customer();
    
                public void 
                setfName(String);
    
                public void 
                setlName(String);
    
                public void 
                setpAddress(String);
    
                public void 
                setcity(String);
    
                public void 
                setstate(String);
    
                public void 
                setzip(String);
    
                public String 
                getfName();
    
                public String 
                getlName();
    
                public String 
                getpAddress();
    
                public String 
                getcity();
    
                public String 
                getstate();
    
                public String 
                getzip();
    
                public void 
                customerInfo();
}

            

ShippingApp/build/classes/shippingapp/Order.class

                package shippingapp;

                public 
                synchronized 
                class Order 
                extends ShippingApp {
    int 
                orderID;
    double 
                orderTotal;
    String 
                orderStatus;
    String 
                paymentStatus;
    String 
                item;
    double 
                itemPrice;
    int 
                itemQuantity;
    int 
                customerID;
    String 
                orderCarrier;
    String 
                orderShipper;
    String 
                PS;
    String[] 
                carrier;
    String[] 
                shipper;
    
                public void Order();
    
                public void 
                setOrderID(int);
    
                public void 
                setItemQuantity(int);
    
                public void 
                setItemPrice(double);
    
                public void 
                setOrderTotal(double, int);
    
                public void 
                setItem(String);
    
                public void 
                setShipper(String);
    
                public void 
                setCustomerID(int);
    
                public void 
                setOrderStatus(String);
    
                public void 
                setPaymentStaus(String);
    
                public void 
                setCarrier(String);
    
                public double 
                getOrderID();
    
                public double 
                getOrderTotal();
    
                public String 
                getItem();
    
                public String 
                getShipper();
    
                public int 
                getCustomerID();
    
                public String 
                getPaymentStatus();
    
                public String 
                getOrderStatus();
    
                public void 
                getOrderInfo();
}

            

ShippingApp/build/classes/shippingapp/Payment.class

                package shippingapp;

                public 
                synchronized 
                class Payment 
                extends Order {
    String 
                payStatus;
    int 
                paymentStatus;
    
                public void Payment();
    
                public void 
                setPaymentStatus(int);
    
                public void 
                setPayStatus(int);
    
                public String 
                getPayStatus();
}

            

ShippingApp/build/classes/shippingapp/ShipmentStatus.class

                package shippingapp;

                public 
                synchronized 
                class ShipmentStatus 
                extends Order {
    String 
                shipStatus;
    int 
                shippingStatus;
    
                public void ShipmentStatus();
    
                public String 
                getShipStatus();
    
                public void 
                setShippingStatus(int);
    
                public void 
                setShipStatus(String);
}

            

ShippingApp/build/classes/shippingapp/ShippingApp.class

                package shippingapp;

                public 
                synchronized 
                class ShippingApp {
    
                public void ShippingApp();
    
                public 
                static void 
                main(String[]);
}

            

ShippingApp/manifest.mf

Manifest-Version: 1.0 X-COMMENT: Main-Class will be added automatically by build

ShippingApp/nbproject/build-impl.xml

Must set src.dir Must set test.src.dir Must set build.dir Must set dist.dir Must set build.classes.dir Must set dist.javadoc.dir Must set build.test.classes.dir Must set build.test.results.dir Must set build.classes.excludes Must set dist.jar Must set javac.includes No tests executed. Must set JVM to use for profiling in profiler.info.jvm Must set profiler agent JVM arguments in profiler.info.jvmargs.agent Must select some files in the IDE or set javac.includes To run this application from the command line without Ant, try: java -jar "${dist.jar.resolved}" Must select one file in the IDE or set run.class Must select one file in the IDE or set run.class Must select one file in the IDE or set debug.class Must select one file in the IDE or set debug.class Must set fix.includes This target only works when run from inside the NetBeans IDE. Must select one file in the IDE or set profile.class This target only works when run from inside the NetBeans IDE. This target only works when run from inside the NetBeans IDE. This target only works when run from inside the NetBeans IDE. Must select one file in the IDE or set run.class Must select some files in the IDE or set test.includes Must select one file in the IDE or set run.class Must select one file in the IDE or set applet.url Must select some files in the IDE or set javac.includes Some tests failed; see details above. Must select some files in the IDE or set test.includes Some tests failed; see details above. Must select some files in the IDE or set test.class Must select some method in the IDE or set test.method Some tests failed; see details above. Must select one file in the IDE or set test.class Must select one file in the IDE or set test.class Must select some method in the IDE or set test.method Must select one file in the IDE or set applet.url Must select one file in the IDE or set applet.url

ShippingApp/nbproject/genfiles.properties

build.xml.data.CRC32=079b4c4d build.xml.script.CRC32=0ae1a6cd [email protected] # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=079b4c4d nbproject/build-impl.xml.script.CRC32=895fb401 nbproject/[email protected]

ShippingApp/nbproject/private/private.properties

compile.on.save=true user.properties.file=C:\\Users\\Phil\\AppData\\Roaming\\NetBeans\\8.2\\build.properties

ShippingApp/nbproject/private/private.xml

file:/C:/Users/Phil/Documents/NetBeansProjects/ShippingApp/src/shippingapp/Order.java file:/C:/Users/Phil/Documents/NetBeansProjects/ShippingApp/src/shippingapp/Customer.java file:/C:/Users/Phil/Documents/NetBeansProjects/ShippingApp/src/shippingapp/Payment.java file:/C:/Users/Phil/Documents/NetBeansProjects/ShippingApp/src/shippingapp/ShipmentStatus.java file:/C:/Users/Phil/Documents/NetBeansProjects/ShippingApp/src/shippingapp/ShippingApp.java

ShippingApp/nbproject/project.properties

annotation.processing.enabled=true annotation.processing.enabled.in.editor=false annotation.processing.processor.options= annotation.processing.processors.list= annotation.processing.run.all.processors=true annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output build.classes.dir=${build.dir}/classes build.classes.excludes=**/*.java,**/*.form # This directory is removed when the project is cleaned: build.dir=build build.generated.dir=${build.dir}/generated build.generated.sources.dir=${build.dir}/generated-sources # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes build.test.results.dir=${build.dir}/test/results # Uncomment to specify the preferred debugger connection transport: #debug.transport=dt_socket debug.classpath=\ ${run.classpath} debug.test.classpath=\ ${run.test.classpath} # Files in build.classes.dir which should be excluded from distribution jar dist.archive.excludes= # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/ShippingApp.jar dist.javadoc.dir=${dist.dir}/javadoc excludes= includes=** jar.compress=false javac.classpath= # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false javac.processorpath=\ ${javac.classpath} javac.source=1.8 javac.target=1.8 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir} javac.test.processorpath=\ ${javac.test.classpath} javadoc.additionalparam= javadoc.author=false javadoc.encoding=${source.encoding} javadoc.noindex=false javadoc.nonavbar=false javadoc.notree=false javadoc.private=false javadoc.splitindex=true javadoc.use=true javadoc.version=false javadoc.windowtitle= main.class=shippingapp.ShippingApp manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF mkdist.disabled=false platform.active=default_platform run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} # Space-separated list of JVM arguments used when running the project. # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. # To set system properties for unit tests define test-sys-prop.name=value: run.jvmargs= run.test.classpath=\ ${javac.test.classpath}:\ ${build.test.classes.dir} source.encoding=UTF-8 src.dir=src test.src.dir=test

ShippingApp/nbproject/project.xml

org.netbeans.modules.java.j2seproject ShippingApp

ShippingApp/src/shippingapp/Customer.java

ShippingApp/src/shippingapp/Customer.java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package  shippingapp ;

import  java . util . Arrays ;
import  javax . swing . JFrame ;
import  javax . swing . JOptionPane ;
import  java . util . Scanner ;
import  javax . swing . JPanel ;

/**
 *
 *  @author  Terelle Allen
 */
public   class   Customer   extends   ShippingApp
{
   
   
    
     public   String  _fName ;
     public   String  _lName ;
     public   String  _pAddress ;
     public   String  _city ;
     public   String  _state ;
     public   String  _zip ;
    
  
       JFrame  frame  =   new   JFrame ();          
           
           
           
           
            
    
     //Setters
     public   void  setfName ( String  fName )
     {
     this . _fName  =  fName ;
     }
    
     public   void  setlName ( String  lName )
     {
     this . _lName  =  lName ;
     }
    
     public   void  setpAddress ( String  pAddress )
     {
     this . _pAddress  =  pAddress ;
     }
    
     public   void  setcity ( String  city )
     {
     this . _city  =  city ;
     }
    
     public   void  setstate ( String  state )
     {
     this . _state  =  state ;
     }
    
     public   void  setzip ( String  zip )
     {
     this . _zip  =  zip ;
     }
    
    

//Getters
     public   String  getfName ()
     {
     return  _fName ;
     }
    
     public   String  getlName ()
     {
     return  _lName ;
     }
    
     public   String  getpAddress ()
     {
     return  _pAddress ;
     }
    
     public   String  getcity ()
     {
     return  _city ;
     }
    
     public   String  getstate ()
     {
     return  _state ;
     }
    
     public   String  getzip ()
     {
     return  _zip ;
     }
    
    
    
     public   void  customerInfo ()
     {
     String  fName  =   JOptionPane . showInputDialog ( frame ,   "Enter First Name" ,   "Shipping App" ,   JOptionPane . INFORMATION_MESSAGE );
    setfName ( fName );
     System . out . printf ( "'%s'\n" ,  fName );
    
     String  lName  =   JOptionPane . showInputDialog ( frame ,   "Pleas Enter Last Name" ,   "Shipping App" ,   JOptionPane . INFORMATION_MESSAGE );
    setlName ( lName );
     System . out . printf ( "'%s'\n" ,  lName );
    
     String  pAddress  =   JOptionPane . showInputDialog ( frame ,   "Pleas Enter Address" ,   "Shipping App" ,   JOptionPane . INFORMATION_MESSAGE );
    setpAddress ( pAddress );
     System . out . printf ( "'%s'\n" ,  pAddress );
    
     String  city  =   JOptionPane . showInputDialog ( frame ,   "Pleas Enter City" ,   "Shipping App" ,   JOptionPane . INFORMATION_MESSAGE );
    setcity ( city );
     System . out . printf ( "'%s'\n" ,  city );
    
     String  state  =   JOptionPane . showInputDialog ( frame ,   "Pleas Enter State" ,   "Shipping App" ,   JOptionPane . INFORMATION_MESSAGE );
    setstate ( state );
     System . out . printf ( "'%s'\n" ,  state );  
    
     String  zip  =   JOptionPane . showInputDialog ( frame ,   "Pleas Enter Zip Code" ,   "Shipping App" ,   JOptionPane . INFORMATION_MESSAGE );
    setzip ( zip );
     System . out . printf ( "'%s'\n" ,  zip );
    
  
     
   
  
     }
}

    
    
    
    
    
   
    
    
            


  
    
            
            
    

ShippingApp/src/shippingapp/Order.java

ShippingApp/src/shippingapp/Order.java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package  shippingapp ;

/**
 *
 *  @author  Phil
 */
import  java . util . Arrays ;
import  javax . swing . JFrame ;
import  javax . swing . JOptionPane ;

public   class   Order   extends   ShippingApp   {
     /*
    Creating a class to hold Order information including public variables getters and setters
    */
     /*
    Declaring variables
    */
     int  orderID ;
     double  orderTotal ;
     String  orderStatus ;
     String  paymentStatus ;
     String  item ;
     double  itemPrice ;
     int  itemQuantity ;
     int  customerID ;
     String  orderCarrier ;
     String  orderShipper ;
     String  PS ;
     String []  carrier  =   {   "UPS" ,   "FEDEX" ,   "DHL" ,   "AMAZON" ,   "SHIPPING DELUX"   };
     String []  shipper  =   {   "Microsoft" ,   "UBreakIFix" ,   "Best Buy" ,   "AMAZON" ,   "Samsung" ,   "Sprint" ,   "Sony" ,   "Art Van"    };  
    
    
/*
    Delcaring getters and setters
    */
     public   void  setOrderID ( int  x )
         {
          this . orderID  =  x ;
         }
    
     public   void  setItemQuantity ( int  x )
         {
          this . itemQuantity  =  x ;
         }
    
     public   void  setItemPrice ( double  x )
         {
          this . itemPrice  =  x ;
         }
     
     public   void  setOrderTotal ( double  itemPrice ,   int  itemQuantity )
         {
          this . orderTotal  =   this . itemPrice * this . itemQuantity ;
         }
    
     public   void  setItem ( String  x )
         {
          this . item  =  x ;
         }
    
     public   void  setShipper ( String  x )
         {
          this . orderShipper  =  x ;
         }
    
     public   void  setCustomerID ( int  x )
         {
          this . customerID  =  x ;
         }
     
     public   void  setOrderStatus ( String  x )
         {
          this . orderStatus  =  x ;
         }
    
     public   void  setPaymentStaus ( String  x )
         {
          this . paymentStatus  =  x ;
         }
    
     public   void  setCarrier ( String  x )
         {
            this . orderCarrier  =  x ;
         }       
      
     public   double  getOrderID ()
         {
         return   this . orderID ;
         }

     public   double  getOrderTotal ()
        {
         return   this . orderTotal ;
        }
     public   String  getItem ()
        {
         return   this . item ;
        }

     public   String  getShipper ()
        {
         return   this . orderShipper ;
        }
     public   int  getCustomerID ()
        {
         return   this . customerID ;
        }

     public   String  getPaymentStatus ()
        {
         return   this . paymentStatus ;
        }
     public   String  getOrderStatus ()
        {
         return   this . orderStatus ;
        }
    /*
      the following method creates a menu and dialog to assign values to the current instance of the Order class
      */
     public   void  getOrderInfo ()   
     {
         int  oc  = 1 ;
       while   ( oc  ==   1 )  
       {
           String  c  =   JOptionPane . showInputDialog ( "Which value would you like to enter?"   +   "\n1. Order ID"   +   "\n2. Customer ID"   +   "\n3. Item Ordered"   +   "\n4. Item Price"   +   "\n5 Item Quantity"   +   "\n6. Payment Status"   +   "\n7. Order Status"   +   "\n8. Shipper"   +   "\n9. Carrier"   +   "\n10. Exit" );  
           int  ac  =   Integer . parseInt ( c );
      
       switch   ( ac )   /* account entry selector */
       {
           case   1 :
               String  as  =   JOptionPane . showInputDialog ( "Enter Order ID" );
               int  asd  =   Integer . parseInt ( as );
               this . setOrderID ( asd );
               break ;
              
           case   2 :
               String  bs  =   JOptionPane . showInputDialog ( "Enter Value for Customer ID" );
               int  bsd  =   Integer . parseInt ( bs );
               this . setCustomerID ( bsd );
               break ;
          
           case   3 :
               String  ph  =   JOptionPane . showInputDialog ( "Enter Item Ordered" );
               this . setItem ( ph );
               break ;    
          
           case   4 :
              
               String  ip  =   JOptionPane . showInputDialog ( "Enter Price of Item" );
               double  ipd  =   Double . parseDouble ( ip );
               this . setItemPrice ( ipd );
               break ;
          
           case   5 :
               String  iq  =   JOptionPane . showInputDialog ( "Enter Quantity of Item" );
               int  iqd  =   Integer . parseInt ( iq );
               this . setItemQuantity ( iqd );
               break ;
              
           case   6 :
               String  ps  =   JOptionPane . showInputDialog ( "Enter Payment Status" );
               this . setPaymentStaus ( ps );
               break ;     
          
           case   7 :
               String  pp  =   JOptionPane . showInputDialog ( "Enter Order Status" );
               this . setOrderStatus ( pp );
              
               break ;     
         
           case   8 :
               JOptionPane . showInputDialog ( null ,   "Select Carrier" ,   "Shipping App" ,   JOptionPane . INFORMATION_MESSAGE ,   null ,  carrier ,  carrier [ 0 ]);
               this . setCarrier ( carrier [ 0 ]);
               break ;   
         
           case   9 :
               JOptionPane . showInputDialog ( null ,   "Select Carrier" ,   "Shipping App" ,   JOptionPane . INFORMATION_MESSAGE ,   null ,  shipper ,  shipper [ 0 ]);
               this . setShipper ( shipper [ 0 ]);
               break ;
              
           case   10 :
              setOrderTotal ( itemPrice ,  itemQuantity );
              oc  =   2 ;
               break ;
       }   
       }
     }
    
}

ShippingApp/src/shippingapp/Payment.java

ShippingApp/src/shippingapp/Payment.java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package  shippingapp ;

import  shippingapp . ShippingApp ;

/**
 *
 *  @author  Phil
 */
public   class   Payment   extends   Order {
    
     String  payStatus ;
     int  paymentStatus ;
    
     public   void  setPaymentStatus ( int  x )
      {
         this . paymentStatus  =  x ;
      }
     public   void  setPayStatus ( int  paymentStatus )
      {
         if   ( this . paymentStatus  ==   1 )
          {
             this . payStatus  =   "Accepted" ;
          }
         if   ( this . paymentStatus  ==   2 )
          {
             this . payStatus  =   "Pending" ;
          }
         if   ( this . paymentStatus  ==   3 )
          {
             this . payStatus  =   "Declined" ;
          }
      }
     public   String  getPayStatus ()
     {
         return   this . payStatus ;
     }
}

ShippingApp/src/shippingapp/ShipmentStatus.java

ShippingApp/src/shippingapp/ShipmentStatus.java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package  shippingapp ;

/**
 *
 *  @author  Phil
 */
public   class   ShipmentStatus   extends   Order {
    
     String  shipStatus ;
     int  shippingStatus ;
    
     public   String  getShipStatus ()
     {
         return   this . shipStatus ;
     }
    
     public   void  setShippingStatus ( int  x )
     {
         this . shippingStatus  =  x ;
     }
     public   void  setShipStatus ( String  x )
     {
         if   ( shippingStatus  ==   1 )
         {
            x  =   "Pending" ;
         }
         if   ( shippingStatus  ==   2 )
         {
            x  =   "Processing" ;
         }
         if   ( shippingStatus  ==   3 )
         {
            x  =   "Packaging" ;
         }
         if   ( shippingStatus  ==   4 )
         {
            x  =   "Shipped" ;
         }
         if   ( shippingStatus  ==   5 )
         {
            x  =   "Delivered" ;
         }
     }
}

ShippingApp/src/shippingapp/ShippingApp.java

ShippingApp/src/shippingapp/ShippingApp.java


package  shippingapp ;

import  java . awt . Color ;
import  java . awt . Graphics ;
import  java . awt . geom . GeneralPath ;
import  java . util . Scanner ;
import  javax . swing . JFrame ;
import  javax . swing . JOptionPane ;
import  javax . swing . JPanel ;


public   class   ShippingApp   {

    
     /**
     *  @param  args the command line arguments
     */
     public   static   void  main ( String []  args )  
     {
        Order []   OrderRecord   =   new   Order [ 3 ];   /* creating Order array*/
     /* Creating instances of each sub-class and setting intial values */     
        Order   Order1   =   new   Order ();
        Order   Order2   =   new   Order ();  
        Order   Order3   =   new   Order ();
       
        /* assigning array index*/
        OrderRecord [ 0 ]   =   Order1 ;
        OrderRecord [ 1 ]   =   Order2 ;
        OrderRecord [ 2 ]   =   Order3 ;
       
        Customer []   CustomerRecord   =   new   Customer [ 3 ];
        Customer  customer1  =   new   Customer ();
        Customer  customer2  =   new   Customer ();
        Customer  customer3  =   new   Customer ();
        

   
     
        int  un  =   0 ;
        int  pw  =   0 ;
  
   
    while   ( un  ==   0 )
       {
        String  username  =   JOptionPane . showInputDialog ( "Enter User Name" );        
      
   
         if   ( "Terelle" . equals ( username ))
        {
           un  =   1 ;
            break ;
        }
        if   ( "Phil" . equals ( username ))
        {
           un  =   1 ;
            break ;
        }
        if   ( "Destiny" . equals ( username ))
        {
           un  =   1 ;
            break ;
        }
         else
        {
            JOptionPane . showMessageDialog ( null ,   "Invalid Username" );
           un  =   0 ;
        }
       }
   
    while   ( pw  ==   0 )
       {
        String  password  =   JOptionPane . showInputDialog ( "Enter Password" );        
      
   
         if   ( "12345" . equals ( password ))
        {
           pw  =   1 ;
            break ;
        }
        if   ( "98765" . equals ( password ))
        {
           pw  =   1 ;
            break ;
        }
        if   ( "24680" . equals ( password ))
        {
           pw  =   1 ;
            break ;
        }
         else
        {
            JOptionPane . showMessageDialog ( null ,   "Invalid Password" );
           pw  =   0 ;
        }
       }
   
       
int  menu  =   0 ;          
 
while   ( menu  ==   0 )
    {  
      String  y  =   JOptionPane . showInputDialog ( "Which would you like to do?"   +   "\nPress 1 to enter Order information"   +   "\nPress 2 to enter Customer Information"   +   "\nPress 3 to View Current Order"   +   "\nPress 4 to Print Current Shipping Label"   +   "\nPress 5 to Proceed to next Order"   +   "\nPress 6 to Exit" );
      int  choice  =   Integer . parseInt ( y );
 
      while   ( choice  ==   1 )   /* entry counter */
        {
         String  oe  =   JOptionPane . showInputDialog ( "Which would you like to do?"   +   "\n Press 1 to Enter information for current order"   +   "\nPress 2 to Enter information for the next order" );  
         int  oec  =   Integer . parseInt ( oe );  
         if   ( oec  ==   1 )
                  {
                  Order1 . getOrderInfo ();
                 choice  =   3 ;     
                  }
          if   ( oec  ==   2 )
          {
              Order2 . getOrderInfo ();
             choice  =   32 ;
          }
        
        }   
      while   ( choice  ==   2 )   /* entry counter */
        {
         customer1 . customerInfo ();
         choice  =   9 ;
        }
      
      while   ( choice  ==   3 )
        {
          JOptionPane . showMessageDialog ( null ,   "Order Details"   +   "\n Order ID: "   +   Order1 . orderID  +   "\n Customer ID: "   +   Order1 . customerID  +   "\n Item Order: "   +   Order1 . item  +   "\nTotal Cost: $"   +   Order1 . orderTotal  +   "\nOrder Status: "   +   Order1 . orderStatus  +   "\nPayment Status: "   +   Order1 . paymentStatus  +   "\nCarrier: "   +   Order1 . orderCarrier  +   "\nShipper: "   +   Order1 . orderShipper );
         choice  =   9 ;
        }
     while   ( choice  ==   32 )
        {
          JOptionPane . showMessageDialog ( null ,   "Order Details"   +   "\n Order ID: "   +   Order2 . orderID  +   "\n Customer ID: "   +   Order2 . customerID  +   "\n Item Order: "   +   Order2 . item  +   "\nTotal Cost: $"   +   Order2 . orderTotal  +   "\nOrder Status: "   +   Order2 . orderStatus  +   "\nPayment Status: "   +   Order2 . paymentStatus  +   "\nCarrier: "   +   Order2 . orderCarrier  +   "\nShipper: "   +   Order2 . orderShipper );
         choice  =   9 ;
        }
     
      while   ( choice  ==   4 )
        {
          JOptionPane . showMessageDialog ( null ,   "Shipping Label"   +   "\n"   +  customer1 . _fName  +   " "   +  customer1 . _lName  +   "\n"   +  customer1 . _pAddress  +   "\n"   +  customer1 . _city  +   ", "   +  customer1 . _state  +   " "   +  customer1 . _zip );
          System . out . printf ( "'%s'\n" ,  customer1 . _fName  +   " "   +  customer1 . _lName +   "\n"   +  customer1 . _pAddress  +   "\n"   +  customer1 . _city  +   ", "   +  customer1 . _state  +   " "   +  customer1 . _zip );
         choice  =   9 ;
        }
        
      while   ( choice  ==   5 )
        {
                 
        }       
      while   ( choice  ==   6 )
        {
         menu  =   1 ;
        }
    
      while   ( choice  ==   9 )
        {  
         menu  =   0 ;
          break ;
        }
     
     }
   }
}
   
    
    
    
    
    
    
        
    
    
    
   
    
    

Test Case 1.docx

Test Case 1

Test Suite ID

TS002

Test Case ID

TC002

Test Case Summary

To verify that a shipment can be shipped and printed to label

Related Requirement

RS002

Prerequisites

1. User Name

2. Password

3. First Name

4. Last Name

5. Address

6. City

7. State

8. zip

9.

Test Procedure

1. Enter User Name

2. Enter Password

3. Enter First Name

4. Enter Last Name

5. Enter Address

6. Enter City

7. Enter State

8. Enter zip

9. Click on 4

10. Customer Info should show on screen ready for label

Test Data

1. User Name: Terelle

2. Password: 12345

3. First Name: Terelle

4. Last Name: Allen

5. Address: 12345 Main Road

6. City: Saginaw

7. State: MI

8. Zip: 30984

Expected Result

Customer Info should show on screen ready for label

Actual Result

Info appeared on screen ready to be transfer to label

Status

Success

Remarks

Created By

Terelle Allen

Date of Creation

1/14/2018

Executed By

Terelle Allen

Date of Execution

01/30/2018

Test Environment

· NetBeans

Test Case 2

Test Suite ID

TS003

Test Case ID

TC003

Test Case Summary

To verify that shipping information is logged in Database

Related Requirement

RS003

Prerequisites

1. Data

Test Procedure

1. Enter Customer Id

2. Enter First Name

3. Enter Last Name

4. Enter Address

5. Enter City

6. Enter State

7. Enter zip

8. Enter Carrier

9. Enter shipper

10. Go to SQL and check the database for record

Test Data

1. Enter: 12345

2. Enter: Terelle

3. Enter: Allen

4. Enter: 12345 Main Road

5. Enter: Saginaw

6. Enter: MI

7. Enter: 30984

8. Enter: UPS

9. Enter: Xbox

Expected Result

The record with the information provided should be in the Database

Actual Result

Record Received

Status

Unsuccessful

Remarks

Database not created.

Created By

Terelle Allen

Date of Creation

1/14/2018

Executed By

Terelle Allen

Date of Execution

1/30/2018

Test Environment

· NetBeans

· SQL Server

Test Case 3

Test Suite ID

TS004

Test Case ID

TC004

Test Case Summary

To verify that all of the data can be entered in the GUI’s

Related Requirement

RS004

Prerequisites

Data

Test Procedure

1. Enter User Name

2. Enter Password

3. Enter First Name

4. Enter Last Name

5. Enter Address

6. Enter City

7. Enter State

8. Enter zip

9. Enter Order ID

10. Enter Customer ID

11. Enter Order Total

12. Enter Order Status

13. Enter Payment Status

14. Enter Item Ordered

15. Pick Shipper

16. Pick Carrier

Test Data

1. Terelle

2. 12345

3. Terelle

4. Allen

5. 12345 Main Road

6. Saginaw

7. MI

8. 30984

9. 1

10. 78

11. 399

12. 399

13. 399

14. Xbox

15. UPS

16. Microsoft

Expected Result

The Data Should be entered with no problems

Actual Result

Data was entered and received

Status

Success

Remarks

Created By

Terelle Allen

Date of Creation

1/14/2018

Executed By

Terelle Allen

Date of Execution

1/30/2018

Test Environment

· NetBeans

Test Case 4

Test Suite ID

TS005

Test Case ID

TC005

Test Case Summary

To verify the Order Details and Current Order

Related Requirement

RS005

Prerequisites

Data

Test Procedure

1. Enter User Name

2. Enter Password

3. Press 1: Enter Order ID

4. Press 2: Enter Customer ID

5. Press 3: Enter Order Total

6. Press 4: Enter Order Status

7. Press 5: Enter Payments Status

8. Press 6: Enter Item Ordered

9. Press 7: Enter Shipper

10. Press 8: Enter Carrier

11. Then Press 9 to exit

Test Data

1. Terelle

2. 12345

3. 12

4. 14

5. 23.00

6. 23.00

7. 23.00

8. Phone Case

9. UBreakIFix

10. UPS

Expected Result

The GUI with the information provided should be populated

Actual Result

Information Received

Status

Success

Remarks

Created By

Terelle Allen

Date of Creation

1/14/2018

Executed By

Terelle Allen

Date of Execution

1/30/2018

Test Environment

· NetBeans

Test Case 5

Test Suite ID

TS001

Test Case ID

TC006

Test Case Summary

To verify that user has access

Related Requirement

RS006

Prerequisites

1. User Name

2. Password

Test Procedure

1. Enter Username

2. Enter Password

Test Data

First Test

1. User Name: Terelle

2. Password: 12345

Second Test

1. User Name: Phil

2. Password: 98765

Third Test

1. User Name: Destiny

2. Password: 24680

Expected Result

1. The system should give the user access to the application if all of the credentials checks out

Actual Result

1. Access Granted

Status

Success

Remarks

Created By

Terelle Allen

Date of Creation

1/14/2018

Executed By

Terelle Allen

Date of Execution

02/1/2018

Test Environment

· NetBeans

Test Case 6

Test Case ID

TC007

Test Case Summary

To verify that access is denied

Related Requirement

RS007

Prerequisites

3. User Name

4. Password

Test Procedure

3. Enter Username

4. Enter Password

Test Data

First Test

1. User Name: Terelle

2. Password: 12347

Second Test

3. User Name: Phil

4. Password: 98769

Third Test

3. User Name: Destiny

4. Password: 24682

Expected Result

2. The system should not give the user access to the application.

Actual Result

2. Access Denied

Status

Success

Remarks

Created By

Terelle Allen

Date of Creation

1/14/2018

Executed By

Terelle Allen

Date of Execution

02/1/2018

Test Environment

· NetBeans

Project Plan5.mpp

SWE482_GP4_ProgressReportWithScreenshots.docx

SWE482-1801A-01: Software Engineering Capstone II

With Noura Abbas

Group Project 4: Progress Summary

By Phillip Hart, Terelle Allen and Destiny Barrera

2/1/2018

This week has produced the most work product so far. For starters we shall cover coding. Username and password input dialogs with verification were added. Additional menus were added to allow a user to advance to subsequent orders and print labels for the current order. A dialog message confirms the information and a system print line command outputs the information in the same format. An option to proceed to the next order was also added to the first screen of the order entry menu. The order entry menu has been reorganized to make more logical sense, item quantity and price were added and the shipper and carrier selections were moved from the customer menu to the order menu in accordance with the design plans. The option to enter total price for the order was removed and that field on the order details is calculated from the item price and item quantity entries. Phillip Hart was responsible of all additional coding in this unit and this summary.

Test cases were written and the documentation is included in this work package. All the test cases were performed on the software and the results were recorded in the test case document. All testing related activities including creating executing and documenting the test cases was performed by Terelle Allen. In addition, Terelle was responsible updating the project schedule which is also included in this work document.

Destiny Barrera was responsible for all user documentation required for this unit.

Below are the screenshots of execution of the current revision.

image6.png

image7.png

image8.png

image9.png

image10.png

image11.png

image12.png

image13.png

image14.png

image15.png

image16.png

image17.png

image18.png

image19.png

image20.png

image21.png

image22.png

image23.png

image24.png

image1.png

image2.png

image3.png

image4.png

image5.png