Vous êtes sur la page 1sur 51

CHAPTER 04

TESTING
CHAPTER 04

TESTING

4.1 Testing

Success of any application highly depends on its features and whether they are
functionally correct. A web application with broken links or inappropriate content
can lead to huge problem. So testing is very important in every phase of each
module in any application. All software is designed to meet and satisfy certain
functional requirements. Functional testing is the process by which expected
behavior of an application can be tested. Testing can be performed both manually
with a human tester or could be performed automatically with the use of software
programs.[1] In this scenario we will use manual testing for the testing of our web
application.

A software test engineer is involved in the testing of an application and is


generally a member of software quality assurance team. Test engineers of our web
application are Bilal Mazhar, Muhammad Farrukh Shakeel and Ali Haider.

4.2 Test Cases

• Functional Testing

• Admin

• Login

• Manage Rumor

• Manage User

• Settings
• Send Notifications

• Logout

• User

• SignUp

• Login

• Forget Password

• Map

• Add Rumor

• Search

• Approve/ Disapprove

• Cross Browser Compatibility Test Case

• Performance Test Case

4.2.1 Functional Testing

4.2.1.1 SignUp Test Case

Table 4.2.1.1: SignUp Test Case

SignUp
Test Engineer: Ayesha Mansha
Test Case ID: TC-1
Related UC/FR/NFR: UC-1
Date: 16-7-2018
Purpose: To perform actions by becomming user of the system.
Pre-Req: User must have email account
Test Data: • First Name
• Last Name
• Email
• Password
• Country (Optional)
• State (Optional)
• City (Optional)
Steps: Following steps will take place in the test.
• Pop-up of Signup whenever guest click on actions that only
user can perform.
• Visit the actual signup page.
• User firstname and lastname can only by numbers so they
show msg whenever user input number in them.
• Proper email address is acceptable.
• Minimum length of a password in no less than 6 characters.
• When user clicks on "Become a Rumo" button, it shows
errors under the respective field if there is an error.
• In case of successful signup, user is redirected to Home page.
Status: Pass

4.2.1.2 Login Test Case

Table 4.2.1.2: Login Test Case

Login Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-2
Related UC/FR/NFR: UC-2
Date: 16-7-2018
Purpose: Only authenticated user of this application will be logged in and can
perform actions.
Pre-Req: User must have account on this application with an email &
Password
Test Data: • Email
• Password
Steps: Following steps will take place in the test.
• Visit login Popup
• Visit actual login page
• Enter Email
• Enter Password
• The login screen is having the option to enter a username and
password with submit button('Enter the World of Rumors')
and an option of forgot the password.
• User is able to login with valid username and password.
• User is not able to login with invalid username and
password.
• Validation message displays in case user leaves username or
password field blank
• For security purpose, in case of incorrect credentials, a
message is displayed to the user: " Email or Password is
wrong" instead of exact message pointing which field is
incorrect. A message like "incorrect username" will aid
hacker in brute forcing the fields one by one.
• Once logged in, clicking back button doesn't logout user.
• When a user is logged in, he cannot go back to login page by
all means.
Status: Pass

4.2.1.3 Forget Password Test Case

Table 4.2.1.3: Forget Password Test Case

Forget Password Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-3
Related UC/FR/NFR: UC-3
Date: 16-7-2018
Purpose: To retrieve new password so that user can login again
Pre-Req: User must have an account
Test Data: • Email
Steps: Following steps will take place in the test.
• User visit Forget Password Page
• Enter Email
• Email should exist in the database
• Click on Forget Password button
• An email will be sent to the respective email address.
• If the user provides wrong mail the field shows an error
message.
• "RESET PASSWORD" button submits form successfully.
• Checked whether the auto generated password has sent to the
email provided by the user.
• Whether the user can log in with a new password.
Status: Pass

4.2.1.4 Add Rumor

Table 4.2.1.4: Add Rumor Test Case

Add Rumor Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-4
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: To add a rumor
Pre-Req: User must be logged in
Test Data: • User session
• Rumor Location
• Rumor Title
• Rumor Category
• Rumor Description
• Rumor Photo
Steps: Following steps will take place in test.
• User logged in
• User click on Add New Rumor
• Enter Rumor Information
• Select Category
• Enter Rumor Country, State and City as well as the complete
address.
• If user does not provide required information then he cannot
add a rumor.
Status: Pass

4.2.1.4 Delete Rumor

Table 4.2.1.4: Delete Rumor Test Case

Delete Rumor Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-5
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: To delete a rumor
Pre-Req: User must be logged in
Test Data: • User session
Steps: Following steps will take place in test.
• User logged in
• Go to User Profile
• Delete the rumors.
Status: Pass

4.2.1.4 View Rumor Properties

Table 4.2.1.4: View Rumor Properties Test Case

Add Rumor Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-6
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: To view properties of a rumor
Pre-Req: User must click some rumor
Test Data: • None
Steps: Following steps will take place in test.
• Click on view detail link on any rumor and it will take user
to rumor page.
• On rumor page user can view all the properties of a rumor.
Status: Pass

4.2.1.4 Add Comment on Rumor

Table 4.2.1.4: Add Comment on Rumor Test Case

Add Comment on Rumor Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-7
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: To add comment on a rumor
Pre-Req: User must log in with disqus.
Test Data: • Rumor Id.
• User Id.
Steps: Following steps will take place in test.
• User logged in
• User click on any rumor detail page.
• Log in with disqus
• Add a comment.
Status: Pass

4.2.1.5 Approve/Disapprove Test Case


Table 4.2.1.5: Approve/Disapprove Test Case

Approve/Disapprove Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-8
Related UC/FR/NFR: UC-11, UC-12, UC-13, UC-14
Date: 16-7-2018
Purpose: To approve or disaprove a rumor
Pre-Req: User must be logged in to approve or disapprove a rumor
Test Data: • User Session
• User approval or disapproval in database
Steps: Following steps will take place in test.
• User not logged in
• Click on approve or disapprove
• Login Pop-up will open
• User Logged in
• Click on approve or disapprove

• If approval exists, remove the approval. otherwise add an


approval.

• Same for disapproval.

Status: Pass

4.2.1.4 View and Manage User Profile

Table 4.2.1.4: View and Manage User Profile Test Case

View and Manage User Profile Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-9
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: To view and manage user profile
Pre-Req: User must be logged in
Test Data: • User session
• User Information
Steps: Following steps will take place in test.
• User logged in
• User click on Profile Detail to view user profile.
• To manage user profile, user clicks on profile settings.
• From here user can edit its profile.
Status: Pass

4.2.1.4 Logout

Table 4.2.1.4: Add Rumor Test Case

Add Rumor Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-10
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: To logout from system.
Pre-Req: User must be logged in
Test Data: • User session
Steps: Following steps will take place in test.
• User takes cursor on upper right corner where user
information is displayed.
• User clicks on Logout.
• User successfully logout and redirected to login page.
Status: Pass

Admin

4.2.1.4 Login
Table 4.2.1.4: LoginTest Case

Login Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-11
Related UC/FR/NFR: UC-2
Date: 16-7-2018
Purpose: Only authenticated admin of this application will be logged in and
can perform actions.
Pre-Req: Admin must have account on this application with an email &
Password
Test Data: • Email
• Password
Steps: Following steps will take place in the test.
• Visit login Popup
• Visit actual login page
• Enter Email
• Enter Password
• The login screen is having the option to enter a username and
password with submit button('Enter the World of Rumors')
and an option of forgot the password.
• Admin is able to login with valid username and password.
• Admin is not able to login with invalid username and
password.
• Validation message displays in case admin leaves admin
email or password field blank
• For security purpose, in case of incorrect credentials, a
message is displayed to the user: " Email or Password is
wrong" instead of exact message pointing which field is
incorrect. A message like "incorrect username" will aid
hacker in brute forcing the fields one by one.
• Once logged in, clicking back button doesn't logout admin.
• When an admin is logged in, he cannot go back to login page
by all means.
Status: Pass
4.2.1.4 Manage Rumors

Table 4.2.1.4: Manage Rumors Test Case

Manage Rumors Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-12
Related UC/FR/NFR: UC-2
Date: 16-7-2018
Purpose: Manage all rumors as well as add Featured Rumors to the system.
Pre-Req: Admin must be logged in
Test Data: • Admin Session
Steps: Following steps will take place in the test.
• Logs In
• In the sidebar, click manage rumors.
• Edit Rumor by clicking on edit rumor icon
• delete rumor by clicking on delete rumor icon
• view rumor by clicking on view rumor icon
• Add featured rumor.
• Featured rumor cannot be uploaded without a photo.
Status: Pass

4.2.1.4 Manage Users

Table 4.2.1.4: Manage Users Test Case

Manage Users Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-13
Related UC/FR/NFR: UC-2
Date: 16-7-2018
Purpose: Manage all users as well as add users to the system.
Pre-Req: Admin must be logged in
Test Data: • Admin Session
Steps: Following steps will take place in the test.
• Logs In
• In the sidebar, click manage users.
• Edit user by clicking on edit user icon
• Delete user by clicking on delete user icon
• View user by clicking on view user icon
• Add users.
• Provide necessary credentials to add a user to the system.
Status: Pass

4.2.1.4 Settings

Table 4.2.1.4: Settings Test Case

Settingss Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-14
Related UC/FR/NFR: UC-2
Date: 16-7-2018
Purpose: Do main system changings like Header Footer information.
Pre-Req: Admin must be logged in
Test Data: • Admin Session
Steps: Following steps will take place in the test.
• Logs In
• In the sidebar, click Site Settings.
• Enter credentials.
• Edit it.
• A null value is not acceptable.
• Changings are applied on both admin and user panel.
Status: Pass

4.2.1.4 Send Notifications

Table 4.2.1.4: Site Settings Test Case


Site Settings Test Case
Test Engineer: Ayesha Mansha
Test Case ID: TC-15
Related UC/FR/NFR: UC-2
Date: 16-7-2018
Purpose: Manage all rumors as well as add Featured Rumors to the system.
Pre-Req: Admin must be logged in
Test Data: • Admin Session
Steps: Following steps will take place in the test.
• Logs In
• In the sidebar, click Notification.
• Enter user email.
• Email must be in database.
• Notification will be sent through email when right
information will be provided.
Status: Pass

4.2.1.4 Logout

Table 4.2.1.4: Add Rumor Test Case

Add Rumor Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-16
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: To logout from system.
Pre-Req: Admin must be logged in
Test Data: • Admin session
Steps: Following steps will take place in test.
• In the Sidebar, on lower left corner, click on "Logout".
• It will destroy the session and redirect admin to Login page.
• User cannot go to login page on clicking "Go Back" sign.
Status: Pass
4.2.1.4 Listing with Map

Table 4.2.1.4: Listing with Map Test Case

Listing with Map Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-17
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: Show rumors on particular location on map
Pre-Req: User must be on Home Page
Test Data: • Rumor details.
Steps: Following steps will take place in test.
• Add a rumor
• Check if the rumor apears on map on particular location.
• Enabled current location to check rumors on map of user's
current location.
• Disable current location to check rumors on default map
position with trending rumors.
Status: Pass

4.2.1.4 Verification of Rumors.

Table 4.2.1.4: Verification of Rumors Test Case

Verification of Rumors Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-18
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: Verify rumors on the base of approvals and disapprovals.
Pre-Req: Rumor must be approved or disapproved
Test Data: • Rumor details.
Steps: Following steps will take place in test.
• Approve a rumor
• On clicking again rumor must be dis-approved.
• Disapprove a rumor
• On clicking again rumor must be dis-disapproved.
• If approvals are more than disapprovals then approved sign
appears
• If approvals are less than disapprovals then disapproved sign
appears
• In case approval or disapproval are equal in numbers, there
must be no sign on rumor showing it as neutral.
Status: Pass

4.2.1.4 Classification of Rumors.

Table 4.2.1.4: Classification of Rumors Test Case

Classification of Rumors Test Case

Test Engineer: Ayesha Mansha


Test Case ID: TC-19
Related UC/FR/NFR: UC-7, UC-8, UC-9, UC-10
Date: 16-7-2018
Purpose: Classify rumors
Pre-Req: Rumor must exit.
Test Data: • Rumor details.
Steps: Following steps will take place in test.
• Add a rumor.
• Add rumor category
• Add rumor location
• Now to test this on Home page search it by category
• search it by location.
• Rumor is classified on the basis of category and location.
Status: Pass
4.2.2 Cross Browser Compatibility Test Case

Table 4.2.2: Cross Browser Compatibility Test Case

Cross Browser Compatibility Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-20
Related UC/FR/NFR: NFR-6
Date: 16-7-2018
Purpose: To check compatibility of this application on different browsers like
Google Chrome, Mozilla Firefox and Opera
Pre-Req: Browser must be updated
Test Data: • Browsers
Steps: Following steps will take place in test.
• Opened this system on Chrome
• Opened this system on Mozilla
• Opened this system on Explorer
• System is responsive.
Status: Pass

4.2.3 Performance Test Case

Table 4.2.3: Performance Test Case

Performance Test Case


Test Engineer: Ayesha Mansha
Test Case ID: TC-21
Related UC/FR/NFR: NFR-4
Date: 16-7-2018
Purpose: To make sure the performance of this application is steady
Pre-Req: User must visit this application thoroughly
Test Data: • Delay Factor
• Time
• Stress
Steps: Following steps will take place in test,
• Click all buttons in this application
• Check all the features of this application
• Load system with as much commands as possible.
Status: Pass
USER MANUAL

USER MANUAL

• Welcome Page of Rumor Junction

Whenever a user or a guest opens the website, this is the landing page. Welcome Page
shows has two options, either a user can allow his current location or can see trending
rumors.

Figure 1: Welcome Page

• Home Page of Rumor Junction


Whenever a user or a guest opens the website, this is the landing page. Home Page shows
current location map in case user provides its current location otherwise default map will
be displayed. Featured rumors and normal rumors are displayed here too. In the sidebar
all the categories are displayed to search by category and all the trending rumors are
displayed. User can also search rumors of some particular rumor using search option.
Figure 1: Home Page

• Sign-Up

Sign-Up can be accesseed from following ways:

1- From the header sign-up option.

2- By trying to access any action that only user can perform.

3- From the link in Login Page.

A user can become a rumor by entering required credentials.

Figure 1: Sign-Up Pop-up


Figure 1: Sign-Up Page

• Login

There are multiple paths to access login feature of the system:

1- From the header sign-in option.

2- From the link in the footer.

3- By trying to access any action that only user can perform.


A user can enter the system by enter the authentic credentials.

Figure 1: Login Page


Figure 1: Login Pop-up

• Add Rumor

To add a rumor it is must for a user to be logged in. Add rumor page can be accessed
through here:

1. From the dropdown on upper left corner where user information is displayed.

2. From the link in footer.

User must enter necessary credentials to upload a rumor, like rumor title, category,
location , description and photo. Rumor photo is not compulsory, a "no-image" photo is
uploaded on its place if user does not upload any photo.
Figure 2: Add Rumor

• Forget Password

On Login page there is a link to "Forget Password". User can get a reset password option
by entering the email address.

Figure 3: Examples

• User Profile

On the upper right corner of website, user information is displayed.

Pointing cursor on it will open a dropdown.

And in this drop down there is an option of "Profile Details". Clicking profile details will
open user profile. It displays user information in detail along with the rumors posted by
user.
Figure 3: Examples

• Profile Settings

On the upper right corner of website, user information is displayed.

Pointing cursor on it will open a dropdown.

And in this drop down there is an option of "Profile Settings". Clicking profile settings
will open user profile. User can edit each and everything related to user personal profile
from profile settings.
Figure 3: Examples

• Approve or Disapprove a Rumor

User can approve or disapprove a rumor by clicking on respective icons displayed on


every rumor

Figure 3: Examples

• View Rumor Properties


User can view rumor properties by clicking on View Details button on every rumor. It
will open rumor page. All rumor properties will be displayed on rumor page.
Figure 3: Examples

• Featured Rumors

Featured Rumors are the rumors uploaded by the admin from admin panel. They are
displayed only on Home Page of website.

Featured Rumors are displayed on the home page under the map section.

Figure 3: Examples

• Search By Location

User can search a rumor by rumor location by entering the respective location (Country,
State and City) in search field. Search Field is on Home page, in the lower part of map.

Figure 3: Examples
• Search By Category
User can search a rumor by rumor category by clicking the rumor category in the sidebar.
It will display all the rumors will same category.

After I clicked the first category "Eat & Drink". It searched the rumors with this category
and displayed me the result.
Figure 3: Examples

ADMIN

• Login

Admin can login by acessing the admin login page and entering the authentic credentials.

Figure 3: Examples
• Stats

Admin can view the system stats on the dashboard.

Figure 3: Examples

• Manage Regular Rumors


Admin can manage (edit, delete, view) regular rumors from the sidebar.

Manage Rumors -> Regular Rumors.

Figure 3: Manage Regular Rumors

• Manage Featured Rumors


Admin can manage (edit, delete and view) featured rumors from the sidebar.

Manage Rumors -> featured Rumors.

Figure 3: Manage Featured Rumors

• Add Featured Rumors


Admin can add featured rumors from the sidebar.

Manage Rumors -> add featured Rumors.

Figure 3: Add Featured Rumor

• Manage Users
Admin can manage (edit, delete and view) users from the sidebar.

Manage Users -> All users

Figure 3: Manage Users

• Add Users
Admin can add users from the sidebar.

Manage Users -> Add users

Figure 3: Add Users

• Manage Categories
Admin can manage (edit, delete and view) categories from the left sidebar.

Manage Category -> All category

Figure 3: Manage Categories

• Edit Category
Admin can edit any category from the sidebar.

Manage Category -> All categories -> Edit category

Figure 3: Examples

• Add Category
Admin can add category from the left sidebar.

Manage Category -> Add Category

Figure 3: Add Category

• Site Settings
Admin can edit the site settings from here. Updating site settings will update the header
and footer on both admin and user side.

Settings -> Site Settings

Figure 3: Site Settings

• Send Notifications
Admin can send notifications to the users through their email. It can be access from "send
notification" in the left sidebar.

Figure 3: Examples

• Profile Settings and Preview


Admin can preview and update profile settings from the "Profile" in left sidebar.

Figure 3: Profile Settings and Preview

• Logout
Admin can logout from the system by clicking on Logout button in the lower left corner
of the admin panel.

Figure 3: Admin Logout


REFERENCES

Vous aimerez peut-être aussi