0% found this document useful (0 votes)
4 views14 pages

Farmer

The Hybrid Mobile App Report details the development and testing of the Farmer App, including setup instructions, functionality issues encountered, and their resolutions. The testing report confirms the application's reliability, performance, and security, with successful results across various testing strategies. Additionally, a vulnerability analysis was conducted using Snyk, revealing some vulnerabilities with provided remediation advice.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views14 pages

Farmer

The Hybrid Mobile App Report details the development and testing of the Farmer App, including setup instructions, functionality issues encountered, and their resolutions. The testing report confirms the application's reliability, performance, and security, with successful results across various testing strategies. Additionally, a vulnerability analysis was conducted using Snyk, revealing some vulnerabilities with provided remediation advice.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Hybrid Mobile App Report

Farmer App

Saffar Subedi

12203212

Cqu university

Hybrid Mobile App Report


Contents

Instructions to Run the Application.......................................................................................................1


Functionality Problems and Resolutions................................................................................................2
Testing Report.......................................................................................................................................4
Security Testing and Vulnerability Analysis..........................................................................................5
Appendices............................................................................................................................................7

Table of Figures

Figure 1: Vulnerabilities Testing.............................................................................................................6


Figure 2: Testing Result..........................................................................................................................6

Instructions to Run the Application

Prerequisites:

We should have Node.js and npm installed on our computer. If not, we can
download and install them from the official Node.js website:
(https://nodejs.org/).
Additionally, we should ensure MongoDB is installed and running. If not, we
can download it from (https://www.mongodb.com/).

Setup Steps:
1. Opening the terminal or command prompt.
2. Clone the Project Repository:
//bash
git clone : https://github.com/Safar123
cd farmer-app
3. Install Dependencies:
//bash
npm install
4. Ensure MongoDB is running in the device.

Start the Application:


1. Navigate to the Project's Root Folder:
//bash
cd farmer-app
2. Start the Backend Server:
// bash
node index.js
Backend server is now running!
3. Access the Application:
We can access the application via API endpoints from Postman:
- Orders Endpoint: http://localhost:5000/orders
- Students Endpoint: http://localhost:5000/students

Functionality Problems and Resolutions:

During the development process, our team encountered specific challenges that
required resolution. Here are some of the issues faced and the corresponding
solutions implemented:

1. Problem: Images Not Displaying


- Issue: Certain product images failed to display correctly within the
application.
- Resolution: After investigation, we discovered incorrect file paths for
these images. We rectified the paths in the database to match the actual
file locations. Additionally, we optimized image sizes for faster loading,
ensuring seamless display.
2. Problem: Unresponsive Buttons
- Issue: Users reported unresponsive and non-clickable buttons in some
sections of the application.
- Resolution: A CSS issue causing an element overlap was identified.
Adjustments to the z-index property in the CSS resolved this problem.
Subsequently, all buttons became responsive, allowing users to interact as
intended.

3. Problem: Incorrect Data Rendering


- Issue: Data inconsistencies led to the display of incorrect information to
users.
- Resolution: We conducted a comprehensive review of the data source and
identified discrepancies in the data retrieval process. Misconfigurations in
the database query were corrected, ensuring accurate data retrieval and
rendering. Furthermore, robust data validation logic was implemented to
prevent future inconsistencies.

4. Problem: Slow Loading Times


- Issue: The application experienced sluggish loading times, particularly
when dealing with substantial datasets.
- Resolution: Optimization efforts were focused on the backend. Pagination
mechanisms were introduced to limit data sent to the frontend,
significantly enhancing loading times. Additionally, server-side caching
methods and database query optimizations were implemented,
contributing to improved overall performance.

5. Problem: Authentication Failures

- Issue: Users faced challenges while attempting to log in due to


authentication failures.
- Resolution: A misconfigured authentication middleware was identified as
the root cause. We corrected the configuration settings, rigorously testing
the authentication flow to ensure seamless user login experiences.
Testing Report:

In accordance with the project plan, our team diligently conducted a series of
tests on the application, focusing on minimal use cases for each testing strategy
to ensure efficiency given the time constraints. The results of our testing efforts
are detailed below, demonstrating the robustness and reliability of the
application.
1. Functionality Testing:
- Scenario: Verification of basic application functions.
- Result: All fundamental functionalities, including order creation, student
management, and data updates, performed seamlessly. No critical issues
were detected, indicating the application's stability and reliability.

2. User Interface (UI) Testing:


- Scenario: Assessment of UI responsiveness and user experience.
- Result: The UI displayed remarkable responsiveness across various
devices and screen sizes. Users could effortlessly navigate the
application, and all elements were visually appealing and correctly
positioned. The intuitive design enhances the overall user experience
significantly.

3. Performance Testing:
- Scenario: Evaluation of application response time under normal load.
- Result: The application demonstrated impressive response times, with the
majority of requests processed within the expected duration. Although
certain complex database queries exhibited minor delays, overall
performance met acceptable standards. Future updates will further
optimize these queries for enhanced efficiency.

4. Security Testing:
- Scenario: Identification of potential security vulnerabilities and data
protection assessment.
- Result: Our rigorous security testing revealed no major vulnerabilities.
The application boasts robust security measures, including data
encryption and secure authentication protocols. Regular security updates
and continuous monitoring will be implemented to maintain a secure
environment.

5. Compatibility Testing:
- Scenario: Validation of compatibility across various web browsers and
devices.
- Result: The application underwent successful testing on popular web
browsers (Chrome, Firefox, Safari) and major devices, including
desktops, tablets, and smartphones. No notable display or functionality
issues were identified, ensuring a seamless user experience regardless of
the platform used.
6. Database Integrity Testing:
- Scenario: Confirmation of data consistency and integrity within the
database.
- Result: Data integrity tests confirmed the accuracy and reliability of the
application's database operations. All records were consistently stored,
retrieved, and updated without any anomalies or inconsistencies. The
robustness of the data management system ensures a reliable foundation
for the application.

Security Testing and Vulnerability Analysis:

1. Upload API Server Code to GitHub:

The API server code has been successfully uploaded to GitHub. The
repository can be accessed at the following link:
https://github.com/Safar123/farmerAp

2. Vulnerability Analysis Using Snyk:

The API server code has been tested for vulnerabilities using Snyk.

3. Snyk Test Results:


The Snyk report highlighted vulnerabilities found in the code. Detailed
information about the vulnerabilities, including severity levels and
remediation advice, was provided.

4. Screenshots of Snyk Test Results:

Figure 1: Vulnerabilities Testing

Figure 2: Testing Result


App Screenshots
Appendices

You might also like