Commodity Search System For Online Shopping: Supervisor: Sir Shahbaz A. Siddiqui
Commodity Search System For Online Shopping: Supervisor: Sir Shahbaz A. Siddiqui
Commodity Search System For Online Shopping: Supervisor: Sir Shahbaz A. Siddiqui
1
NATIONAL UNIVERSITY OF COMPUTER & EMERGING SCIENCES (FAST-NU)
P r oj e c t T e a m
JeetashKumar 13k-2261
Kashif Ali 13k-2137
Bhagesh Kumar 14k-2265
Rakeshwar 14k-2802
2
DOCUMENT INFORMATION
Category Information
Customer NUCES-FAST
Project Title Commodity Search System For Online Shopping
Document FYP II Final Report
Document Version 1.0
Identifier CS-492 Final Report
Status Final
Shahbaz.A.Saddiqui ()
Approver(s) Shahbaz.A.Saddiqui
Issue Date 7th May 2018
3
ABSTRACT
In this project, we explore the possibility of creating a cross platform mobile application of
product search engine that is able to dynamically find commercial / E-commerce sites which are
operating in Pakistan and provide a list of websites on product review and prize for consumers
to choose the best deal. This commodity search system also track consumer price conditions,
the system will proactively notify consumers, and could assist consumers to search commodity
with historical prize information of commodity for consumers to decide. In addition, we consid-
er the application of Html Tidy, Stemmers and Web Crawling and Scrapping, and data mining
techniques in order to extract the relevant information from commercial websites.
4
Table of Contents
CHAPTER 1 Introduction 7
1.1 Need for Product ……………………………………………………………………………………………………………………..7
1.2 Associated CS Problems …………………………………………………………………………………………………………..7
1.3 Benefits to Users ……………………………………………………………………………………………………………………..7
1.4 Gap Analysis with existing solution) ………………………………………………………………………………………..7
5
CHAPTER 5 Testing 21
5.1 Unit Testing ……………………………………………………………………………………………………………………………..21
5.2 Integration Testing …………………………………………………………………………………………………………………..21
5.3 System Testing …………………………………………………………………………………………………………………………21
5.4 Smoke Testing ………………………………………………………………………………………………………………………….22
6
1. Introduction:
1.2 CS Issues:
Reusability and User interface can be the issues. Issue of Reusability is resolves because the application
is established in generalized way so that its source code can be used further in other applications as
well. As for interface we will provide a simple and easy to learn interface,so that user of the mobile ap-
plication would learn easily and fulfill his desires.
7
2. Requirements Analysis
2.1 Functional Requirements:
2.1.1 Authentication:
The user will first have to register or sign-up to create a profile on the system and then will be author-
ized login access through email id and password.
User will be allowed to search for a product by the search bar. And recent activities would be shown on
screen.
Product, searched by the user will be searched in the database if it is searched recently.
Compare the price of the product and give the result by returning the product with the feasible rate on
one of the plate form. Where data base is updated via RSS feeds. So that user must have the updated
price of the product.
2.2.1.2 Extendibility:
This application should be extensible to support multiple platforms ios windows and android.
8
There are no safety requirements from the perspective of user for this app because this app only com-
pares the products. Indeed it necessary to secure the web service. Flags can be implemented for this
issue.
User Interaction with existing web projects leading to Human Computations to interpret results
identifying issues helping in defining the authenticity and priority levels of the product..
Online commodity search system is used for the validating prices of the product and notifying users
regarding report status and updates(future).
RSS feeds to get the updated values of the product from different plate forms.
Web service is used for the communicating different clients and integration of clients.
Searched product saved in the database as well so, that whenever user comes and ask for same prod-
uct, he gets the output even more quickly.
9
3 Design Details
3.1 Technologies Used:
We used cross platform technology xamarin.
Figure 3.1
Components:
• User Interface: The mobile interface for searching and viewing the product of desire.
• Web Service: A component for communicating the different clients and their integration of Programs.
• RSS Feeds: The technology for gaining the updated information (price of the product in our project ) .
• Data Model: The classes needed to organize users, Tasks, Profiles, products etc.
• Data Storage: The interface for storing, importing and exporting the data model and raw collected.
10
3.3 Context Diagram
11
3.4.2 State Diagram (Login)
12
3.5 Sequence Diagram
3.5.1 Registration
13
3.5.2 Login
14
3.5.4 System Sequence Diagram
15
3.7 Data Dictionary (Non-Normalized Versions)
The purpose of data dictionary is to show tables their columns with relations i.e. primary and foreign
keys. We are providing data dictionary in the form of relational tables, in which every table is specified
with primary and foreign keys.
User
Product
16
updatedproduct(bridgetable)
email INT,
phoneno. INT,
);
17
CREATE TABLE producy
);
);
);
18
FOREIGN KEY (u_pid) REFERENCES updatae_product(u_pid),
);
19
4. Implementation Details
4.1 Choice of development tools
We used Xamarin forms to develop cross platform apps for android, iOS and windows using .net frame-
work and C#, visual studio 2017 for developing web service using REST architecture.
20
5. Testing
5.1 Unit Testing
Definition:
Unit Test consists of testing individual programs or subroutines as they are written instead of testing the
entire system after it has been written. The testing of the smaller building blocks is done first and then
these blocks are combined and tested. Unit testing means each function independently to verify correct
processing in a stand-alone environment.
Participants:
Methodology:
a. Initial Unit Test were conducted by the developers after every work package or unit the functionality
of the web and cross plate form Xamarin forms plate form is being tested by the developers.
b. Later it will be manually tested by the team and also the volunteers.
Definition:
Integration testing (Sometimes called integration and testing, abbreviated I&T) is the phasein software
testing in which individual software modules are combined and tested as agroup. It occurs after unit
testing and before validation testing. The cross plate form application‘sprograms were integrated for the
desirable application.
Participants:
Methodology:
a. Initial testing was done by developers and manual testing was followed.
Definition:
Participants:
21
Methodology:
a. After the completion of whole code the overall functionalities of the system weretested that it fulfills
all the requirements. Agile methodology was used.
In the computer programming and software testing, smoke testing (also confidencetesting, sanity test-
ing) is preliminary testing to reveal simple failures severe enough to (forexample) reject a prospective
software release.
Participants:
Methodology:
a. After the completion of the whole code the main functionalities of the system weretested. Agile
methodology was used.
22
6. Output Of Product
Login
Sign Up
23
ABOUT US
24
Search Product
25
Display Product and Price
26
27
7. Code
7.1 RSS FEED:
RSS stands for Rich side summary originally RDF site summary, often it is Really Simple Syndication is a
type of web feed through which we get the updated values from different plate form. In our case we get
updated values of the product that is a user of the application going to buy.
A web feed is also called channel, feed, RSS, which includes full or summarized metadata like publishing
date , and authors name , title , link description.
Both JSON and XML formats are used via RSS. But XML is used much more as compare to JSON. Because
of the huge amount of data, and its self tags properties which can easily be connected to data-
base/Azure at run time.
In this mentioned class of RSSItemViewModel , It goes for url of feeds , where the feeds are present ,
program goes to that link , loads the program in to its memory and show the feeds on the screen in the
xml (serialized) format.
.Xaml File
28
This class is for the UI in xamarinforms , where attributes are used with Binding property of xamarin
forms . Which helps to user to play with application easily and patiently.
Libraries :
Web Service :
The whole system works under the MVVM (model view, View Model) paradigm . The purpose of estab-
lishing the web service is to communicating and integrating different services/clients.
REST protocol is being used as the this is mobile application and data will be transferred less .
29
Services: Actual tasks that are going to be performed.
30
8. Conclusion
8.1 Limitations of the system
Software constraints
Hardware constraints
Software will work on only those devices which support the iOS, windows and android operating sys-
tems.
Cultural constraints
Legal constraints
This application will be concerning with data provided by the ecommerce websites.
User constraints
This app is developed for those users who could operate a normal smart phone application.
8.3. Conclusion:
While doing online shopping people search to buy good product with minimum cost. The objective of
this project to save the time of user which the customer consumes in searching the appropriate product
on different websites in Pakistan, giving the one platform to search and shop from different online
shopping stores/websites. Another objective is that to save the user’s money by giving path of appropri-
ate minimum price of the product. This application gives the single platform to user to search the prod-
ucts from different websites, then compare the price of product searched and show an appropriate
product with lowest price.
This application would be operating on different operating system like windows, android and iOS smart
phones .This application needs internet for operation.
31
References
https://www2.warwick.ac.uk/fac/soc/economics/research/workingpapers/2015/twerp_1056b_ronayne
.pdf
https://www.researchgate.net/publication/301405449_A_commodity_search_system_for_online_shop
ping_based_on_ontology_and_web_mining
https://www.webharvy.com/articles/what-is-web-scraping.html
https://medium.freecodecamp.org/how-to-scrape-websites-with-python-and-beautifulsoup-
5946935d93fe
https://www.pricehunter.co.uk
32
33