tPlan

21
Test Plan Test Plan Presented by

description

Blab

Transcript of tPlan

Page 1: tPlan

Test PlanTest PlanPresented by

Page 2: tPlan

OutlineOutlineRequirement and DesignTest PlanTest case sampleTest demo

◦Unit test◦Load test

Page 3: tPlan

Requirement and DesignRequirement and DesignIn this part, we have refined the

original use caseWe also refine the sub-system

model with the system architecture

Page 4: tPlan
Page 5: tPlan
Page 6: tPlan
Page 7: tPlan

The system architecture describe The system architecture describe the OURS system in the view of the OURS system in the view of layer modellayer model

Page 8: tPlan

OutlineOutlineRequirement and DesignTest PlanTest case sampleTest demo

◦Unit test◦Load test

Page 9: tPlan

Test planTest planUnit testFR TestingNFR Testing

Page 10: tPlan

OutlineOutlineRequirement and DesignTest PlanTest case sampleTest demo

◦Unit test◦Load test

Page 11: tPlan

Test case sampleTest case sampleWe choose the Log in and Log

out test cases as the test case sample

Page 12: tPlan

Log in successfullyLog in successfully

Name Test case: User logs in successfully with valid username and password

Requirement The user is logged in correctly after providing correct username and password

Preconditions The user is at the homepage or the log in page

Steps 1. Provide valid username in the username textbox2. Provide valid password in the password textbox3. Click on log in button

Expected results 1. The user is redirected to the specific homepage of that user

Page 13: tPlan

Provide invalid usernameProvide invalid username

Name Test case: Fail to login the system when providing invalid username

Requirement The user is not logged in when providing invalid username

Preconditions The user is at the homepage or the log in page

Steps 1. Provide invalid username in the username textbox2. Provide password in the password textbox or let

password field be empty3. Click on log in button

Expected results

The user is redirected to the error page with a warning “You have provided invalid username or invalid password”

Page 14: tPlan

Valid username and invalid Valid username and invalid passwordpassword

Name Test case: Fail to login the system when providing valid username and invalid password

Requirement The user is not logged in when providing valid username and invalid password

Preconditions The user is at the homepage or the log in page

Steps 1. Provide valid username in the username textbox 2. Provide invalid password in the password

textbox3. Click on log in button

Expected results

The user is redirected to the error page with a warning “You have provided invalid username or invalid password”

Page 15: tPlan

Provide empty usernameProvide empty username

Name Test case: Fail to login the system when providing empty username

Requirement The user is not logged in when providing empty username

Preconditions The user is at the homepage or the log in page

Steps 1. Provide empty username in the username textbox 2. Provide password in the password textbox or let

password field be empty3. Click on log in button

Expected results The user is redirected to the error page with a warning “You must provide both username and password”

Page 16: tPlan

Valid username and empty Valid username and empty passwordpassword

Name Test case: Fail to login the system when providing valid username and empty password

Requirement The user is not logged in when providing valid username and empty password

Preconditions The user is at the homepage or the log in page

Steps 1. Provide valid username in the username textbox 2. Provide empty password in the password textbox3. Click on log in button

Expected results

The user is redirected to the error page with a warning “You must provide both username and password”

Page 17: tPlan

Account locked after 3 Account locked after 3 timestimes

Name Test case: User account is locked after failing to log in 3 times

Requirement User account is locked after failing to log in 3 times with a specific username

Preconditions The user is at the homepage or the log in pageSteps 1. Provide valid username in the username textbox

or/and2. Provide invalid or empty password in the password

textbox3. Click on log in button4. Repeat above process for 3 times

Expected results 1. The user is redirected to the error page with a warning “You have provided invalid username or invalid password”

2. After the 3rd time, the user account with given user name is locked out and a warning is issued “Account locked. Please wait for 30 minutes or contact the administrator”

Page 18: tPlan

Simultaneously log inSimultaneously log in

Name Test case: User logs in the system using an account is being used by another user

Requirement User CAN NOT log in the system using account is being used by another user

Preconditions A given account is being used by user 1

Steps 1. User 2 provides username of user 1 exactly2. User 2 provides password of user 1 exactly3. Click on log in button

Expected results 1. User 2 is redirected to the error page with a warning “This account is being used by another user”

Page 19: tPlan

Account lockedAccount locked

Name Test case: User logs in the system using an account is being locked

Requirement User CAN NOT log in the system using account is being locked

Preconditions A given account is being locked by logging in fail 3 times

Steps 1. Provides username of given account being locked2. Provide password of given account being locked3. Click on log in button

Expected results

1. User is redirected to the error page with a warning “This account is being locked. Please wait for 30 minutes or contact the administrator”

Page 20: tPlan

OutlineOutlineRequirement and DesignTest PlanTest case sampleTest demo

◦Unit test◦Load test

Page 21: tPlan

QuestionQuestion & Answer& Answer

Thank you very Thank you very muchmuch