Black Box Test Cases For Grandfatherclocks Computer Science Essay

Published:

This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.

The objective of this assignment is to define a set of black box test cases for GrandfatherClocks which will be moving their website to cloud. More detailed test cases will be built as the project develops.

2. Box Box Testing

Black box testing refers to testing of a certain application without understanding the logic of the programming code. The testers executing black box testing will only need to interact with the functionality of the application.

In this project, the Graphical User Interfaces (GUI) of GrandfatherClocks' website will be tested for errors involving user's inputs and system output displayed in the GUIs.

3. Functionality Test Cases

The test cases identified in this section are divided by the 4 different users: Customers, Employee, Mr. Hand and lastly the Courier. Each user has slightly different functionalities, and each of these functionalities should be working to expectation before further tests are being carried out. The key functions of the website for each user are identified as:

Customers:

(1) Registration function

(2) Login function

(3) Update Profile function

(4) Payment function

(5) Track Progress of Repair and Reconditioning work function

(6) Log out function

Employee

(1) Login function

(2) Update Status function

(4) Input Schedule function

(5) Track Progress of Repair and Reconditioning work function

(6) Log out function

Courier

(1)Login function

(2) Update Status function

(4) Input Schedule function

(6) Log out function

Mr. Hand

Login function

(2) Update Status function

(4) Input Schedule function

(5) Track Progress of Repair and Reconditioning work function

(6) Log out function

The tests outlined below are the black box and acceptance test cases for the Coffee Maker Example. The CoffeeMaker is a command line interface application that will server as the software of a Coffee Maker. 

The tests outlined are the black box test cases for the main interface for the GrandfatherClocks' website.

TestID

Pre Condition(s)

Specification(s)

Expected result(s)

Actual result

mainPage1*

Access main page

Enter Menu Option: "Customer Page"

Customers Options Displays

mainPage2

Access main page

Enter Menu Option: "Employee"

Employee Displays

mainPage3

Access main page

Enter Menu Option: "Supplier"

Supplier Displays

mainPage4

Access main page

Enter Menu Option: "Customer Page"

Customers Options Displays

Customer Registration Test Case

TestID

Pre Condition(s)

Specification(s)

Expected result(s)

Actual result

Customeridtest1*

Access Customer Registration Page

Enter a user ID with less than 4 characters.

Example: usr

Invalid userID input

Customeridtest2

Access Customer Registration Page

Enter a user ID with more than 12 characters.

Example: twelveletters

Invalid userID input

Customeridtest3

Access Customer Registration Page

Enter a user ID with alphabets only.

Example: abcdefg

Valid userID input

Customeridtest4

Access Customer Registration Page

Enter a user ID with alphabets and numbers.

Example: abcdefg123

Valid userID input

Customeridtest5

Access Customer Registration Page

Enter a UserID with alphabets, numbers and underscore

Userid: user_123

Valid userID input

Customeridtest6

Access Customer Registration Page

Enter a UserID with alphabets, numbers and dash.

Userid: user-123

Valid userID input

Customeridtest7

Access Customer Registration Page

Enter a UserID with special character or symbols.

Userid: user&123

Invalid userID input

Customeridtest8

Access Customer Registration Page

Enter a UserID starting with underscore.

Userid: _user123

Invalid userID input

Customeridtest9

Access Customer Registration Page

Enter a UserID starting with dash.

Userid: -user123

Invalid userID input

Customeridtest10

Access Customer Registration Page

Enter a UserID starting with special symbols.

Userid: $user123

Invalid userID input

PasswordTest1*

Access Customer Registration Page

Enter password with less than 6 characters.

Pwd: passw

Invalid password. Password is too short.

PasswordTest2

Access Customer Registration Page

Enter password with more than 25 characters.

Pwd: longpasswordisfunandlongpassword

Invalid password.

Password is too long.

PasswordTest3

Access Customer Registration Page

Enter password:

Pwd: iamauser

Valid password

PasswordTest4

Access Customer Registration Page

Enter password with special characters:

Pwd: !!@#@#@$#$%$%$^%&*&*

Valid password

FirstNameTest1*

Access Customer Registration Page

Enter First Name.

Example: Ong

Valid Name

FirstNameTest2

Access Customer Registration Page

Enter First Name with symbols.

Example: @N&

Invalid Name

FirstNameTest3

Access Customer Registration Page

Enter First Name with numbers.

Example: Ong12321

Invalid Name

LastNameTest1*

Access Customer Registration Page

Enter Last Name.

Example: Chin Wee

Valid Name

LastNameTest2

Access Customer Registration Page

Enter Last Name with symbols.

Example: Ch!n W&&

Invalid Name

LastNameTest3

Access Customer Registration Page

Enter Last Name with numbers.

Example Chin W33

Invalid Name

DateOfBirthTest1*

Access Customer Registration Page

Select from dropdown list your day.

Select: 01-31

Select from dropdown list your month.

Select: 01-12

Select from dropdown list your year.

Select: 1900-2013

(One or more field not selected.)

Valid Date of Birth

DateOfBirthTest2

Access Customer Registration Page

Select from dropdown list your day.

Select from dropdown list your day.

Select: 01-31

Select from dropdown list your month.

Select: 01-12

Select from dropdown list your year.

Select: 1900-2013

(All fields entered.)

Submission failed! Please complete your date of birth before submitting

BillingAddressTest1*

Access Customer Registration Page

Enter address:

Example: 9 bukit batok central

Valid Address

BillingAddressTest2

Access Customer Registration Page

Enter address for more than 100 alphabet:

Example: 9 bukit batok central link 12345678901234567890 12345678901234567890 12345678901234567890 12345678901234567890

Disable the 101st character onwards that is being keyed in.

EmailTest1*

Enter email address @ and full stop

Email Address: cw@emailaddress.com

Valid email address

EmailTest2

Enter email address with no @ but with full stop.

Email Address: cwemailaddress.com

Invalid email address

EmailTest3

Enter email address with no @ and full stop.

Email Address: cwemailaddresscom

Invalid email address

EmailTest4

Enter email address with other special characters other than @ and full stop.

Email Address: c##w@emailaddress.com

Invalid email address

SubmitButtonTest1

Access Registration Page with all fields correctly entered

Click on Submit button

Registration successful is shown. Directed to Homepage!

SubmitButtonTest2

Access Registration Page. Do not enter any field

Click on Submit button

Submission failed!

Please fill up the following fields:

(all other fields that are required to be filled up)

SubmitButtonTest3

. Access Registration Page with a few fields correctly entered.

Click on Submit button

Submission failed! Please complete your registration form before submitting.

CancelButtonTest1*

Access Registration Page with no fields entered.

Click the cancel button.

Directed back to Login page

CancelButtonTest2

Access Registration Page with all fields correctly entered.

Click the cancel button.

Directed back to Login page

The Customer Registration Test Case aims to test the functions and fields found in the Registration Page. Registration is an important function for present and potential new customers to register to view and purchase clocks and track progress of repair and reconditioning work.

The test checks for user errors that might occur during registration so as to minimize the incident of errors that may occur when potential customers register with GrandfatherClocks. The test case checks for missing and incorrect input by the users and quickly prompts them once they complete each fields.

Test ID

Precondition(s)

Specification(s)

Expected result(s)

LoginTest1*

Access Login Page

Enter a set of valid UserID and its correct Password

Click Login button.

Directed to Customer Page.

LoginTest2

Access Login Page.

Enter a valid UserID but leave Password field blank

Click Login button.

Login failed. Please enter a valid UserID and Password.

LoginTest3

Access Login Page

Enter a valid Password but leave UserID field blank

Click Login button.

Login failed. Please enter a valid UserID and Password.

LoginTest4

Access Login Page

Enter a valid UserID and wrong Password

Click Login button.

Login failed. Please enter a valid UserID and Password.

LoginTest5

Access Login Page

Enter a valid Password and wrong UserID

Click Login button.

Login failed. Please enter a valid UserID and Password.

LoginTest8

Access Login Page

Enter a set of wrong UserID and wrong Password

Click Login button.

Login failed. Please enter a valid UserID and Password.

LoginTest7

Access Login Page

Do not enter anything in the UserID and Password field

Click Login button.

Login failed. Enter a valid UserID and Password. Please register with us by clicking on Register if you do not have an account.

RegisterButtonTest1

Access Login Page

Click Register button.

Direct to Registration Page.

The Login Function test Case aims to test functions of the Login page. The test case tests for all fields found in the Login page as stated in Appendix A.

It is crucial that the Login function is working well as the customers will need to execute further functions like purchasing and checking of status of repairs. The test case is designed to test for both valid combination of UserID and correct password to be able to login successfully.

Testing the Customer Login functions aims to secure confidentially of customers' information to verifying the customers' combination of UserID and password. This ensures the userID can be logged in only by the correct password, not any random password.

Test ID

Precondition(s)

Specification(s)

Expected result(s)

PwdUpdateTest1*

Successful Login with a valid set of Login Details.

Access Update_profile page by selecting Update_profile button.

Update password:

Pwd: mypassword

Valid password.

PwdUpdateTest2

Successful Login with a valid set of Login Details.

Access Update_profile page by selecting Update_profile button.

Update password with more than 25 characters.

Pwd: passwordsaregreatfoodmaygodblessu

Invalid password.

Password is too long.

PwdUpdateTest3

Successful Login with a valid set of Login Details.

Access Update_profile page by selecting Update_profile button.

Update password with less than 5 characters.

Pwd: pass

Invalid password. Password is too short.

BillingAddressUpdateTest1*

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Enter a valid address.

Address: Lot21, Lane 5, Pivot Street, San Francisco, United States of America

Valid Address

BillingAddressUpdateTest2

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Update address of more than 90 characters.

Address: Lot21, Lane 5, Street Pivot, Lower Delta, Under Rainbow Bridge , San Francisco, United States of America………….

Unable to carry on typing with address of more than 90 characters (including spaces)

BillingAddressUpdateTest3

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Remove Local Address

Valid action. No error in updating.

ForeigAddressUpdateTest1

Update address of less than 10 characters.

Address: Pivot Dr

Invalid address. Please enter your real updated address.

ForeigAddressUpdateTest2

Update address of more than 90 characters.

Address: Lot21, Lane 5, Street Pivot, Lower Delta, Under Rainbow Bridge , San Francisco, United States of America………….

Unable to carry on typing with address of more than 90 characters (including spaces)

ForeigAddressUpdateTest3

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Enter a valid address.

Address: Lot21, Lane 5, Pivot Street, San Francisco, United States of America

Valid Address

ForeigAddressUpdateTest4

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Remove Foreign Address

Valid action. No error in updating.

ForeignAddressUpdateTest5

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Remove Foreign Address

Invalid action. Please fill in either 1 or both addresses.

EmailAddUpdateTest1

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Update email address with no @ and full stop.

Email Address: thisismyemailaddress

Invalid email address

EmailAddUpdateTest2

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Update email address with no @ but with full stop.

Email Address: thisismy.emailaddress

Invalid email address

EmailAddUpdateTest3

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Update email address with other special characters other than @ and full stop.

Email Address: thisismy%email$address

Invalid email address

EmailAddUpdateTest4

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Update email address @ and full stop

Update Address: thisismymail@gmail.com

Valid email address

EmailAddUpdateTest5

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Updatewith the email address you register with.

Email address is in the system. Do not need updating.

SubscriptionTest1

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Select the othersubscription type in the drop down list. E.g. If Pay-Per-View is selected during registration, select Annual Subscription.

A pop up window will appear defining the terms and conditions the new Subscription selected. Select the "Agree" and click on the Ok button to successfully update your new Subscription.

UpdateButtonTest1

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Do not update any fields found.

Click Update Button.

An update confirmation window will pop up. Click Ok to update. Update is successful after Ok is clicked.

UpdateButtonTest2

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Enter 1 invalid field

Click Update Button

Update Failed! Please re-enter the invalid field below:

"NameofInvalidField"

CancelUpdateButtonTest1

Successful Login with a valid set of Login Details

Access Update_profile page by selecting Update_profile button.

Click the cancel button.

Directed back to Home page

Writing Services

Essay Writing
Service

Find out how the very best essay writing service can help you accomplish more and achieve higher marks today.

Assignment Writing Service

From complicated assignments to tricky tasks, our experts can tackle virtually any question thrown at them.

Dissertation Writing Service

A dissertation (also known as a thesis or research project) is probably the most important piece of work for any student! From full dissertations to individual chapters, we’re on hand to support you.

Coursework Writing Service

Our expert qualified writers can help you get your coursework right first time, every time.

Dissertation Proposal Service

The first step to completing a dissertation is to create a proposal that talks about what you wish to do. Our experts can design suitable methodologies - perfect to help you get started with a dissertation.

Report Writing
Service

Reports for any audience. Perfectly structured, professionally written, and tailored to suit your exact requirements.

Essay Skeleton Answer Service

If you’re just looking for some help to get started on an essay, our outline service provides you with a perfect essay plan.

Marking & Proofreading Service

Not sure if your work is hitting the mark? Struggling to get feedback from your lecturer? Our premium marking service was created just for you - get the feedback you deserve now.

Exam Revision
Service

Exams can be one of the most stressful experiences you’ll ever have! Revision is key, and we’re here to help. With custom created revision notes and exam answers, you’ll never feel underprepared again.