Professional Documents
Culture Documents
Developed by
Supervised by Mr. Muhammad Qamar Usman Department of Computer Science Allama Iqbal Open University Islamabad H-8, Islamabad. Year 2012
______________________
Final Approval
Declaration
We hereby declare that this software, neither as a whole nor as a part thereof has been copied out from any source. It is further declared that we developed this software and this report entirely on the basis of our personal efforts made under the sincere guidance of our project supervisor. If any part of this software proved to be copied or found to be a report of some other, we shall standby the consequences. No portion of the work presented in this report has been submitted in support of any application for any other degree or qualification of this or any other University or institute of learning. We further declare that this software and all associated documents, reports, and records are submitted as partial requirement for the degree of MBA-IT. We understand and transfer copyrights for these materials to Allama Iqbal Open University, Islamabad. We shall not sale this software and documents and shall not get any financial gains from these.
_______________
_______________
_______________
ii
______________________
Final Approval
Final Approval
This is to certify that we have read the project report submitted by Tanzeel Qazi, and Mazhar abbas and it our judgment that this report is of sufficient standard to warrant its acceptance by Allama Iqbal Open University, Islamabad, for MBA-IT degree.
Examination Committee
Internal Supervisor Lecturer UNITECH. Internal Examiner Designation Study Center. External Examiner Designation Study Center Muhammad Qamar Usman
_______________________
________________________
iii
Project in Brief
PREFACE
This project was made because it was our final semester project, as it is a new field for us so we have to put all our strength to complete it. The project work was done during approximately 4 months (July-October 2012), which of course was a little bit short time for such a difficult learning project. During the project we had to change our time planning several times as we encountered some problems that forced us to change our solution dramatically. Of course this meant a lot of work, but we learned a lot from it. During this project we enhanced our web engineering knowledge as we developed an entire concept prototype from scratch, which meant that we had to solve many problems, ranging from implementing design templates to difficult PHP and JavaScript coding.
iv
Project in Brief
Acknowledgement
We express our gratitude to our project supervisor Mr. Muhammad Qamar Usman who provided us opportunity to learn and enhance our knowledge. As our project supervisor, he had been ready to help and guide us throughout the project development. We have learned a lot throughout this semester, with many challenging yet valuable experiences in order to complete this task. Our endless thanks to Mr. Muhammad Qamar Usman for giving us the chance to explore a new knowledge of mine, as well as for giving us precious advices in order to improve our self to become a better person. We would like to express our eternal appreciation towards our parents and family who have always been there for us no matter where we are, for all unconditional supports and patience. Thank you for being ever so understanding and supportive. We would like to thank our dear friends and colleagues, especially fellow students of MBA-IT; it has been great to know all of you during our time here in AIOU UNITECH Campus.
Project in Brief
Project in Brief
Reliability is our main objective, that the products shown in or website must be valid products. Relationship with our customer must be strong, they can view our product, order us and even they can send us their views. Data must be correct and up-to-date. Interests of customers must be checked.
Developed By:
Supervised By:
Tools Used:
Macromedia Dreamweaver CS 5, Wamp Server, Photoshop CS 5. Microsoft WindowXP. Core I-3 Laptop.
vi
Project in Brief
vii
TABLEOF CONTENTS
Table of Contents
Acknowledgement .............................................................................................................. v 1 Introduction ............................................................................................................... 11 1.1 Mobile World .....................................................Error! Bookmark not defined. 1.2 Project Overview ...............................................Error! Bookmark not defined. 1.3 Project Scope .....................................................Error! Bookmark not defined. 1.4 Proposed System Components ...........................Error! Bookmark not defined. 1.5 Tools and Technologies .....................................Error! Bookmark not defined. 2 Literature Review ..................................................................................................... 14 2.1 Reason for Selecting Online Mobile Shopping webiste ................................... 15 2.2 Selection of Web Based Solution ..................................................................... 15 2.3 Selection of Development Tool ........................................................................ 15 3 System Design Detail................................................................................................ 17 3.1 Functionality and Requirements ....................................................................... 18 3.1.2 Mobile view..................................................................................................17 5.2 Administrator view: ........................................................................................17 Non-functional Requirement...........................................................................................17 6.1 Usability...........................................................................................................18 6.2 Security............................................................................................................18 6.2.1Privacy...............................................................................................19 6.2.2 Access rights.....................................................................................19 6.3 Scalability........................................................................................................19 6.4 Extensibility.....................................................................................................20 6.5 Maintainability.................................................................................................20 6.6 Testability........................................................................................................20 6.7 Platform compatibility.....................................................................................20 4 Software Design ........................................................................................................ 21 Use Cases .......................................................................................................................... 22 Login ......................................................................................................................... 22 Add User ................................................................................................................... 23 Update user ............................................................................................................... 24 Block user ................................................................................................................. 25 Delete user ................................................................................................................ 26 Search Users.............................................................................................................. 27 Front End .................................................................................................................. 29 Update profile ............................................................Error! Bookmark not defined. 4.1 Search Users...................................................................................................... 31 4.2 Use Case Diagram............................................................................................. 32 4.3 ERD....................................................................Error! Bookmark not defined. 4.4 Relationship Diagram .......................................Error! Bookmark not defined. 4.5 Sequence Diagrams ........................................................................................... 34
Login Sequence ......................................................................................................... 34 New User Sequence .................................................................................................. 36 Search User Sequence ............................................................................................... 37 Update User Sequence .............................................................................................. 38 Block User Sequence ................................................................................................ 39 Delete User Sequence ............................................................................................... 40 Search Sequence (Front End).................................................................................... 41 5 Data Flow Diagram ................................................................................................... 42 5.1 DFD................................................................................................................... 43 Context Diagram ....................................................................................................... 43 5.2 Activity Diagram .............................................................................................. 44 5.3 Data Dictionary ................................................................................................. 45 Table name: User .......................................................Error! Bookmark not defined. Table: Admin User .................................................................................................... 46 Table: User Record ....................................................Error! Bookmark not defined. Table: Visitor .............................................................Error! Bookmark not defined. Table: Rating ............................................................................................................. 49 Table News ............................................................................................................... 49 6 Implementation .......................................................... Error! Bookmark not defined. 6.1 Index Page (Front End) ......................................Error! Bookmark not defined. 6.2 User Sign up Page ..............................................Error! Bookmark not defined. 6.3 Forgot Password.................................................Error! Bookmark not defined. 6.4 Admin Control Panel .........................................Error! Bookmark not defined. 6.5 Admin Main Page ..............................................Error! Bookmark not defined. 6.6 Add Donor .........................................................Error! Bookmark not defined. 6.7 Add Borrower ....................................................Error! Bookmark not defined. 7 Testing ...................................................................................................................... 56 7.1 Introduction ....................................................................................................... 57 7.2 Software Testing ............................................................................................... 58 7.3 Verification ....................................................................................................... 58 7.4 White box, black box testing ............................................................................ 58 Black box .................................................................................................................. 58 White box .................................................................................................................. 59 7.5 Levels of testing ................................................................................................ 59 Functional Testing .................................................................................................... 59 Unit testing ................................................................................................................ 60 Unit testing is performed by the developers before the setup is handed over to the testing team to formally execute the test cases. Unit testing is performed by the respective developers on the individual units of source code assigned areas. The developers use test data that is separate from the test data of the quality assurance team. .......................................................................................................................... 60 Integration testing ..................................................................................................... 60 The testing of combined parts of an application to determine if they function correctly together is integration testing. In a comprehensive software development environment, bottom-up testing is usually done first, followed by top-down testing. The process concludes with multiple tests of the complete application, preferably in
scenarios designed to mimic those it will encounter in customers, computers, systems and network. ................................................................................................ 60 Regression Testing .................................................................................................... 60 Acceptance testing .................................................................................................... 60 Alpha testing ............................................................................................................. 61 Beta testing.................................................................Error! Bookmark not defined. Beta test is performed after Alpha testing hasb successfully performed. In beta testing a sample of the intended audience tests the application. In beta testing audience will be testing the following: ......................Error! Bookmark not defined. Users will install, run the application and send their feedback to the project team. ...........................................................................Error! Bookmark not defined. 7.6 Non-Functional Testing .................................................................................... 61 Performance Testing ................................................................................................. 61 7.7 A sample testing cycle ...................................................................................... 63 7.8 Test Cases ......................................................................................................... 64 Black Box Testing..................................................................................................... 64 Register ......................................................................Error! Bookmark not defined. Update ....................................................................................................................... 65 Test Cases for Front End........................................................................................... 66 Update ....................................................................................................................... 67 7.9 User ....................................................................Error! Bookmark not defined. Ratings ...................................................................................................................... 68 Test Cases (Admin Panel)......................................................................................... 69 Block/Un Block ........................................................................................................ 70 News ......................................................................................................................... 70 White Box Testing .................................................................................................... 71 Unit Testing .............................................................................................................. 72 Recovery Testing ...................................................................................................... 73 7.10 Test log.............................................................................................................. 74 8 Conclusion and Future Work .................................................................................... 76 8.1 Achievements .................................................................................................... 77 8.2 Future Enhancement ......................................................................................... 78
1 Introduction
Chapter No.1
__________
Introduction
1.1
Mobile World
Main objective of is to give mobiles a platform from they can easily able to buy a mobile of their best choice online in an efficient and mobile friendly manner. It also keeps track of orders reviews comments videos in a way so that there is no chance of missing a single penny.
In designing of the system the main consideration was to make it foolproof and as mobile friendly as possible while keeping the aesthetic sense by providing an eye catching design. One more thing about is that it has been developed in a way that any future enhancement can be incorporated very easily. Management System is fool proof system which allows not only administrator but the mobiles of system as well to track latest reviews and videos regarding mobile.
Chapter No.1
__________
Introduction
1.3.1 Project Justification: Mobile Management Website is an interesting and full of scope project. As it is our Web Engineering project, so we have taken this project to implement our all web related knowledge in this project. This project is feasible and implement able that is why we selected this project. 1.3.2 Project Product: The product of our project is a website which would contain all mobile set information. It would contain updates about new mobile sets, their qualities and their cost. The website would also have the facility that mobile can also comment. 1.3.3 Project Deliverables: Following are the deliverables of our project: SRS (Software Requirement Specification) Demo of our Website. Complete Website, . Project Report.
PHP
Page 13
__________
Introduction
2 Literature Review
Mobile World
Page 14
Chapter No.2
__________
Literature Review
2.1
There are a lot of online shopping websites present today but most of them are so complicated for the mobiles that they cant even sit and view the website for 1 minute and if website the website is simple than the administration of website is not very efficient to coordinate with the customer if she/he want to give an order of any particular product. Our websites has all features like creating profiles and online ordering this will facilitates the mobiles that they can get their mobile more easily and quickly. On the other hand it also reduces the clerking job, because our system will automate the clerkale activities. Mobiles can also track their order details by visiting online. Our system will also reduce miss management and late order delivery transaction and corruption as well.
2.2
Now a days web application are used highly in world because we do not need to install Application on all machine instead of this we just put whole application on web server and all other machines use application by communication with web server. The desktop solutions are useful if we want to use the system in a single organization and desktop solutions are developed for single machines.
2.3
After visiting some of the software houses, we select PHP as development language for this system because it is being used increasingly in market it is light weight and provide all functionality which we need to develop this system.
15
Chapter No.2
Literature Review
16
Chapter No.3
___________
Overall Goal:
1. System efficiency 2. On line ordering. 3. Order tracking 4. On line presence
3.1
6. Non-functional requirements:
In contrast to functional requirements, non-functional requirements do not make a statement about the behavior of the system, but about its quality. They are an essential part of the requirements definition. In the following, we will thus present the qualitative requirements that should be met by our website. 6.1 Usability: The usability of a website is a critical aspect that demands special attention. Usability is defined as the extent to which a product can be used by
Mobile World
18
Chapter No.3
___________
specified mobiles to achieve specified goals with effectiveness, efficiency and satisfaction in a specified context of use. In the context of our website, these demands are detailed as follows: Our website should allow mobiles to reach their goals without digressions. It should quickly react to the mobiles actions, be non-distracting and should allow mobiles to operate the website in a linear way. Our website should aid the mobile in extracting the right results out of the database and should assist mobiles in finding the results they need. This includes a clear layout of the display and an unambiguous navigation through the various functions of the website. The mobiles interaction with the website should be satisfying, with a strong emphasis on the mobiles feelings when using the website and after using the website. To reach the goal of satisfaction, mobiles need to be supported in finding the results they need. This includes aspects as a straightforward interface design and the minimization of necessary interactions by the mobile, as bandwidth and speed of some internet connections are usually limited. Interface should be self explanatory and there should be mobile centered design.
6.2 Security: One of the most important non-functional requirements is security. Security requirements come in different forms: 6.2.1Privacy: The website shall not store any personal information about a certain mobile that can not be changed by the mobile him/herself (e.g. personalized search settings or saved queries). Access rights: The website shall not allow the mobiles to access the database directly or shall not allow the mobiles to make changes in database. 6.3 Scalability: Scalability is a critical issue for a website because it can experience heavy traffic from day to day. It thus needs to make sure our website will be scalable according to the increasing traffic. But at starting point 50 concurrent logins are more than enough for our website. 6.4 Extensibility: Extensibility is a quality of design that takes possible feature advances into consideration and attempts to accommodate them. The mobile management website shall therefore be able to allow the addition of features without impact to the existing website functions. 6.5 Maintainability: The code developed in this task needs to be maintained by us. So, we will also document all necessary features and parts of the code.
Mobile World
19
Chapter No.3
___________
6.6 Testability: To ensure a proper testability of the code we will develop unit tests for all critical parts of the software. Unit tests can be executed automatically to confirm the correct operation of the code after changing parts of the system. We will furthermore test the operation of the system manually to ensure proper operation from a mobile centric point of view. 6.7 Platform compatibility: A wide range of browsers are available now. So, our website should thus support all browsers. 6.8 Performance: Most of the internet connections still have to deal with lower bandwidths, one of the main focus points for performance considerations should be the amount of display data on one web page. So, our website shall only display data relevant to mobiles query. E.g. a high resolution image should only be loaded if the mobile wants to view and actively selects it. The website shall respond to mobiles query immediately and as fast as possible. There can be an issue of lack in processing power, so displaying hundreds of results could affect the mobiles experience.
Mobile World
20
4 Software Design
Chapter No.4
___________
Software Design
Use Cases
A use case represent the list of tasks that actor can perform. Here all cases are described in the expanded format.
Login
Use case name: Actors: Purpose: Precondition: Post condition: Type: Overview:
Login. Administrator . Access the system functionalities. Admin must have an account in the Mobile World. System verify the mobile, and mobile logs in successfully. Primary.
password. Login information is sent to server, server verifies the Mobile name and Password information. Control panel for each mobile will be displayed, based on mobile role. Typical course of Actions Actors Actions System Response
1. Administrator enters login information i). The system connects to server and (Mobile name, password) and clicks on verify the mobile name Login button. password. ii). The system displays the Profiles of the
Administrator / _ / __ Mobiles.
and
1. Administrator/_/__ enters invalid login i). Connection to server established and information (Mobile name, Password) and the login information is verified. clicks on Login button. ii). Login information error is indicated.
Mobile World
22
___________
Software Design
Use case name: Actors: Purpose: Precondition: Post condition: Type: Overview:
Add mobile from admin panel. Administrator. Mobile creation. Administrator must be logged in. Mobile World control panel should be displayed. Primary.
Our admin can create a mobiles, change, and block or deleted, this
Typical course of Actions Actors Actions 1. Administrator 1st login to system. System Response i). The system connects to server and verify the mobile name password. ii). The system displays the Control Panel to the Administrator based on his role. 2. Add the mobile by clicking on to add i) The system will display the form to add videos. the mobiles. The admin have to enter in the required fields. After correct entering the form the mobile will be created and an email will be sent to the mobile email address. and
1. Administrator enters invalid login i). Connection to server established and information (Mobile name, Password) and the login information is verified. clicks on Login button. ii). Login information error is indicated. iii) Email address already exists.
Mobile World
23
Chapter No.4
___________
Software Design
Update mobile
Use case name: Actors: Purpose: Precondition: Post condition: Type: Overview:
Update mobile. Administrator Update. Mobile must be logged in. Profile will be updated. Primary and Real.
Typical course of Actions Actors Actions 1. Admin must be logged in to the system. System Response i). The system connects to server and verify the mobile name and password.
ii). The system displays the Control Panel to the Administrator based on his role.. 2. Admin can edit his own profile by i) Edit Profile Page will be displayed to clicking on the edit profile button. mobiles.
3. Admin can edit the mobiles profiles by i) Edit Profile page will be displayed. click on the edit profile button.
Alternate course of Actions Actors Actions 1. Mobiles enter invalid information. Alternate System Response i). System displays error and request to provide proper and valid credential.
Mobile World
24
Chapter No.4
___________
Software Design
Block mobile
Use case name: Actors: Purpose: Precondition: Post condition: Type: Overview:
Block mobile from admin panel. Administrator. Blocking of mobile. Administrator must be logged in. Mobile World control panel should be displayed. Primary.
Our admin can block the mobiles this management system will help in
System Response i). The system connects to server and verify the mobile name password. ii). The system displays the Control Panel to the Administrator based on his role. and
2. Block the mobile by clicking on to i) The system will display the block the disable link. selected mobile.
1. Administrator enters invalid login i). Connection to server established and information (Mobile name, Password) and the login information is verified. clicks on Login button. ii). Login information error is indicated.
Mobile World
25
Chapter No.4
___________
Software Design
Delete mobile
Use case name: Actors: Purpose: Precondition: Post condition: Type: Overview:
Delete mobile from admin panel. Administrator. Delete mobile. Administrator must be logged in. Mobile World control panel should be displayed. Primary. Our admin can delete the mobile this management system will help
System Response i). The system connects to server and verify the mobile name password. ii). The system displays the Control Panel to the Administrator based on his role. and
2. Delete the mobile by clicking on to i) The system will display the message delete icon. and then delete the selected mobile.
1. Administrator enters invalid login i). Connection to server established and information (Mobile name, Password) and the login information is verified. clicks on Login button. ii). Login information error is indicated.
Mobile World
26
Chapter No.4
___________
Software Design
Search Mobiles
Use case name: Actors: Purpose: Precondition: Post condition: Type: Overview:
Search mobiles. Administrator. To search all the mobiles ordered in the Mobile World. Enter first mobile name. Mobiles will be shown matched with search keyword. Primary and Real. When admin wants to search any mobile he has to give any field
through which system will search the desired mobile. If the desired mobile exists, his record will be displayed; otherwise No Records message will be displayed in the search page. Typical course of Actions Actors Actions 1. Administrator 1st login to system. System Response i). The system connects to server and verify the mobile name and password.
ii). The system displays the Control Panel to the Administrator based on his role.
2. Admin enters the first name or last name i) Specified mobile will be displayed. or email address of the mobile.
ii) In Mobile World, Mobiles of other category will be displayed like that.
Alternate course of Actions Actors Actions 1. Administrator enters invalid information. Alternate System Response i). System displays error and request to provide proper and valid credential.
Mobile World
27
Chapter No.4
___________
Software Design
Mobile World
28
Chapter No.4
___________
Software Design
Order mobile from front end. visitors Add. Users can order to Mobile World. Primary and Real.
1. Mobile will Order from front end by i). The system will displays the Order form. clicking order. ii). The system will check the proper fields. If mobile enters wrong information in the form, the system will not submit the form. iii) An email will be sent to the mobile email address. 2. After Registration mobiles can see their i) Profile Page will be displayed to profiles. mobiles.
Alternate course of Actions Actors Actions 1. Mobiles enter invalid information. Alternate System Response i). System displays error and request to provide proper and valid credential.
Mobile World
29
Chapter No.4
___________
Software Design
Mobile World
30
Chapter No.4
___________
Software Design
Search Mobiles
Use case name: Actors: Purpose: Precondition: Post condition: Type: Overview:
Search mobiles. users/customers To search all the mobiles ordered in the Mobile World. Enter any of the provided fields on the search form. Mobiles will be shown matched with search keyword. Primary and Real. When admin/_/__ want to search any mobile he has to give any
field through which system will search the desired mobile. If the desired mobile exists, his record will be displayed; otherwise No Records message will be displayed in the search page. Typical course of Actions Actors Actions System Response
2. Mobiles from the Front end can search the ii) Mobile World has three categories of other _ or __ without login to the system.
Alternate System Response i). System displays error and request to provide proper and valid credential.
order. customer give order for a mobile to Mobile World. Administrator must be logged in before taking the order. Primary and Real
Mobile World
31
Chapter No.4
___________
Software Design
Mobile World
32
Chapter No.4
___________
Software Design
Mobile World
33
Chapter No.4
___________
Software Design
4.1
Sequence Diagrams
Login Sequence
Mobile World
34
Chapter No.4
___________
Software Design
Mobile World
35
Chapter No.4
___________
Software Design
Mobile World
36
___________
Software Design
Mobile World
37
Chapter No.4
___________
Software Design
Mobile World
38
Chapter No.4
___________
Software Design
Mobile World
39
Chapter No.4
___________
Software Design
Mobile World
40
Chapter No.4
___________
Software Design
Mobile World
41
Chapter No.5
____________
DFD
5.1
DFD
The Data Flow Diagram is normally used for the visualization of data processing by a system in terms of inputs and outputs. The normal flow is shown graphically. A designer usually draws framework level DFD showing communication between the system and the outside entities.
Context Diagram
Mobile World
43
Chapter No.5
____________
DFD
5.2
Activity Diagram
Mobile World
44
Chapter No.5
DFD
5.3
Data Dictionary
Table: _
Field name ID
Definition Key, It is a foreign key and primary key. That is same as the mobile id. Stores the picture of the mobile. Stores the personal information of the mobile.
Picture Personal_info
text text
null null
Stores the story of the mobile. Stores the category as above early. Stores the reason.
Table: __
Field name ID
Definition Key, It is primary key and foreign key that is same as mobile id and it is primary because it is used further in tables.
Picture personal_info
text text
null null
Stores the picture of the mobile. Stores the personal information of the mobile.
Mobile World
45
Chapter No.5
DFD
Table: Admin
Field name ID
Stores the first name of the admin. Stores the last name of the admin. Stores email of the mobile. Stores the phone number of the mobile.
Mobilename
varchar(30)
Not null
Password
varchar(30)
Not null
Ccn
Int(30)
Not null
Mobile World
46
Chapter No.5
DFD
Definition , It is primary key and foreign key that is same as mobile id and it is primary because it is used further in tables.
Foreign key.
Users name
varchar(25)
Null
varchar(25) varchar(250)
Null Null
Stores the name of the _. Stores taking the reason for from
mobile
Mobile World. ___id Category int(250) varchar(25) Null Null Stores the __ id. Stores the category as described early.
Mobile World
47
Chapter No.5
DFD
Mobile World
48
Chapter No.5
DFD
Table: Rating
Field name ID
Definition It is an auto
incremented id. __id Voter_ip Rating int(11) varchar(20) Rating Foreign key Null Null It is foreign key. Stores the voter ip. Stores the Rating information.
Table News
Definition It is an auto
incremented id. subject varchar(1000) Not null Stores the subject of the news. description Text Not null Stores the
description of the news. news_link Text Not null Stores link. posted on varchar(25) Not null Stores the date of posted. the news
Mobile World
49
6 Implementation
Home Page.
Contact Managements
Orders Management
Mobile Catagories
Testing
Chapter No.7
____________
Testing
7.1
Introduction
Generally, software engineers differentiate software faults from software failures. In case of a failure, the software does not work. A fault is a programming error that and will become a failure while exact computation conditions are met. An error can found when the software is ported to another system or compiler.
Main benefit of software testing is to check the reliability of software so that the organization is confident to accept it. When testing the software there are no of problems occur. Viruses that occur occasionally are difficult to find in testing. Software faults occur through the following processes. A programmer makes a mistake, which results in a fault, bug in the software. If this defect is executed, the system will produce wrong results .But the require system is that which work without fault/error. This has simple consequences for projects to write long-lived reliable software, since it is not usually commercially viable to test over the proposed length of time unless this is a relatively short period. A few days or a week would normally be acceptable, but any longer period would usually have to be simulated according to carefully prescribed start and end conditions.
A shared practice of software testing is that it is performed by an independent group of testers after the functionality is developed but before it is sent to the customer. This exercise frequently results in the testing phase being used as project obstacle to compensate for project delays, thus compromising the time devoted to testing. Another practice is to start software testing at the same moment the project starts and it is a continuous process until the project finishes.
Mobile World
57
Chapter No.7
____________
Testing
7.2
Software Testing
Testing cannot show that virus doesnt exist. The more bugs you find, then more bugs there are. Not all the virus you find will be fixed. Product specifications are never final. It is impossible to test a program completely.
7.3
Verification
Software verification is used in association with testing and validation (T&V). Verification is the checking or testing of items, including software, for conformance and consistency with an associated specification. Validation is the process of checking what has been specified is what the user actually wanted. Software testing is just one kind of verification, which also uses techniques such as reviews, inspections, and walkthrough.
7.4
Black and White box testing are terms used to define the point of view that a test engineer takes when designing test cases.
Black box
Black box testing is known as functional testing Black box testing method whereby the internal workings of the item being tested are not known by the tester. For example, in a black box test on software design the tester only knows the inputs and what the expected outcomes should be and not how the program arrives at those outputs. The tester does not ever examine the programming code and does not need any further knowledge of the program other than its specifications. Testing treats the software as a black box without any understanding as to how the internals work. This level of testing usually requires through test cases to be provided to the tester who then can simply verify that for a given
Mobile World
58
Chapter No.7
____________
Testing
output value (or behavior), is the same as the expected value specified in the test case.
White box
Also known as open box testing. A software technique whereby clear information of the internal working of the item being tested are used to select the test data. White box testing uses specific knowledge of programming code to examine outputs.
When the tester has access to the internal data structures, code, and algorithms. For this reason, unit testing and debugging can be classified as white box testing and it usually requires writing code, or at a minimum, stepping through it, and thus requires more skill than the black box tester. Grey box testing has common usage. This involves having access to internal data structures and algorithms for the purpose of designing the test cases, but testing at the user, or black box level. Manipulating input data and formatting output do not qualify as grey box because the input and output is clearly outside of the black box we are calling the software under test. This is mostly important when conducting integration testing between two modules of code written by two different developers, where only the interfaces are exposed for test.
7.5
Levels of testing
Levels of testing include the different methods that can be used while conducting software testing. Following are the main levels of software testing.
Functional Testing
Mobile World
59
Chapter No.7
____________
Testing
Functional testing is also known as black box testing that is bases on the specification of the software that is to be tested. Below are different steps that are involved when testing an application for functionality.
Unit testing Unit testing is performed by the developers before the setup is handed over to the testing team to formally execute the test cases. Unit testing is performed by the respective developers on the individual units of source code assigned areas. The developers use test data that is separate from the test data of the quality assurance team. Integration testing The testing of combined parts of an application to determine if they function correctly together is integration testing. In a comprehensive software development environment, bottom-up testing is usually done first, followed by top-down testing. The process concludes with multiple tests of the complete application, preferably in scenarios designed to mimic those it will encounter in customers, computers, systems and network.
Regression Testing Whenever a change in a software application is made it is quite possible that other areas within the application have been affected by this change. To verify that a fixed bug hasnt resulted in another functionality of business rule violation is regression testing. The intent of regression testing is to ensure that a change, such as a bug fix did not result in another fault being uncovered in the application. Acceptance testing
This is arguably the most impotence type of testing as it is conducted by the Quality Assurance Team who will gauge whether the application meets the intended specifications and satisfies the clients requirement. Acceptance conducted by the enduser, customer, or client to validate whether or not to accept the product. By performing acceptance test on an application the testing team will deduce how the application will
Mobile World
60
Chapter No.7
____________
Testing
perform in production. There are also legal and contractual requirements for acceptance of the system.
Alpha testing
Alpha testing is the first stage of testing and will be performed amongst the teams( developer and QA teams). Unit testing, integration testing and system testing when combined are known as alpha testing. During this phase, the following will be tested in the application: Spelling Mistakes Broken Links Cloudy Directions The application will be tested on machines with the lowest specification to test loading times and any latency problems.
7.6
Non-Functional Testing
This section is based upon the testing of the application from its no-functional attributes. Non-functional testing of Software involves testing the Software from the requirements which are non functional in nature related but important a well such as performance, security, user interface etc. . .Some of the important and commonly used non-functional testing types is mentioned as follows:
Performance Testing
It is mostly used to identify any bottlenecks or performance issues rather than finding the bugs in software. There are different causes which contribute in lowering the performance of software. Shutdown or restart of Network ports randomly. Turning the database on or off.
Mobile World
61
Chapter No.7
____________
Testing
Security Testing Security testing involves the testing of software in order to identify any flaws ad gaps from security and vulnerability point of view. Confidentiality Integrity Authentication Availability Authorization Software data is secure. Etc. Portability Testing Portability testing includes the testing of Software with intend that it should be re-useable and can be moved from another Software as well. Following are the strategies that can be used for Portability testing. Transferred installed Software from one computer to another. Building executable to run the Software on different platforms. Stress Testing This testing type includes the testing of software behavior under abnormal conditions. Taking away the resources, applying load beyond the actual load limit is Stress testing. Load Testing A process of testing the behavior of the Software by applying maximum load in terms of Software accessing and manipulating large input data. It can be done at both normal and peak load conditions. This type of testing identifies the maximum capacity of Software and its behavior at peak time.
Mobile World
62
Chapter No.7
____________
Testing
7.7
Testing differs among organizations; there is a cycle to testing: Testing should begin in the requirements phase of the software development life cycle. Testers work with developer in determining what aspects of a design are testable and under what parameter those tests work.
Planning Phase: Test Policy, Test Bed creation. During planning phase a lot of activities well be performed, so that a plan is needed. Development Phase: Test Procedures, Test Scenarios, Test Cases, and Test Scripts to use in testing software. Execution: Testers execute the software based on the plans and tests and report any errors found to the development team. Reporting: Once testing is completed, testers generate metrics and make final reports on their test effort and whether or not the software tested is ready for release
Mobile World
63
Chapter No.7
____________
Testing
7.8
Test Cases
Description:
explicitly use knowledge of the internal structure. Black-box test design is usually described as focusing on testing functional requirements. include: behavioral, functional, opaque-box, and closed-box. In black box testing, the user interface is exercised over a full range of inputs and the corresponding outputs are observed for correctness. Synonyms for black-box
Test Case Name: Login User Input Expected Result Actual Result
Enter login information (User name, i). The system will Same as Expected password) and clicks on Login button. connect to server Result. and verify the user name password. ii). The system will
displays the Control Panel World of Mobile
and
/Front End
Result:
Pass Fail
Mobile World
64
Chapter No.7
____________
Testing
Update
Test Case Name: Update User Input Expected Result Actual Result
After successful login the user can edit A Edit Profile Page Same as Expected their profile. will open. Result.
User enters new info and click on the System will validate Same as Expected update button. and enters the info Result. into database. After successful updating. The system will Same as Expected the Result.
display message.
Result:
Pass Fail
Mobile World
65
Chapter No.7
____________
Testing
Test Case Name: Search User Input User can search all the mobiles. Expected Result Actual Result
User can search from first name, last name Records based on Same as Expected and email of the user. the typed keyword Result. will be shown. User presses the View button to view the The complete details. system will Same as Expected
Result:
Pass Fail
Mobile World
66
____________
Testing
Test Case Name: Donate User Input Expected Result Actual Result
User can view all the latest updates A relevant profile Same as Expected regarding all mobiles in the Mobile World. will open. After user select the mobile for order The from Mobile World system Result. will Same as Expected the Result.
display message.
Result:
Pass Fail
Mobile World
67
Chapter No.7
____________
Testing
Ratings
Test Case Name: Rating User Input Expected Result Actual Result
A user can rate other user or visitor at A Profile Page will Same as Expected profile page. User clicks on the rate button open. Result.
System will enters Same as Expected the information database. ratings Result. into
The user cannot rate the user or visitor The with the same IP address.
system
display message.
Result:
Pass Fail
Mobile World
68
Chapter No.7
____________
Testing
Test Case Name: Delete User Input Expected Result Actual Result
After Successful login admin can delete A list of all the user Same as Expected any user or visitor . or visitor/ will be Result. displayed. Admin clicks on the delete link. The system will Same as Expected a Result.
After
Result:
Pass Fail
Mobile World
69
Chapter No.7
____________
Testing
Block/Un Block
Test Case Name: Block /Unblock User User Input Expected Result Actual Result
After Successful login admin can block A list of all the user Same as Expected /unblock any user or visitor /_. or visitor/_s will be Result. displayed. Admin clicks on the block/unblock link. The system will Same as Expected
change the state of Result. the user and insert the status into the database.
Result:
Pass Fail
News
Test Case Name: News User Input Expected Result Actual Result
After Successful login admin add, edit Add news page will Same as Expected delete news. Admin writes the news. With related fields i-e , news_id subject be display. Result.
news_link posted_on.
Result:
Pass Fail
Mobile World
70
Chapter No.7
____________
Testing
Description: White-box test design allows one to peek inside the "box", and it focuses specifically on using internal knowledge of the software to guide the selection of test data. Synonyms for white-box include: structural, glass-box and clear-box.
This testing technique is used to do structure analysis, branch coverage, functional coverage, boundary conditions checking and input conditions are used and run against the static code.
We have performed the test for login module, if there is no valid user name or password then the user will not log in the website and an error message will be displayed.
Result:
Pass
Fail
Mobile World
71
Chapter No.7
____________
Testing
Unit Testing
Description:
code are working properly. A unit is the smallest testable part of an application. In procedural programming a unit may be an individual program, function, procedure, etc., while in object-oriented programming, the smallest unit is a method; which may belong to a base/super class, abstract class or derived/child class.
In unit testing, different modules of the developed system are tested independently. The purpose is to determine that each module is functioning and to locate errors in the modules.
We have done the unit test for each individual unit. An example test of module function Login module is given below: When user presses the sign in button from top of the page, the new page is opened properly and user can login to the web site.
Result:
Pass
Fail
Mobile World
72
Chapter No.7
____________
Testing
Recovery Testing
We have tested the software for recovery test. The software does not crashes if the user presses any two keys simultaneously or if the user presses any key while the other was being executed by the program.
Result:
Pass Fail
Mobile World
73
Chapter No.7
____________
Testing
7.10
Test log
The IEEE std. 829-1998 defines the test log as a chronological record of relevant details about execution of test cases. The purpose of the test log shown in Figure 7-1 is to share information among testers, users, developers, and others and to facilitate the replication of a situation encountered during testing.
Contents
In order for a test log to be successful, the people that must submit data into and eventually use the log must want to do so. Forcing participants to use a test log when they dont want to use it is seldom successful. In order to make it desirable, the test log must be easy to use and valuable to its users. Since the primary purpose of the test log is to share information rather than analyze data, we recommend making the log free form, instead of using fields or buttons, which are desirable in other areas such as defect tracking. If the testing team is small and colocated, the test log might be as simple as a spiral notebook in which testers and /or developers can make log entries. Alternatively, it might be more convenient to have a word-processed document or e-mailed form. If the team members are geographically separated, the test log would probably be better served in the form of a Web page or company intranet. Wherever it is, the test log should be easy to access and update. One of our clients, for example, has a continuously open active window on their monitor where a thought can be entered at any time.
Mobile World
74
Chapter No.7
____________
Testing
Description:
Mobile World
75
8.1
Achievements
We feel very proud after development and implementation of our final project successfully. Before developing through this project although we have a theoretical knowledge of software engineering, being students of MBA(IT). We had a very good interaction with our internal supervisor; Mr. Qamar helped us to develop the system well in time. During the development of the project we have achieved the following benefits. Project management and scheduling How to interact with the user System analysis and data collection A good knowledge of system designing and modeling Latest tools and technologies Testing strategies User documentation During the modeling phase we learnt Microsoft Visio 2010.
During testing and implementation finding a bug and its fixture was totally new and healthy experience. One of the very important aspects of the project was how to document our project properly. We have learnt new tools MYSQL, Macromedia Dreamweaver which will help us a long way as we will be starting our careers as IT professional.
Chapter#1
___________
_______________
Introduction
8.2
Future Enhancement
Since our system only gives efficient coordination to the user or visitor well in future we add loan feature in our website. We also add mobile WAP feature in our website. And Further we enhance our project by connecting it other online payment module i-e ; Google check out etc.