Experiment Results - chrisdacel/Backend_EcoRisaralda GitHub Wiki

Hypothesis

The following hypothesis was proposed:

The web platform facilitates users in finding ecotourism sites within the municipalities of Risaralda in an efficient and accessible manner.

Tests Performed

To validate the hypothesis, a set of automated tests was executed, focused on verifying the correct functioning of the system.

The tests included:

  • Unit Tests:

Validation of individual components in both the backend (Laravel) and frontend (React), including models, relationships, interface components, and authentication logic.

  • Integration Tests:

Evaluation of communication between the frontend and backend through simulation of HTTP requests and API consumption.

  • Functional Tests:

Verification of complete workflows such as:

  • User registration

  • Login

  • Municipality visualization

  • Ecotourism site consultation

  • Interaction through comments and ratings

  • Stress Tests (academic environment):

Simulation of multiple users interacting simultaneously with the system during classroom sessions.

These tests allowed validation of the overall system behavior in real usage scenarios.

Collected Metrics

During the execution of the tests, the following results were obtained:

  • Execution time:
    7.72 seconds to complete the total execution of automated tests.

  • Simulated users:
    Approximately 86 users generated using User::factory(), including different roles (tourists, operators, and administrators).

  • Number of executed tests:
    86 automated tests.

  • Number of assertions:
    168 validations performed.

  • Success rate:
    100% of tests passed (86/86).

  • Errors found:
    0 errors in the final execution.

Conclusions

Based on the obtained results, it is concluded that:

  • The system functions correctly and meets the established requirements.
  • The platform allows users to find ecotourism sites efficiently.
  • The integration between frontend and backend is stable and reliable.
  • Core functionalities (registration, login, navigation, interaction) operate without failures.
  • The system demonstrates stable behavior even under simultaneous usage conditions in an academic environment.

Therefore, the proposed hypothesis is successfully validated.

Proposed Improvements

Although the system meets the established objectives, opportunities for improvement are identified for future versions:

  • Optimize loading times under high concurrency scenarios
  • Implement load testing using specialized tools (such as JMeter)
  • Incorporate interactive maps to enhance user experience
  • Add a reservation system or contact mechanism with tourism operators
  • Implement notification systems for interactions (comments, replies, etc.)
  • Improve the graphical interface (UI/UX) for a more intuitive experience