A UML diagram to illustrate the overall structure.
This section provides a step-by-step guide to generating outputs using the application.
Upon opening the application, the main screen appears. Select "Iniciar como Cliente" (Start as a Client).
Enter the provided username (jj.diazo1
) and password (amoDpo
) in the respective fields, then click "Iniciar Sesión" (Log In).
To initiate a reservation, click "Iniciar reserva" (Start Reservation).
Choose one of the available locations: "sede 0" or "sede 1." For ease of testing, these simplified names were used. Note the date format is YY/MM/DD (e.g., 2022/01/01 for January 1, 2022). Once the information is filled in, click "Aceptar" (Accept).
Select one of the two payment methods and enter your card number. The application has three bank accounts for testing:
- Account "10": Sufficient funds to complete the payment.
- Account "20": Insufficient funds, so the transaction is declined.
- Account "30": Account is blocked, payment cannot proceed.
Once the payment is completed, the receipt will be saved as a PDF in the "data" folder with the information you entered.
This section provides instructions on how to check vehicle availability in the application.
When opening the application, select "Iniciar como Cliente" (Start as a Client).
Enter the provided username and password, then click "Iniciar Sesión" (Log In).
To check vehicle availability, click "Ver Disponibilidad de Vehículos" (Check Vehicle Availability).
Select one of the two available locations: "sede 0" or "sede 1." It is recommended to use "sede 1," which has a wider variety of vehicles. Note the date format (YY/MM/DD).
This window shows all available vehicles at the selected location for the specified dates. You can scroll through the list using the arrows. You can also start a reservation from this window, which grants a 10% discount.
Once the reservation is completed, the rental price will reflect a 10% discount.
This section outlines the steps to create a new client account in the application.
Upon opening the application, select "Iniciar como Cliente" (Start as a Client).
Click "Crear Usuario Nuevo" (Create New User).
Enter the new client's information and click "Crear Cliente" (Create Client).
Now you can log in with the newly created username and password.
After logging in, you can access the client's menu.
This section explains the dynamic loading feature of the application.
Read the "MetodosDePago" text file and add a button for each class listed in the file.
Detect which button is clicked to initiate dynamic loading with the associated class.
Find the class by name, enter the necessary parameters, and create an instance of the corresponding class.
- Reservations and Vehicles: Implemented new invoice and PDF functionalities. Introduced vehicle files to facilitate testing.
- Menu Separation: Added two new locations, named "sede 0" and "sede 1" for easier testing. "Sede 1" has more cars and employees.
- New Classes in View: Introduced 5 new classes: CargaDinamica, Banco, MetodosDePago, MPayU, and MPayPal. These are visual components or connect to external entities.
The project has 4 main packages: logica
, control
, vista
, and pruebas
. The focus was on optimizing the reservation system by separating the client and employee applications into distinct frames within the vista
package.
Encountered issues with reservation tests due to tight coupling. Dynamic loading tests had 86% coverage and worked well, excluding a specific catch block deemed unnecessary to test.
Thank you for using our application.