Professional Documents
Culture Documents
Submitted by:
Branch: Information Technology Roll No.: (Batch 2008-2012)
Submitted to:
ACKNOWLEDGEMENT
Success is to be measured not so much by the position that one has reached in life, but as by the obstacle which he has had to overcome while trying to succeed.
A study or a project of this volume can never be the outcome of a single person or just a mere group of dedicated students. We are indebted to our subject teacher Mr. Sandeep Upadhayay for being the epitome of guidance during the entire project. We are also thankful to Mr. Mammohan Sharma, HOD, Computer science Dept for their encouragement. Without their help this project would not have seen the light of day. We are happy to present a vote of thanks to them for their sincere advice and co-operation that they have lent us unconditionally.
Table of Contents
2
Introduction
LIST OF FIGURES
Fig: 1 user Herarchy ..........................7 Fig: 2 use case diagram for Registration....10 Fig: 3 use case diagram for User.................................11 Fig: 4 use case diagram for Visitor.........11 Fig: 5 use case diagram for Complaints......11 Fig: 6 use case diagram for Forum.........12 Fig: 7 use case diagram for Polling.....13 Fig: 8 Sequence diagram.....................14 Fig: 9 Activity Diagram..................16 Fig: 10 Class Diagram..............18 Fig: 11 DFD level-0..............................19 Fig: 12 DFD level-1.............................20 Fig: 13 E-R Diagram....21
In order to make the system maintainable and user friendly, the system would respond to any invalid entry or task.
1.3 Defination:
Term
Admin Complain User Complain Box Employee
Definition
Admin is the person who can manage all in the complains, forums and other features provided by the application. The text information posted by authorized citizen to get the proper solution through the related department. In this document the user entity specifically used only for the citizen who have his/her unique id. Collection of all the information about complains resides in database. Here employee is a municipal authority who is responsible for the complain of his/her department. Non government organizations which are activate in city problems and other activities this access is provided only to a single person for each organization. Status for organization and user is a term which shows weather the user is using his account or not.
NGO Status
1.5 References:
[IEEE] The applicable IEEE standards are published in IEEE Standards Collection, 2001edition. [PRESSMAN]The principal source of textbook material is Software Engineering: by ROGER S. PRESSMAN sixth edition For PhP tutorial http://www.phptutorial.info Wikipedia for various diagrams & informations methods http://www.wikipedia.org
The Active City Administration System has three active actors and one cooperating system. The user, municipal authority & administrator access the online database through the Internet. Any user or municipal authority communication with the system is through online web application. The Admin accesses the entire system directly. The division of the ACA System into four component parts, complaint/suggestion box ,discussion forum, online poll & guestbook.
2.2 Project Functions: This section outlines the use cases for each of the active user separately. The citizen, the and municipal authority have only one use case apiece while the admin is main actor in this system.
3. User Characteristics:
3.1 Admin:
6
Admin can create and update accounts for employees and provide them
access to the complain box of their departments. Admin can remove and create forums and update any information of the
ACA system. Admin can directly communicate with the user. Admin can publish any notifications on main page.
3.2
Authorities:
Authorities are municipal authorities provided account by admin. Authorities can not access the personal information about the users. Authorities can access the instructions provided by the admin. Status of any complain can be updated by the Authorities and send it to the user.
Authorities can provide notification of his/her department on main page of the ACA system.
3.3
User: User has to create their account by providing their essential information. User has unique id and password. User can post in existing forum and also can create new forum. User can upload photos on forum. User can communicate with the admin directly if he/she does not get satisfied replies from the municipal authority. (employee) Forum discussion is only way to communicate user to other activate user.
3.4 Visitors:
Visitors can make their account on the site. Visitors can visit the site. Visitors can view news headlines on site.
4. Assumptions & Dependencies: In Royce's original waterfall model Thus the waterfall model maintains that one should move to a phase only when its preceding phase is completed and perfected. However, there are various modified waterfall models (including Royce's final model) that may include slight or major variations on this process. Especially in this project the involvement of the end user known at stage of releasing, so it is difficult to judge the requirements of end user so we follow predefined strategy and after release get happen we easily can manage the requirements.
2)
3)
10
4)
5)
11
6)
12
Sequence Diagram
13
15
16
17
DFD-0 level :
18
ii.
DFD-1 level:
19
20
C) E-R Diagram : 1)
21
2)
22
6. Requirement Specification 6.1 Functional Requirement 6.1.1 Functional Requirement Specification-1 Users new account creation Use Case Name: Priority Trigger Precondition Create a new account Essential Menu selection The user must be connected to the Internet and must be on the home page. The User clicks on make a new account. The Server returns a form. The User fills in the form and clicks submit. The Server checks to see if any required field is empty. If any required field is empty the Server will send a message and return the User to the new entry form page. If no required field is empty the Server will create a new record in tbluser Table in the Database, and return the User to the Users Home Page. If the User selects Cancel, the form is cleared and the use gets returned to the Home page. NA A record is created in the tbluser Table of the Database. 1. If the connection is terminated before the form is submitted, the fields are cleared and the Server is returned to the wait state. 2. If the connection is terminated after the form is submitted, but before the User returned to the Home Page, the record is created in the tbluser Table of the Database. NA
Basic Path
Other
6.1.2
Enter any complain to administrator Use Case Name: Priority Trigger Precondition Complain Not Essential Menu selection The user must be connected to the Internet and must be on the home page. The User clicks on make a complain. The Server returns a form. The User fills in the form and clicks submit. The Server checks to see if any required field is empty. If any required field is empty the Server will send a message and return the User to the new entry form page. If no required field is empty the Server will create a new record in tblcmpl Table in the Database, and return the User to the Users Home Page. If the User selects Cancel, the form is cleared and the use gets returned to the Home page. NA A record is created in the tblcmpl Table of the Database. If the connection is terminated before the form is submitted, the fields are cleared and the Server is returned to the wait state. If the connection is terminated after the form is submitted, but before the User returned to the Home Page, the record is created in the tblcmpl Table of the Database. NA
Basic Path
Other
6.1.3
Enter any Dicussion on forum Use Case Name: Priority Trigger Precondition Create Forum Not Essential Menu selection The user must be connected to the Internet and must be on the home page. The User clicks on make create a forum. The Server returns a form. The User fills in the form and clicks submit. The Server checks to see if any required field is empty. If any required field is empty the Server will send a message and return the User to the new entry form page. If no required field is empty the Server will create a new record in tblfrm Table in the Database, and return the User to the Users Home Page. If the User selects Cancel, the form is cleared and the use gets returned to the Home page. NA A record is created in the tblfrm Table of the Database. If the connection is terminated before the form is submitted, the fields are cleared and the Server is returned to the wait state. If the connection is terminated after the form is submitted, but before the User returned to the Home Page, the record is created in the tblfrm Table of the Database. NA
Basic Path
Other
6.1.4
Create an account for Authorities Use Case Name: Create an account for Authority Priority Not Essential Trigger Menu selection Precondition The Admin must be connected to the Internet and must be on the home page. Basic Path The Admin clicks on create an account. The Server returns a form. The Admin fills in the form and clicks submit. The Server checks to see if any required field is empty. If any required field is empty the Server will send a message and return the Admin to the new entry form page. If no required field is empty the Server will create a new record in tblemp Table in the Database, and return the Admin to the admins Home Page. Alternate Path Postcondition Exception Path NA A record is created in the tblaut Table of the Database. If the connection is terminated before the form is submitted, the fields are cleared and the Server is returned to the wait state. If the connection is terminated after the form is submitted, but before the User returned to the Home Page, the record is created in the tblaut Table of the Database. NA
Other
6.1.5
26
Enter any Poll for Voting Use Case Name: Priority Trigger Precondition Create Poll Not Essential Menu selection The user must be connected to the Internet and must be on the home page. The User clicks on make create a poll. The Server returns a form. The User fills in the form and clicks submit. The Server checks to see if any required field is empty. If any required field is empty the Server will send a message and return the User to the new entry form page. If no required field is empty the Server will create a new record in tblpoll Table in the Database, and return the User to the Users Home Page. If the User selects Cancel, the form is cleared and the use gets returned to the Home page. NA A record is created in the tblpoll Table of the Database. If the connection is terminated before the form is submitted, the fields are cleared and the Server is returned to the wait state. If the connection is terminated after the form is submitted, but before the User returned to the Home Page, the record is created in the tblpoll Table of the Database.
Basic Path
27
Users profile Attribute Name U_name U_FirstName U_LastName Address1 Address2 E-mailAddress U_id Pa Password Status Key NA NA NA NA NA NA Primary Key NA NA Attribute Type String String String String String String String String Boolean Attribute Size 30 30 30 50 50 20 20 10 1
6.2.2 Non- Functional Requirement-2 Authorities profile Attribute Name Name FirstName LastName Address1 Address2 E-mailAddress Auth_id Pa Password Department Key NA NA NA NA NA NA Primary Key NA NA Attribute Type String String String String String String String String String Attribute Size 30 30 30 50 50 20 20 10 20
6.2.3 Non- Functional Requirement-3 Complain box Attribute Name cmpl_id Cmpl_type Cmpl_date Key Primary key NA NA Attribute Type String String timestamp Attribute Size 30 30 30
28
NA NA NA NA NA NA
50 50 20 20 10 1
6.2.5 Non- Functional Requirement-5 Discussion forum Attribute Name forum_topic Forum_id User _id Date Key NA Primary key NA NA Attribute Type String String String timestamp Attribute Size 30 30 30 50
6.2.5 Non- Functional Requirement-6 Online Polling Attribute Name Poll_topic Poll_id User _id Date Key NA Primary key NA NA Attribute Type String String String timestamp Attribute Size 30 30 30 50
7. Testing
7.1 Black Box Testing
29
Black-box testing is a method of software testing that tests the functionality of an application as opposed to its internal structures or workings. Specific knowledge of the application's code/internal structure and programming knowledge in general is not required. The tester is only aware of what the software is supposed to do, but not how i.e. when he enters a certain input, he gets a certain output; without being aware of how the output was produced in the first place. Test cases are built around specifications and requirements, i.e., what the application is supposed to do. It uses external descriptions of the software, including specifications, requirements, and designs to derive test cases. These tests can be functional or non-functional, though usually functional. The test designer selects valid and invalid inputs and determines the correct output. There is no knowledge of the test object's internal structure.
White-box testing is a verification technique software engineers can use to examine if their Code works as expected. In this chapter, we will explain the following: A method for writing a set of white-box test cases that exercise the paths in the code The use of equivalence partitioning and boundary value analysis to manage the number of Test cases that need to be written and to examine error-prone/extreme corner test cases How to measure how thoroughly the test cases exercise the code
30
PHP:PHP is an acronym stand for Hypertext PreProcessor. It is an open source scripting language which is used for web development and can be embedded in HTML. PHP is free, efficient, and that's why it is very popular in web development scenario. PHP coding is enclosed within <?php ?> tag. The page originates as PHP code on the server but is transformed into HTML code before sending along to the PHP code and converts it into HTML code. XHTML:It is a special kind of text document that is used by Web browsers to present text and graphics. The text includes markup tags such as <p> to indicate the start of a paragraph, and </p> to indicate the end of a paragraph. HTML documents are often refered to as "Web pages". The browser retrieves Web pages from Web servers that thanks to the Internet, can be pretty much anywhere in World.HTML 9.1.2 Database My SQL Overview of the SQL Server Tools
My SQL Server includes many graphical and command prompt utilities that allow users, programmers, and administrators to: 1. Administer and configure SQL Server. 2. Determine the catalog information in a copy of SQL Server. 3. Design and test queries for retrieving data. 4. Copy, import, export, and transform data. 5. Provide diagnostic information. 6. Start and stop SQL Server. In addition to these utilities, SQL Server contains several wizards to walk administrators and programmers through the steps needed to perform more complex administrative tasks. 9.1.3 Others Design: - CSS (Cascade Style Sheet)
31
Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics (the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can also be applied to any kind of XML document, including plain XML, SVG and XUL.
9.2
Hardware Requirement: 9.2.1 Client 9.2.1.1 Processor: Pentium 4 and above 9.2.1.2 RAM: 256MB
9.2.1.3 Memory: 20 GB 9.2.2 Server 9.2.2.1 Processor: Pentium 4 and above 9.2.2.2 RAM: 256MB
9.2.2.3 Memory: 20 GB
32