Professional Documents
Culture Documents
FYP Report1111 Repaired
FYP Report1111 Repaired
Fall-2021
Supervised By
Mr. Salman Ahmed
1
Capital University of Science and Technology, Islamabad Department of Computer Science
Submission Form for Final-Year
PROJECT REPORT
NUMBER OF
Version V 2.0 MEMBERS
3
MEMBERS’ SIGNATURES
2
Capital University of Science and Technology, Islamabad Department of Computer Science
DECLARATION
We, hereby, declare that “No portion of the work referred to, in this project has been
submitted in support of an application for another degree or qualification of this or any
other university/institute or other institution of learning”. It is further declared that this
undergraduate project, neither as a whole nor as a part there of has been copied out from
any sources, wherever references have been provided.
MEMBERS’ SIGNATURES
3
Capital University of Science and Technology, Islamabad Department of Computer Science
Table of Contents
Contents
Chapter 1 ........................................................................................................................ 8
Introduction ..................................................................................................................... 8
1.1. Project Introduction ............................................................................................ 8
1.2. Existing Example / Solution .............................................................................. 12
1.3. Business Scope ............................................................................................... 12
1.4. Useful Tools and Technologies ........................................................................ 13
In this project we will be using Visual Code, React JS and Laravel. .......................... 13
1.5. Project Work Break Down ................................................................................ 14
1.6. Project Time Line ............................................................................................. 15
Chapter 2 ...................................................................................................................... 16
Requirement Specification and Analysis ....................................................................... 16
2.1. Functional Requirements .................................................................................... 16
2.2. Non-Functional Requirements ............................................................................ 17
2.3. Selected Functional Requirements .................................................................. 18
2.4. System Use Case Modeling ............................................................................. 19
2.5. Use Case Descriptions: .................................................................................... 21
2.6. System Sequence diagrams ............................................................................ 42
2.7. Domain Model .................................................................................................. 57
Chapter 3 ...................................................................................................................... 58
System Design .............................................................................................................. 58
3.1. Software Architecture ....................................................................................... 59
3.2. Class Diagram.................................................................................................. 60
3.3. Sequence Diagram .......................................................................................... 61
3.4. Entity Relationship Diagram ............................................................................... 78
3.5. User Interface Design ...................................................................................... 79
4
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 4 ...................................................................................................................... 83
Software Development .................................................................................................. 83
4.1. Coding Standards ............................................................................................... 83
4.1.1. Indentation................................................................................................................................ 83
4.1.2. Declaration ................................................................................................................................ 83
4.1.3 Statement Standards ................................................................................................................. 83
4.1.4 Naming Convention ................................................................................................................... 84
4.2. Development Environment ............................................................................... 84
4.3. Database Management System.......................................................................... 85
4.4. Software Description ........................................................................................ 85
Chapter 5 .................................................................................................................... 100
Software Testing ......................................................................................................... 100
5.1. Testing Methodology ...................................................................................... 100
5.2. Testing Environment ......................................................................................... 100
5.3. Test Cases........................................................................................................ 100
5.3.1 Admin Log in...................................................................................................................... 100
5.3.2 Admin Add Vehicle ............................................................................................................ 101
5.3.3 Admin Update Vehicle ...................................................................................................... 102
5.3.4 Admin Delete Vehicle:....................................................................................................... 102
5.3.5 Admin Add Customer ........................................................................................................ 103
5.3.6 Admin Update Customer ......................................................................................................... 103
5
Capital University of Science and Technology, Islamabad Department of Computer Science
List of Figures
7
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 1
Introduction
This chapter provides a brief summary of our project scope, project specification, a
comparison study with the available existing solutions and existing tools and
technologies may be used for the development of this vehicle management system.
This chapter also includes a project work breakdown structure and a proposed timeline.
8
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 1 is about the term and conditions of our customer for their customers:
10
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 4 is about terms and conditions for their customers:
Figure 3.Rules
Same like this system other systems are also facing such type of problems and
the customers are also facing different types of problems which are given below:
Transport facility is a matter of headache for those people who do not have any
personal transport. On occasions like wedding, vacation and tour outside city and on
many other situations they feel the necessity of a vehicle to sort out the problems. So if it
is possible to design or develop a web based application for availing transport whenever
and wherever possible, then it will be beneficial for both renter and transport provider.
Now a days, by some clicks only, we can get whatever you want at home. We already
know about the online shopping, e-banking etc Similarly, The Al-Qaim vehicle
management system is the online facility to book cars online within few clicks only. Some
people cannot afford to have a car, for those people this system becomes very helpful.
11
Capital University of Science and Technology, Islamabad Department of Computer Science
This system includes various cars, as per the customer order and comfort, it place their
orders. For travelling a long distance, booking can be done also by this system.
Visual Code
Laravel
13
Capital University of Science and Technology, Islamabad Department of Computer Science
1.5. Project Work Break Down
The project breaks down structure show the complete project divided into sub tasks
and given each subtask to different members.
Figure 4 is about project work breakdown:
14
Capital University of Science and Technology, Islamabad Department of Computer Science
1.6. Project Time Line
Figure 5 is about project time line:
15
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 2
17
Capital University of Science and Technology, Islamabad Department of Computer Science
2.3. Selected Functional Requirements
Table 6 is about selected functional requirements:
Table 6.Selected Functional Requirements
18
Capital University of Science and Technology, Islamabad Department of Computer Science
2.4. System Use Case Modeling
Use case of the overall system in which graphic depiction of the interactions among
the elements of a system and the relationships between and among the actors (admin,
customers & system) and the figure are given below:
19
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 7 is the use case diagram for customer:
20
Capital University of Science and Technology, Islamabad Department of Computer Science
2.5. Use Case Descriptions:
Table 7 is the admin login use case description:
Table 7.Use case description for admin login
Actors: Admin
21
Capital University of Science and Technology, Islamabad Department of Computer Science
Table 8 is the accept reservation use case description:
Table 8.Accept Reservation
Actors: Admin
Alternative Flows: The reservation will on pending until admin accepts it.
22
Capital University of Science and Technology, Islamabad Department of Computer Science
Table 9 is for reject reservation use case description:
Table 9.Reject Reservation
Actors: Admin
23
Capital University of Science and Technology, Islamabad Department of Computer Science
Table 10 is for admin add new customer use case description:
Table 10.Add Customer
Actors: Admin
24
Capital University of Science and Technology, Islamabad Department of Computer Science
Exceptions: Customer already exist in system.
Actors: Admin
25
Capital University of Science and Technology, Islamabad Department of Computer Science
Table 10 is for admin disable customer details use case description:
Table 12.Disable Customer
Actors: Admin
26
Capital University of Science and Technology, Islamabad Department of Computer Science
Table 13 is for adding new vehicle detail use case description:
Table 13.Add Vehicle
Actors: Admin
27
Capital University of Science and Technology, Islamabad Department of Computer Science
Table 14 is for updating vehicle details use case description:
Table 14.Update Vehicle
Actors: Admin
28
Capital University of Science and Technology, Islamabad Department of Computer Science
Table 15 is for delete vehicle use case description:
Table 15.Delete Vehicle
Actors: Admin
29
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 16 is about track damages use case description:
Table 16.Track Damages
Name:
Actors: Admin
30
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 17 is about logout admin use case description:
Table 17.Admin Logout
Actors: Admin
31
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 18 is about register customer use case description:
Table 18.Register
Actors: Customer
Internet fluctuation.
32
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 19 is about login admin use case description:
Table 19.Customer Login
Actors: Customer
. 5. System login to
customer’s panel.
33
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 20 is about reserve vehicle use case description:
Table 20.Reserve Vehicle
Name:
Actors: Customer
34
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 21 is about update reservation details use case description:
Table 21.Update Reservation
Name:
Actors: Customer
Alternative Flows: Enter empty field and system didn’t update these details.
35
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 22 is about check reservation use case description:
Table 22.Check reservation
Name:
Actors: Customer
36
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 23 is about check reservation use case description:
Table 23.Search Vehicle
Name:
Actors: Customer
37
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 24 is about customer logout use case description:
Table 24.Customer Logout
Actors: Customer.
38
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 25 is about system maintenance alerts use case description:
Table 25.Maintenance Alert
Name:
Actors: System
b. Battery voltage.
39
Capital University of Science and Technology, Islamabad Department of Computer Science
Exceptions: Unable to get data about the maintenance of the vehicle.
Name:
Actors: System.
Trigger: N/A
Exceptions: N/A
40
Capital University of Science and Technology, Islamabad Department of Computer Science
The table 27 is about system maintenance alerts use case description:
Table 27.Show Feedback
Name:
Actors: System
Trigger: N/A
41
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6. System Sequence diagrams
A system sequence diagram represents the sequence in which different
components of the system work to achieve a goal.
42
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.2. Admin Accept Reservation:
Figure 10 shows the acceptance of reservation of vehicle.
43
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.3. Admin Reject Reservation:
Figure 11 shows the rejection of reservation of vehicle.
44
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.4. Admin Add Customer:
Figure 12 shows the registration of new customer by the ADMIN.
45
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.5. Admin Update Customer:
Figure 13 shows the update of customer by the ADMIN.
46
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.6. Admin Disable Customer:
Figure 14 shows how admin disable the customer.
48
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.10. Admin Track Damages:
Figure 18 shows how admin tract damages of the vehicle.
49
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.12. Customer Register:
Figure 20 shows the registration of customer.
50
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.13. Customer (Login):
Figure 21 shows login in of customer in the system.
51
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.14. Customer Reserve Vehicle:
Figure 22 shows the reservation of vehicle by the customer.
52
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.15. Customer Update Reservation Detail:
Figure 23 shows the updating of vehicle by the customer.
53
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.17. Customer Search for Vehicle:
Figure 25 shows the searching of vehicle by the customer.
54
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.18. Customer (Logout):
Figure 26 shows the logging out of customer from the system.
55
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6.20. System Calculate Reservation Amount:
Figure 28 shows the calculation of total amount of reservation.
56
Capital University of Science and Technology, Islamabad Department of Computer Science
2.7. Domain Model
Figure 30 shows the domain model of the system.
57
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 3
System Design
The purpose of this chapter is to provide information that is complementary to the code.
Without an adequate design that delivers required function as well as quality attributes,
the project will fail. But communicating architecture to its stakeholders is as important
a job as creating it in the first place.
58
Capital University of Science and Technology, Islamabad Department of Computer Science
3.1. Software Architecture
Software architecture is decribed as the organization or structure of the system.
59
Capital University of Science and Technology, Islamabad Department of Computer Science
3.2. Class Diagram
Figure 22 shows the class diagram of the system.
60
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3. Sequence Diagram
Sequence diagrams, when used in conjunction with class diagrams; provide an
extremely effective communication mechanism.
61
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.2 Admin Logout:
62
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.3 Admin ADD Customer:
63
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.4 .Admin Update Customer:
64
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.5 .Admin delete Customer:
65
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.6 .Admin Accept Reservation:
66
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.7 .Admin Add Vehicle:
67
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.8 .Admin update Vehicle:
68
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.9 . Admin Delete Vehicle:
69
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.10 . Admin Reject Reservation:
70
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.11 . Admin track damages:
71
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.12 . Customer Login:
72
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.13 . Customer Reserve Vehicle:
Figure 45 shows the reservation of vehicle by the customer.
73
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.14 . Customer Check Reservation Detail:
Figure 46 shows the checking of details of reservation by the customer.
74
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.15 . Customer Update Reservation Detail:
Figure 47 shows the updating of vehicle by the customer.
75
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.16 Customer Delete Reservation:
Figure 48 shows the deletion of reservation by customer.
76
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3.17 Customer Logout:
77
Capital University of Science and Technology, Islamabad Department of Computer Science
3.4. Entity Relationship Diagram
This diagram/Figure 50 tells us that which entities are connected together and how their
attributes lies in our database.
78
Capital University of Science and Technology, Islamabad Department of Computer Science
3.5. User Interface Design
User Interface (UI) Design focuses on anticipating what users might need to do and
ensuring that the interface has elements that are easy to access, understand, and use
to facilitate those actions. UI brings together concepts from interaction design, visual
design, and information architecture.
79
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 52Add Customer
80
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 54. Add New Booking
81
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 56. Add New Car
82
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 4
Software Development
This chapter will provide the details about the coding standards that has been adopted during
implementation phase.
4.1.1. Indentation
Four spaces are used as the unit of indentation. The indentation pattern should be consistently
followed throughout.
4.1.2. Declaration
One declaration per line is used to enhance the clarity of code. The order and position of
declaration is as follows:
First the static/class variables are placed in the sequence: First public class variables,
protected, package/default level i.e., with no access modifier and then the private. As far as
possible static or class fields are explicitly instantiated.
Instance variables are placed in the sequence: First public instance variables, protected,
package level with no access modifier and then private. Next the class constructors are
declared.
Class methods are grouped by functionality rather than by scope or accessibility to make
reading and understanding the code easier.
Declarations for local variables are only at the beginning of blocks e.g. at the beginning of a
try/catch construct.
Visual Studio Code combines the simplicity of a source code editor with powerful
developer tooling, like IntelliSense code completion and debugging.
First and foremost, it is an editor that gets out of your way. The delightfully frictionless
edit-build-debug cycle means less time fiddling with your environment, and more time
executing on your ideas.
At its heart, Visual Studio Code features a lightning fast source code editor, perfect for
day-to-day use. With support for hundreds of languages, VS Code helps you be instantly
productive with syntax highlighting, bracket-matching, auto indentation, box-selection,
snippets, and more. Intuitive keyboard shortcuts, easy customization and community-
contributed keyboard shortcut mappings let you navigate your code with ease.
For serious coding, you'll often benefit from tools with more code understanding than just
blocks of text. Visual Studio Code includes built-in support for IntelliSense code
completion, rich semantic code understanding and navigation, and code refactoring. And
when the coding gets tough, the tough get debugging. Debugging is often the one feature
that developers miss most in a leaner coding experience, so we made it happen.
Visual Studio Code includes an interactive debugger, so you can step through source
code, inspect variables, view call stacks, and execute commands in the console. VS Code
also integrates with build and scripting tools to perform common tasks making everyday
84
Capital University of Science and Technology, Islamabad Department of Computer Science
workflows faster. VS Code has support for Git so you can work with source control without
leaving the editor including viewing pending changes diffs.
Visual Studio Code is an interactive IDE which we will use to code the application. Here
we will define different modules of the application. Each module will have its own set of
components on which the application is based. VS Code will also be used to implement
the API’s.
Basically here we will sign up the admin that will login to the system through a given
email and login and if these credentials are correct then he will go to the admin
panel/dashboard.
CODE
$validator=Validator::make($request->all(),[
'email'=> 'required|email',
'password'=> 'required|string|min:4'
]);
if($validator->fails()){
return response()->json($validator->errors(),422);
if(!$token=auth()->attempt($validator->validated())){
return response()->json(['error'=>'Unauthorized'],401);
return $this->createNewToken($token);
86
Capital University of Science and Technology, Islamabad Department of Computer Science
function createNewToken($token)
return response()->json([
'access_token'=>$token,
'token_type'=>'bearer',
'expires_in'=>auth()->factory()->getTTL()*60,
'user'=>auth()->user()
]);
Output
If admin will add wrong name or password then they will not get access on system and system
87
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 57. Admin Login
In this module Admin will get access on dashboard and will add new customer to the database.
CODE
$customer->first_name = $request->first_name;
$customer->last_name = $request->last_name;
$customer->email = $request->email;
$customer->password = Hash::make($request->password);
$customer->Dob = $request->Dob;
88
Capital University of Science and Technology, Islamabad Department of Computer Science
$customer->gender = $request->gender;
$customer->contact_number = $request->contact_number;
$customer->cnic = $request->cnic;
$customer->save();
return response()->json($customer);
Output
89
Capital University of Science and Technology, Islamabad Department of Computer Science
4.4.3. Admin Update Customer
In this module Admin will get access on dashboard and will update customer details to the
database.
CODE
$customer = Customer::find($id);
$customer->first_name = $request->first_name;
$customer->last_name = $request->last_name;
$customer->email = $request->email;
$customer->password = Hash::make($request->password);
$customer->Dob = $request->Dob;
$customer->gender = $request->gender;
$customer->contact_number = $request->contact_number;
$customer->cnic = $request->cnic;
$customer->update();
return response()->json($customer);
90
Capital University of Science and Technology, Islamabad Department of Computer Science
Output
In this module Admin will get access on dashboard and will delete customer using his default id
that is used as a primary key.
CODE
function deletebyid($id)
$customer = Customer::find($id);
$customer->delete();
return response()->json($customer);
91
Capital University of Science and Technology, Islamabad Department of Computer Science
4.4.5. Admin Add Vehicle
In this module Admin will get access on dashboard and will add new vehicle to the system.
CODE
$vehicle->veh_reg = $request->veh_reg;
$vehicle->veh_type = $request->veh_type;
$vehicle->chesis_no = $request->chesis_no;
$vehicle->company = $request->company;
$vehicle->veh_color = $request->veh_color;
$vehicle->veh_reg_date = $request->veh_reg_date;
$vehicle->veh_description = $request->veh_description;
if($request->hasfile('veh_photo')){
$file = $request->file('veh_photo');
$extention = $file->getClientOriginalExtension();
$filename = time().'.'.$extention;
$file->move('uploads/vehicles/',$filename);
$vehicle->veh_photo = $filename;
$vehicle->veh_available = $request->veh_available;
$vehicle->save();
92
Capital University of Science and Technology, Islamabad Department of Computer Science
return response()->json($vehicle);
Output
In this module Admin will get access on dashboard and will update the vehicle to the database
using the vehicle table id.
CODE
$vehicle = Vehicle::find($id);
$vehicle->veh_reg = $request->veh_reg;
93
Capital University of Science and Technology, Islamabad Department of Computer Science
$vehicle->veh_type = $request->veh_type;
$vehicle->chesis_no = $request->chesis_no;
$vehicle->company = $request->company;
$vehicle->veh_color = $request->veh_color;
$vehicle->veh_reg_date = $request->veh_reg_date;
$vehicle->veh_description = $request->veh_description;
if($request->hasfile('veh_photo')){
$destination = 'uploads/vehicles/'.$vehicle->veh_photo;
if(File::exists($destination))
File::delete($destination);
$file = $request->file('veh_photo');
$extention = $file->getClientOriginalExtension();
$filename = time().'.'.$extention;
$file->move('uploads/vehicles/',$filename);
$vehicle->veh_photo = $filename;
$vehicle->veh_available = $request->veh_available;
$vehicle->update();
return response()->json($vehicle);
94
Capital University of Science and Technology, Islamabad Department of Computer Science
}
In this module Admin will get access on dashboard and will delete the vehicle details to the
database.
CODE
function deletebyid($id)
$vehicle = Vehicle::find($id);
$destination = 'uploads/vehicles/'.$vehicle->veh_photo;
if(File::exists($destination))
File::delete($destination);
$vehicle->delete();
return response()->json($vehicle);
In this module Admin will get access on dashboard and will add new driver to the database.
CODE:
$driver->dr_name = $request->dr_name;
95
Capital University of Science and Technology, Islamabad Department of Computer Science
$driver->dr_join = $request->dr_join;
$driver->dr_mobile = $request->dr_mobile;
$driver->dr_licence = $request->dr_licence;
$driver->dr_licence_valid = $request->dr_licence_valid;
$driver->dr_address = $request->dr_address;
if($request->hasfile('dr_photo')){
$file = $request->file('dr_photo');
$extention = $file->getClientOriginalExtension();
$filename = time().'.'.$extention;
$file->move('uploads/drivers/',$filename);
$driver->dr_photo = $filename;
$driver->dr_available = $request->dr_available;
$driver->save();
return response()->json($driver);
In this module Admin will get access on dashboard and will update driver to the database using
driver id.
CODE
{
96
Capital University of Science and Technology, Islamabad Department of Computer Science
$driver = Driver::find($id);
$driver->dr_name = $request->dr_name;
$driver->dr_join = $request->dr_join;
$driver->dr_mobile = $request->dr_mobile;
$driver->dr_licence = $request->dr_licence;
$driver->dr_licence_valid = $request->dr_licence_valid;
$driver->dr_address = $request->dr_address;
if($request->hasfile('dr_photo')){
$destination = 'uploads/drivers/'.$driver->dr_photo;
if(File::exists($destination))
File::delete($destination);
$file = $request->file('dr_photo');
$extention = $file->getClientOriginalExtension();
$filename = time().'.'.$extention;
$file->move('uploads/drivers/',$filename);
$driver->dr_photo = $filename;
$driver->dr_available = $request->dr_available;
$driver->update();
97
Capital University of Science and Technology, Islamabad Department of Computer Science
return response()->json($driver);
Output
In this module Admin will get access on dashboard and will delete driver to the database using
driver id.
CODE:
function deletebyid($id)
$driver = Driver::find($id);
$destination = 'uploads/drivers/'.$driver->dr_photo;
98
Capital University of Science and Technology, Islamabad Department of Computer Science
if(File::exists($destination))
File::delete($destination);
$driver->delete();
return response()->json($driver);
In this module Admin will get access on dashboard and will be able to logout from the system
and redirected toward the sign in page.
99
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 5
Software Testing
This chapter provides a description about the adopted testing procedure. This includes the
selected testing methodology, test suite and the test results of the developed software.
100
Capital University of Science and Technology, Islamabad Department of Computer Science
Version:1 Test Type: Unit testing
Input:
Email= xyz@gmail.com
Password= 1 2 3 4 5
Expected Result: Match credentials in database and Login user into the system.
Input:
Vehicle _reg= xyz1234
Vehicle _type= Car, SUV etc.
Chesis_no= 12345xyz
Company= (Honda, Toyota etc.)
Vehicle color= (Black, White etc.)
Vehicle_Reg_date = yyyy-mm-dd
Vehicle -Description= xyz
Vehicle _Photo= Image link
Vehicle _Available= (o/I)
101
Capital University of Science and Technology, Islamabad Department of Computer Science
5.3.3 Admin Update Vehicle
Input:
Vehicle _reg= xyz1234
Vehicle _type= Car, SUV etc.
Chesis_no= 12345xyz
Company= (Honda, Toyota etc.)
Vehicle color= (Black, White etc.)
Vehicle_Reg_date = yyyy-mm-dd
Vehicle -Description= xyz
Vehicle _Photo= Image link
Vehicle _Available= (o/I)
Input:
Vehicle _ID =1234
102
Capital University of Science and Technology, Islamabad Department of Computer Science
5.3.5 Admin Add Customer
Input:
First Name= xyz
Last Name= xyz
CNIC= 1234-1234-1
Phone No= +1234567
Gender= (male/female)
DOB= yyyy-mm-dd
Email= xyz@gmail.com
Password= 1234
Input:
First Name= xyz
Last Name= xyz
CNIC= 1234-1234-1
Phone No= +1234567
Gender= (male/female)
DOB= yyyy-mm-dd
Email= xyz@gmail.com
Password= 1234
103
Capital University of Science and Technology, Islamabad Department of Computer Science
Expected Result: customer updated in database.
Input:
Customer ID= 1234
104
Capital University of Science and Technology, Islamabad Department of Computer Science
Input:
Driver name= xyz
Driver join date= (yyyy-mm-dd)
Drive mobile no= +1234567
Driver license no= 1234
Driver license valid= (yyyy-mm-dd)
Driver address=xyz123
Driver photo= image link
Driver available= (1/0)
Input:
Driver name= xyz
Driver join date= (yyyy-mm-dd)
Drive mobile no= +1234567
Driver license no= 1234
Driver license valid= (yyyy-mm-dd)
Driver address=xyz123
Driver photo= image link
Driver available= (1/0)=
105
Capital University of Science and Technology, Islamabad Department of Computer Science
5.3.10 Admin Delete Driver
Input:
Driver ID= 1234
Input:
Email= xyz@gmail.com
106
Capital University of Science and Technology, Islamabad Department of Computer Science