Test Plan and Cases (TPC) Version 2.0 Version no x.xx

Test Plan and Cases (TPC)

ShareWeb

Team 5

Xuan Wang: Project Manager, Life Cycle Planner

LiangHao Gao: Developer, Tester

Xi Chen: Developer, System Architect, Tester

Yuxuan Li: Prototyper

Zhangbiaoge Tian: Developer, Operational Concept Engineer, Tester

Chuhan Zheng: Feasibility Analyst, Requirements Engineer, Tester

Sahar Pourmohammadhosseini: IIV&V, Quality Focal Point

12/05/16

Version History

Date / Author / Version / Changes made / Rationale /
·  11/27/16 / ·  CZ / ·  1.0 / ·  Complete TPC for use with ShareWeb v1.0 / ·  Initial draft for TRR
·  12/05/16 / ·  XW / ·  2.0 / ·  Add a new test case TC-07-06 / ·  During the TRR/ARB, one of TA mentioned this test case, so we added here.

Table of Contents

Test Plan and Cases (TPC) i

Version History ii

Table of Contents iii

Table of Tables iv

1. Introduction 6

2. Test Strategy and Preparation 7

2.1 Hardware preparation 7

2.2 Software preparation 7

2.3 Other pre-test preparations 7

2.4 Requirements Traceability 7

3. Test Identification 8

3.1 TC-01: Login 8

3.2 TC-02: Logout 12

3.3 TC-03: Browse My Photos & My Events 13

3.4 TC-04 Events Manage 15

3.5 TC-05: Search Event 17

3.6 TC-06: Manage Photos 20

3.7 TC-07 Operate Photos 24

4. Resources and Schedule 29

4.1 Resources 29

4.2 Staffing and Training Needs 30

4.3 Schedule 30

ii

TPC_TRR_F16a_T05_V2.0.doc Version Date: 12/05/16

Test Plan and Cases (TPC) Table of Contents

Table of Tables

Table 1: Requirements Traceability Matrix 7

Table 2: TC-01-01 Login with username and password successfully 8

Table 3: TC-01-02 User is unable to login with wrong username 9

Table 4: TC-01-03 User is unable to login with wrong password 10

Table 5: TC-01-04 Login failed without internet connection or Share server is down 11

Table 6: TC-01-05 User can’t login without filling both username and password fields 11

Table 7: TC-02-01 Logout 13

Table 8: TC-03-01 Browse My Photos 14

Table 9: TC-03-02 Browse My Events 14

Table 10: TC-04-01 Create private event successfully 15

Table 11: TC-04-02 Create event fail 16

Table 12: TC-04-03 Create public event successfully 16

Table 13: TC-04-04 Delete Event 17

Table 14: TC-05-01 Check searching for public event with correct information 18

Table 15: TC-05-02 Check searching for private event with correct information 18

Table 16: TC-05-03 Check searching for public and private event with incorrect information 19

Table 17: TC-05-04 Check servererror status 19

Table 18: TC-06-01 Upload pictures 21

Table 19: TC-06-02 Upload over-size picture 22

Table 20: TC-06-03 Upload files other than picture 22

Table 21: TC-06-04 Download one picture 23

Table 22: TC-06-05 Download 100 pictures 23

Table 23: TC-06-06 Delete Photos 24

Table 24: TC-07-01: Like/Unlike a picture 25

Table 25: TC-07-02 Comment a picture 26

Table 26: TC-07-03 Comment without content 26

Table 27: TC-07-04 Delete a comment 27

Table 28: TC-07-05 Like/Comment related operations on deleted picture 28

Table 29: TC-07-06 Comment with special content 29

Table 29: Testing Schedule 30

ii

TPC_TRR_F16a_T05_V2.0.doc Version Date: 12/05/16

Test Plan and Cases (TPC) Version 2.0

1.  Introduction

The purpose of the Test Plan and Cases (TPC) is to check if our web app meet all the important win-win conditions described in winbook (on mainstream browsers). We are trying to cover all the capability requirements in the tests. The tests focus on software level and we need to make sure if our website works well in both sunny day and rainy day cases.

2.  Test Strategy and Preparation

We will apply value-based test prioritization and requirements-test traceability on the tests. We will consider both sunny day and rainy day scenarios on all the main function of the web app. The tests would be done manual.

2.1  Hardware preparation

The only hardware we need would be laptops, desktops, or tablets with browser and internet connection.

2.2  Software preparation

We need IE, Chrome, Firefox, and Safari to test our website.

2.3  Other pre-test preparations

Create some testing accounts from Share app. Create some events (public and private) and upload some pictures in advance.

2.4  Requirements Traceability

Table 1: Requirements Traceability Matrix

Requirement ID / Verification Type / Test Case ID (if applicable)
CR-1: Log In / Testing / TC-01: Login
TC-03: Browse My Photos & My Events
CR-2: Log Out / Testing / TC-02: Logout
CR-3: Upload Picture
CR-4: Delete Picture
CR-5: Upload Multiple Pictures
CR-8: Download Multiple Pictures / Testing / TC-06: Manage Photos
CR-6: Like Picture
CR-10: Comment Picture / Testing / TC-07 Operate Photos
CR-11: Search Event’s Pictures / Testing / TC-05: Search Event
CR-12: Create Private Event
CR-13: Create Public Event
CR-14: Delete Event / Testing / TC-04 Events Manage

3.  Test Identification

3.1  TC-01: Login
3.1.1  Test Level

Unit Testing / Software Item Level

3.1.2  Test Class

Functionality Test & Erroneous test

3.1.3  Test Completion Criteria

The test will be completed when:

·  User is able to login his/her account with valid username and correct password.

·  User cannot login his/her account with invalid username or invalid password.

·  User can see appropriate error message when inputting wrong password or username.

·  User cannot click login button without fill both username and password box.

·  User cannot login to Share homepage when Share server is down.

3.1.4  Test Cases

·  TC-01-01 User login with username and password successfully

·  TC-01-02 User is unable to login with wrong username

·  TC-01-03 User is unable to login with wrong password

·  TC-01-04 Login failed without internet connection or Share server is down

·  TC-01-05 User can’t login without filling both username and password fields

Table 2: TC-01-01 Login with username and password successfully

Test Case Number / TC-01-01 Login with username and password successfully
Test Item / Test function of Share website that user is able to login with correct username and password in to his/her homepage when internet connected and server is up.
Test Priority / M (Must Have)
Pre-conditions / - User doesn’t login to the Share website
- Share website display the form for user login
Post-conditions / Use login to Share websitehomepage successfully.
Input Specifications / - Enter the username and password
- Click Login
Expected Output Specifications / User is logged into his/her own homepage of Share Website.
Pass/Fail Criteria / Pass criteria:
The test will pass when meet all the following conditions:
- System successfully logged in
-User is directed to the homepage
Fail Criteria:
-When the pass criteria are not met
Assumptions and Constraints / The user had an account
The device is connected to the internet
The Share server is up
Dependencies / N/A
Traceability / WC_3957:As a user, I can log in/out, so that I can use this system.

Table 3: TC-01-02 User is unable to login with wrong username

Test Case Number / TC-01-02 User is unable to login with wrong username
Test Item / Test error handling of Share website that user can’t login with username tested with wrong credentials.
Test Priority / M (Must Have)
Pre-conditions / - User doesn’t login to the Share website
- Share website display the form for user login
Post-conditions / An error message about wrong username will be shown in screen to inform user change his/her input.
Input Specifications / - Enter wrong username and password
- Click Login
Expected Output Specifications / An “Invalid username/password combination” will be shown in screen and Share website remain in login page.
Pass/Fail Criteria / Pass Criteria:
The test will pass when all the following conditions are met
The user fails to authenticate
The user is not logged in
An error message is shown correctly
Fail Criteria:
Other than pass criteria
Assumptions and Constraints / Wrong username is entered
Both username and password fields are filled
Internet is ok
Share website server runs well
Dependencies / N/A
Traceability / WC_3957:As a user, I can log in/out, so that I can use this system.

Table 4: TC-01-03 User is unable to login with wrong password

Test Case Number / TC-01-03 User is unable to login with wrong password
Test Item / Test error handling of Share website that user can’t login with password tested with wrong credentials.
Test Priority / M (Must Have)
Pre-conditions / - User doesn’t login to the Share website
- Share website display the form for user login
Post-conditions / An error message about wrong password will be shown in screen to inform user change his/her input.
Input Specifications / - Enter username and wrong password
- Click Login
Expected Output Specifications / An “Invalid username/password combination” will be shown in screen and Share website remain in login page.
Pass/Fail Criteria / Pass Criteria:
The test will pass when all the following conditions are met
The user fails to authenticate
The user is not logged in (remain in login page)
An error message is shown correctly
Fail Criteria:
Other than pass criteria
Assumptions and Constraints / Wrong password is entered
Both username and password fields are filled
Internet is ok
Share website server runs well
Dependencies / N/A
Traceability / WC_3957:As a user, I can log in/out, so that I can use this system.

Table 5: TC-01-04 Login failed without internet connection or Share server is down

Test Case Number / TC-01-04 Login failed without internet connection or Share server is down
Test Item / Test error handling that user can’t log in to Share homepage when there is no internet connection.
Test Priority / M (Must Have)
Pre-conditions / - User doesn’t login to the Share website
- Share website display the form for user login
Post-conditions / An error message about internet connection will be shown in screen to inform user Share server is down.
Input Specifications / - Enter the email and password
- Click Log in
Expected Output Specifications / An “Oops! Something wrong in Share server…” will be shown in screen and Share website remain in login page.
Pass/Fail Criteria / Pass Criteria:
The test will pass when all the following conditions are met
The user is not logged in (remain in login page)
An error message is shown correctly
Fail Criteria:
When the pass criteria are not met
Assumptions and Constraints / Both username and password fields are filled
User computer is connected to the internet
Dependencies / N/A
Traceability / WC_3957:As a user, I can log in/out, so that I can use this system.

Table 6: TC-01-05 User can’t login without filling both username and password fields

Test Case Number / TC-01-05 User can’t login without filling both username and password fields
Test Item / Test input verification function that user can’t click login button without filling both username and password.
Test Priority / M (Must Have)
Pre-conditions / - User doesn’t login to the Share website.
- User doesn’t enter any character in either username or
password box
- Share website display the form for user login.
Post-conditions / Unavailable login button which user can’t click to login
Input Specifications / Empty username and password fields
Fill only username box
Fill only password box
Expected Output Specifications / - Unavailable login button which user can’t click to login
- Share Website still remains in login page .
Pass/Fail Criteria / Pass Criteria:
The test will pass when all the following conditions are met
The user is not logged in (remain in login page)
An unavailable login button
Fail Criteria:
When the pass criteria are not met
Assumptions and Constraints / - Either one of username and password is filled or empty form
for user login
- Share website runs well
Dependencies / N/A
Traceability / WC_3957:As a user, I can log in/out, so that I can use this system.
3.2  TC-02: Logout
3.2.1  Test Level

Unit Testing / Software Item Level

3.2.2  Test Class

Functionality Test

3.2.3  Test Completion Criteria

This test will be completed when:

·  User is able to log out his/her account.

3.2.4  Test Cases

·  TC-02-01 Logout

Table 7: TC-02-01 Logout

Test Case Number / TC-02-01 Logout
Test Item / Test logout function of Share website.
Test Priority / M (Must Have)
Pre-conditions / User has logged in. (User is in the homepage of Share Web)
Post-conditions / - User will be logged out from Share Web
- User will redirect to Share Web login page
Input Specifications / - User click on settings drop menu
- User click logout button of settings
Expected Output Specifications / User will log out from Share website and redirect to login page.
Pass/Fail Criteria / Pass criteria:
The test will pass when meet all the following conditions:
User is logged out from Share Website
Share website redirect to the login page
Fail Criteria:
When the pass criteria are not met.
Assumptions and Constraints / User is already logged in to Share (User is in the homepage of Share Web).
Dependencies / TC-01
Traceability / WC_3957:As a user, I can log in/out, so that I can use this system.
3.3  TC-03: Browse My Photos & My Events
3.3.1  Test Level

Unit Testing / Software Item Level

3.3.2  Test Class

Functionality test

3.3.3  Test Completion Criteria

This test will be completed when:

·  A user can browse My Photos page.

·  A user cam browse My Events page.

3.3.4  Test Cases

·  TC-03-01 Browse My Photos

·  TC-03-02 Browse My Events

Table 8: TC-03-01 Browse My Photos

Test Case Number / TC-03-01 Browse My Photos
Test Item / A user want to browse his photos.
Test Priority / M (Must Have)
Pre-conditions / The user has already logined.
Post-conditions / The My Photos page is shown.
Input Specifications / Click on the My Photos pill.
Expected Output Specifications / My Photos page appear.
Pass/Fail Criteria / Pass criteria:
·  My Photos page appear: all the user's photos are list in the page.
·  The My Photos pill turn blue.
Fail criteria:
·  Other than pass criteria.
Assumptions and Constraints / ·  User's device works well (with connection to server and server is on)
Dependencies / TC-01
Traceability / WC_3975(Iss_1970): As a user, I can view the list of events and pictures, so that I can review all the pictures and events.

Table 9: TC-03-02 Browse My Events