Search Clock From The Database 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.

Description: Clock is filter from the result of Test case 1, by the price. Price ranging from $10-$100, $101-$200, $201-$300, $301-$400, $401-$500, $501-$600, more than $600.

Pre-condition: Test case 2 can only be executed after Test case 1.

Step

Steps to Execute

Expected Results

1

Click "$10-$100" to filter the products according to price.

Website only display results with price that ranges from $10-$100.

2

Click "more than $600" to filter the products according to price.

Direct to search result page displaying "Not found".

Test case 3: Filter by type

Description: Clock is filter from the result of Test case 1, by types of the clock. Clock type ranging from Mantel, Grandfather, Cuckoo, Desk, Alarm and Wall.

Pre-condition: Test case 3 can only be executed after Test case 1.

Step

Steps to Execute

Expected Results

1

Click Mantel to filter products according to type.

Website only displays results with type that match "Mantel".

2

Click Alarm to filter products according to type.

Direct to search result page displaying "Not found".

Test case 4: Filter by manufacturer

Description: Clock is filter from the result of Test case 1, by manufacturer of the clock. Clock manufacturer from Bulova, Ergo, Hermle, Schneider, Seiko, Sligh.

Pre-condition: Test case 4 can only be executed after Test case 1.

Step

Steps to Execute

Expected Results

1

Click Bulova to filter products according to manufacturer.

Website only displays results with type that match "Bulova".

2

Click Seiko to filter products according to manufacturer.

Direct to search result page displaying "Not found".

Test case 5: Member registration

Description: New user can sign up to be a member.

Pre-condition: New user has no account.

Step

Steps to Execute

Expected Results

1

Click Register link.

Direct to registration page.

2

Enter all compulsory fields.

Click Register Button.

Website should display "Registration Successful".

3

Not all compulsory fields are entered.

Click Register Button.

Website should display popup error message of that respective field.

Test case 6: Verify first name validation

Description: Check if first name is in correct format.

Pre-condition: First name contains up to 35 characters.

Step

Steps to Execute

Expected Results

1

Enter up to 35 characters.

Click Register Button.

First name is accepted.

2

Enter digits.

Click Register Button.

Website should display popup error message "Please enter a valid first name".

3

Enter symbols.

Click Register Button.

Website should display popup error message "Please enter a valid first name".

4

Enter characters and digits.

Click Register Button.

Website should display popup error message "Please enter a valid first name".

5

Enter characters and symbols.

Click Register Button.

Website should display popup error message "Please enter a valid first name".

6

Enter digits and symbols.

Click Register Button.

Website should display popup error message "Please enter a valid first name".

7

Enter characters and digits and symbols.

Click Register Button.

Website should display popup error message "Please enter a valid first name".

8

Enter more than 35 characters.

Click Register Button.

Website should display popup error message "Please enter a valid first name".

9

No input is entered.

Click Register Button.

Website should display popup error message "Please enter a valid first name".

Test case 7: Verify last name validation

Description: Check if last name is in correct format.

Pre-condition: Last name contains up to 35 characters.

Step

Steps to Execute

Expected Results

1

Enter up to 35 characters.

Click Register Button.

Last name is accepted.

2

Enter digits.

Click Register Button.

Website should display popup error message "Please enter a valid last name".

3

Enter symbols.

Click Register Button.

Website should display popup error message "Please enter a valid last name".

4

Enter characters and digits.

Click Register Button.

Website should display popup error message "Please enter a valid last name".

5

Enter characters and symbols.

Click Register Button.

Website should display popup error message "Please enter a valid last name".

6

Enter digits and symbols.

Click Register Button.

Website should display popup error message "Please enter a valid last name".

7

Enter characters and digits and symbols.

Click Register Button.

Website should display popup error message "Please enter a valid last name".

8

Enter more than 35 characters.

Click Register Button.

Website should display popup error message "Please enter a valid last name".

9

No input is entered.

Click Register Button.

Website should display popup error message "Please enter a valid last name".

Test case 8: Verify username availability

Description: Check if the username has been use.

Pre-condition: Database must not contain identical username.

Step

Steps to Execute

Expected Results

1

Enter non-existing username.

Click Register Button.

Username is available.

2

Enter existing username.

Click Register Button.

Website should display message "Username is taken. Please enter a new username."

Test case 9: Verify username validation

Description: Check if the username is in correct format.

Pre-condition: Username can contain 8 to 16 characters, digits and symbols.

Step

Steps to Execute

Expected Results

1

Enter 8 to 16 characters.

Click Register Button.

Username is accepted.

2

Enter 8 to 16 digits.

Click Register Button.

Username is accepted.

3

Enter 8 to 16 symbols.

Click Register Button.

Username is accepted.

4

Enter 8 to 16 characters and digits.

Click Register Button.

Username is accepted.

5

Enter 8 to 16 characters and symbols.

Click Register Button.

Username is accepted.

6

Enter 8 to 16 digits and symbols.

Click Register Button.

Username is accepted.

7

Enter 8 to 16 characters, digits and symbols.

Click Register Button.

Username is accepted.

8

Enter characters, digits and symbols less than 8.

Click Register Button.

Website should display popup error message "Please enter a valid username."

9

Enter characters, digits and symbols more than 16.

Click Register Button.

Website should display popup error message "Please enter a valid username."

10

No input is entered.

Click Register Button.

Website should display popup error message "Please enter a valid username."

Test case 10: Verify email availability

Description: Check if the email has been use.

Pre-condition: Database must not contain identical email address.

Step

Steps to Execute

Expected Results

1

Enter non-existing email.

Email is available.

2

Enter existing email.

Website should display message "Email is used. Please enter a new email."

Test case 11: Verify email validation

Description: Check if the email is in the correct format.

Pre-condition: Email must contain this symbol "@",".".

Step

Steps to Execute

Expected Results

1

Next to the email textbox.

Display the format of an email address.

2

Enter valid email address with "@ and ."

Click Register Button.

Email is accepted.

3

Enter invalid email address without "@ and ."

Click Register Button.

Website should display popup error message "Please enter a valid email."

4

No input is entered.

Click Register Button.

Website should display popup error message "Please enter a valid email."

Test case 12: Verify password validation

Description: Check if the password is in the correct format.

Pre-condition: Password can contain 6 to 18 characters, digits and symbols.

Step

Steps to Execute

Expected Results

1

Enter 6 to 18 characters.

Click Register Button.

Password is accepted.

2

Enter 6 to 18 digits.

Click Register Button.

Password is accepted.

3

Enter 6 to 18 symbols.

Click Register Button.

Password is accepted.

4

Enter 6 to 18 characters and digits.

Click Register Button.

Password is accepted.

5

Enter 6 to 18 characters and symbols.

Click Register Button.

Password is accepted.

6

Enter 6 to 18 digits and symbols.

Click Register Button.

Password is accepted.

Enter 6 to 18 characters, digits and symbols.

Password is accepted.

7

Enter characters, digits and symbols less than 6.

Click Register Button.

Website should display popup error message "Please enter a valid password."

8

Enter characters, digits and symbols more than 18.

Click Register Button.

Website should display popup error message "Please enter a valid password."

9

No input is entered.

Click Register Button.

Website should display popup error message "Please enter a valid password."

Test 13: Verify confirm password

Description: Check if confirm password matches new password.

Pre-condition: Password must match new password.

Step

Steps to Execute

Expected Results

1

Enter same password as new password.

Click Register Button.

Confirm password is accepted.

2

Enter password different from new password.

Click Register Button.

Website should display popup error message "The password does not match new password".

3

No input is entered.

Click Register Button.

Website should display popup error message "Enter the Confirm password".

Test case 14: Verify telephone number validation

Description: Check if the telephone number is in correct format.

Pre-condition: Telephone number must contain 8 digits.

Step

Steps to Execute

Expected Results

1

Enter 8 digits.

Click Register Button.

Phone number is accepted.

2

Enter characters.

Click Register Button.

Website should display popup error message "Please enter a valid phone number".

3

Enter symbols.

Click Register Button.

Website should display popup error message "Please enter a valid phone number".

4

Enter less than 8 digits.

Click Register Button.

Website should display popup error message "Please enter a valid phone number".

5

Enter more than 8 digits.

Click Register Button.

Website should display popup error message "Please enter a valid phone number".

6

No input is entered.

Click Register Button.

Website should display popup error message "Please enter a valid phone number".

Test case 15: Verify postal code validation

Description: Check if the postal code is in correct format.

Pre-condition: Postal code must contain 6 digits.

Step

Steps to Execute

Expected Results

1

Enter 6 digits.

Click Register Button.

Postal code is accepted.

2

Enter characters.

Click Register Button.

Website should display popup error message "Please enter a valid postal code."

3

Enter less than 6 digits.

Click Register Button.

Website should display popup error message "Please enter a valid postal code."

4

Enter more than 6 digits.

Click Register Button.

Website should display popup error message "Please enter a valid postal code."

5

Enter symbols.

Click Register Button.

Website should display popup error message "Please enter a valid postal code."

6

No input is entered.

Click Register Button.

Website should display popup error message "Please enter a valid postal code."

Test case 16: Select of country

Description: New user should select where they are from.

Pre-condition: User is in registration page.

Step

Steps to Execute

Expected Results

1

Before clicking the Country dropdown menu.

Dropdown menu should display "Select a Country".

2

Click on the Country dropdown menu.

Website should display a list of country from the database.

3

Click on one of the Country from the Country dropdown menu.

Website should display one of the State/Country/Region you selected.

Test case 17: Login function

Description: Verify the username and password.

Pre-condition: Website must have database that contain username and password information.

Step

Steps to Execute

Expected Results

1

Enter a valid username and valid password.

Click Login Button.

User should be able to login. Website should display home page with name of user.

2

Post-condition

3

Enter a valid username and invalid password.

Click Login Button.

User not able to login. Website should display error message "Invalid username or password" and direct to login page

4

Enter an invalid username and valid password.

Click Login Button.

User not able to login. Website should display error message "Invalid username or password" and direct to login page.

5

Enter a valid username and blank password.

Click Login Button.

User not able to login. Website should display error message "Invalid username or password" and direct to login page.

6

Enter a blank username and valid password.

Click Login Button.

User not able to login. Website should display error message "Invalid username or password" and direct to login page.

7

No input is entered.

Click Login Button.

User not able to login. Website should display error message "Invalid username or password" and direct to login page.

Post-Condition: Status of the user (Test case 18)

Test case 18: Verify User status

Description: User that logged in is an administrator, worker or member.

Pre-condition: Only Mr Hand can login as administrator.

Step

Steps to Execute

Expected Results

1

Mr Hand login to the website.

Direct to administrator home page that have administrative control.

2

Worker login to the website.

Direct to worker home page.

3

Members login to the website.

Direct to user home page.

Test case 19: Logout

Description: Users logout after using the application; no operation can be performed after logout.

Pre-condition: User must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Logout link.

Direct to login page.

2

Click Back from the browser.

Website should display message "Session is invalid" and provide a link to login page.

Test case 20: Clock purchase

Description: Member can buy clock.

Pre-condition: Member must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Purchase Clock link.

Direct to list of clock page.

2

Click the clock that member wants to view.

Direct to more detailed information page of that specified clock.

3

Click Buy Button to buy clock.

Website should display popup message "Added to shopping cart".

4

Select the date from the dropdown calendar menu for the clock to be delivered.

Date is selected.

5

Post-condition

Post-condition: Member can choose to check out or delete item (Test case 23).

Test case 21: Clock rental

Description: Member can rent clock.

Pre-condition: Member must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Rent Clock.

Direct to list of clock page.

2

Click the clock that member wants to view.

Direct to more detailed information page of that specified clock.

3

Click Rent Button to rent clock.

Website should display popup message "Added to shopping cart".

4

Select the date from the dropdown calendar menu for the clock to be delivered.

Date is selected.

5

Select the date from the dropdown calendar menu for the clock to be returned.

Date is selected.

6

Post-condition

Post-condition: Member can choose to check out or delete item (Test case 23).

Test case 22: Clock repair

Description: Member can send in their request to repair clock.

Pre-condition: Member must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Repair Clock.

Direct to repair clock page.

2

Select the date from the dropdown menu for the courier to pick up the clock.

Date is selected.

3

Click Confirm for the order to be send in.

Website will display "Order confirmed, courier will pick up the clock at this date".

4

Click Pay to make payment for the repair.

Direct to payment page.

5

Post-condition

Post-condition: Proceed to payment (Test case 32).

Test case 23: Shopping cart

Description: Member can view the shopping cart to see the clocks they choose.

Pre-condition: Member must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Shopping Cart.

Direct to shopping cart page.

If member added clock, website should display clock that are added.

If member did not add any clock, website should display message "Shopping cart empty".

2

Post-condition 1

3

Post-condition 2

Post-condition 1: Member can check out the shopping cart (Test case 24).

Post-condition 2: Member can delete clock that are unwanted (Test case 25).

Test case 24: Checkout shopping cart

Description: Member can buy clock by checking out shopping cart.

Pre-condition: Member must first login to the website. Shopping cart must have at least an item.

Step

Steps to Execute

Expected Results

1

Click Proceed to Checkout Button.

Direct to payment page.

2

Post-condition.

Post-condition: Proceed to payment (Test case 31).

Test case 25: Delete clock from shopping cart

Description: Member can delete clock from shopping cart after added.

Pre-condition: Member must first login to the website. Shopping cart must have at least an item.

Step

Steps to Execute

Expected Results

1

Select the check box on the clock that you want to delete.

Clock is checked.

2

Click Delete Button.

Website should display popup message "Confirm Delete?"

3

Click Confirm Button.

Website should display message "Clock remove from shopping cart".

4

Click Delete Button without selecting clock.

Website should display popup error message "Nothing to delete".

Test case 26: Track progress of repair

Description: Member can track the progress of repair.

Pre-condition: Member must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Repair Status.

Direct to repair status page.

2

Enter valid repair number.

Click Ok Button.

Website will display what part of the clock is spoilt, how long the clock will be repair and the cost of repair.

3

Enter invalid repair number.

Click Ok Button.

Website should display error message. "Invalid Repair Number. Please verify your repair number".

Test case 27: Repair number validation

Description: Check if the repair number is in the correct format.

Pre-condition: Repair number must contain 5 digits and 2 characters.

Step

Steps to Execute

Expected Results

1

Enter 5 digits and 2 characters.

Click Ok Button.

Repair number is acceptable.

2

Enter digits.

Click Ok Button.

Invalid repair number.

3

Enter characters.

Click Ok Button.

Invalid repair number.

4

Enter symbols.

Click Ok Button.

Invalid repair number.

5

Enter digits and symbols.

Click Ok Button.

Invalid repair number.

6

Enter characters and symbols.

Click Ok Button.

Invalid repair number.

7

Enter digits, characters and symbols.

Click Ok Button.

Invalid repair number.

8

Enter digits and characters less than 7.

Click Ok Button.

Invalid repair number.

9

Enter digits and characters more than 7.

Enter Ok Button.

Invalid repair number.

10

No input is entered.

Click Ok Button.

Invalid repair number.

Test case 28: Track progress of delivery

Description: Member can track the progress of delivery.

Pre-condition: Member must first login to the website,

Step

Steps to Execute

Expected Results

1

Click Delivery Status.

Direct to deliver status page.

2

Enter valid tracking number.

Click Ok Button.

Website should display the current location and the estimated time to deliver the clock.

3

Enter invalid tracking number.

Click Ok Button.

Website should display error message "Invalid Tracking Number. Please verify your tracking number".

Test case 29: Tracking number validation

Description: Check if the tracking number is in correct format.

Pre-condition: Tracking number must contain 10 digits.

Step

Steps to Execute

Expected Results

1

Enter 10 digits.

Click Ok Button.

Tracking number is acceptable.

2

Enter characters.

Click Ok Button.

Invalid tracking number.

3

Enter symbols.

Click Ok Button.

Invalid tracking number.

4

Enter digits and characters.

Click Ok Button.

Invalid tracking number.

5

Enter digits and symbols.

Click Ok Button.

Invalid tracking number.

6

Enter characters and symbols.

Click Ok Button.

Invalid tracking number.

7

Enter digits, characters and symbols.

Click Ok Button.

Invalid tracking number.

8

Enter less than 10 digits.

Click Ok Button.

Invalid tracking number.

9

Enter more than 10 digits.

Click Ok Button.

Invalid tracking number.

10

No input is entered.

Click Ok Button.

Invalid tracking number.

Test case 30: Schedule timeslot for worker

Description: Mr Hand can add timeslot for worker.

Pre-condition: Mr Hand must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Schedule Timeslot link.

Direct to schedule timeslot page.

2

Select the worker.

Worker is selected.

3

Select date from the dropdown calendar menu for the days the worker has to work.

Website should display the date being selected.

4

Select the time from the dropdown time menu for the worker to start work.

Website should display the time being selected.

5

Click Save Button.

Website should display message "Date and time for worker's schedule booked."

6

Post-condition

Post-condition: Schedule updated in database.

Test case 31: Remove timeslot for worker

Description: Mr Hand can delete timeslot of the worker if the worker applied leave or when the shift is over.

Pre-condition: Mr Hand must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Remove Timeslot link.

Direct to remove timeslot page.

2

Select the worker.

Website should display the worker's timeslot.

3

Select the check box on which date to delete.

Website should display the date checked.

4

Click Delete Button.

Website should display popup message "Confirm Delete?"

5

Click Confirm Button.

Website should display message "Timeslot Delete".

6

Post-condition

7

Click Delete Button without selecting date.

Website should display popup error message "Nothing to delete".

Post-condition: Schedule updated in database.

Test case 32: Update status of repair

Description: Administrator/Worker can update the status of repair work.

Pre-condition: Administrator/Worker must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Update Repair link.

Direct to repair status page.

2

Enter the status of repair work.

Website should display the status of repair work entered.

3

Click Repair Complete link.

Website will send an email to the customer to inform the completion of repair work and when the clock will be delivered to them.

4

Click Save Button.

Website should display message "Status of repair saved".

5

Post-condition

Post-condition: Repair status updated in database.

Test case 33: Upload new clock

Description: Picture of new clock is uploaded.

Pre-condition: Mr Hand must first login to the website.

Step

Steps to Execute

Expected Result

1

Click New Clock link.

Direct to new clock page.

2

Click Upload Button.

Pop out box will be displayed.

3

Select the image to upload.

Click Ok Button.

Website should display the image that is uploaded.

4

Enter the price of the clock in the textbox under the image.

Website should display the price of the new clock entered into the textbox.

5

Select non-image file to upload.

Click Ok Button.

Website should display popup error message "Please upload image file".

6

Click Save Button.

Website should display message "New clock updated".

7

Post-condition

Post-condition: Clock updated in database.

Test case 34: Delete clock on website

Description: Clock are remove from the website.

Pre-condition: Mr Hand must first login to the website.

Step

Steps to Execute

Expected Results

1

Click delete to remove the images and price of the clock.

Website should not display the image and price of clock.

2

Click Save Button.

Website should display message "Clock deleted".

3

Post-condition

Post-condition: Clock updated in database.

Test case 35: Payment

Description: Payment to buy clock by Visa or MasterCard.

Pre-condition: Member must first login to the website and have a Credit/Debit card.

Step

Steps to Execute

Expected Results

1

Click Visa to select this payment network.

Visa payment is selected.

2

Enter all compulsory fields

Click Submit Button.

Website should display popup message "Payment successful".

3

Not all compulsory fields are entered.

Click Submit Button.

Website should display popup error message of that respective field.

Test case 36: Verify name of cardholder validation

Description: Check if name of card are in correct format.

Pre-condition: Credit/Debit card name of cardholder must contain up to 19 characters.

Step

Steps to Execute

Expected Results

1

Enter up to 19 characters.

Click Submit Button.

Name accepted.

2

Enter digits.

Click Submit Button.

Website should display popup error message "Please enter a valid name".

3

Enter symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid name".

4

Enter characters and digits.

Click Submit Button.

Website should display popup error message "Please enter a valid name".

5

Enter characters and symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid name".

6

Enter digits and symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid name".

7

Enter characters, digits and symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid name".

8

Enter characters more than 19.

Click Submit Button.

Website should display popup error message "Please enter a valid name".

9

No inputs are entered.

Click Submit Button.

Website should display popup error message "Please enter a valid name".

Test case 37: Verify card number validation

Description: Check if card number is in correct format.

Pre-condition: Credit/Debit card must contain 16 digits.

Step

Steps to Execute

Expected Results

1

Enter 16 digits.

Click Submit Button.

Card number accepted.

2

Enter characters.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

3

Enter symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

4

Enter digits and characters.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

5

Enter digits and symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

6

Enter characters and symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

7

Enter digits, characters symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

8

Enter less than 16 digits.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

9

Enter more than 16 digits.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

10

No input is entered.

Click Submit Button.

Website should display popup error message "Please enter a valid card number".

Test case 38: Verify expiry of card validation

Description: Check if card expiry is in correct format.

Pre-condition: Card must contain "month" / "year" and is in digits.

Step

Steps to Execute

Expected Results

1

Before entering the "month" / "year".

Display the format of the "mm/yy" in the textbox.

2

Enter "month" / "year" in digits.

Expiry of card accepted.

3

Enter "month" / "year" in characters.

Website should display popup error message "Please enter a valid expiry date".

4

Enter "month" / "year" in digits and characters.

Website should display popup error message "Please enter a valid expiry date".

5

No input is entered.

Website should display popup error message "Please enter a valid expiry date".

Test case 39: Verify card verification value code (CVV) validation

Description: Check if card verification value code is in correct format.

Pre-condition: Card must contain 3 digits.

Step

Steps to Execute

Expected Results

1

Enter 3 digits.

Click Submit Button.

CVV accepted.

2

Enter characters.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

3

Enter symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

4

Enter digits and characters.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

5

Enter digits and symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

6

Enter characters and symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

7

Enter digits, characters symbols.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

8

Enter less than 16 digits.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

9

Enter more than 16 digits.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

10

No input is entered.

Click Submit Button.

Website should display popup error message "Please enter a valid CCV".

Test case 40: Worker view timeslot

Description: Worker can view their working shift online.

Pre-condition: Worker must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Work Schedule link.

Direct to work schedule page.

Website display the calendar date that worker are suppose to work.

2

Click the date that are marked.

Website should display the time the worker that are suppose to work.

3

Checked the day that the worker is able to work compared with the date Mr Hand chooses.

Website should display the date checked.

4

Click Confirm Button to confirm the schedule.

Website should display message "Schedule confirmed".

5

Click the date that are unmarked.

Website should display message "No working day".

6

Post-condition

Post-condition: Schedule updated in database.

Test case 41: Modify particulars

Description: Administrator/Member/Worker can edit their personal particulars.

Pre-condition: Administrator/Member/Worker must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Edit Profile.

Direct to edit profile page.

2

Enter valid phone number.

Click Save Button.

Website should display message "Particulars Updated".

3

Enter valid email address.

Click Save Button.

Website should display message "Particulars Updated".

4

Enter valid postal code.

Click Save Button.

Website should display message "Particulars Updated".

5

Post-condition 1

6

Invalid input of any field.

Click Save Button.

Website should display popup error message "Please enter valid details".

7

Post-condition 2

Post-condition 1: Verify with (Test case 10, 11, 14-15).

Post-condition 2: Particulars updated in database.

Test case 42: Change Password

Description: Administrator/Member/Worker can change their password.

Pre-condition: Administrator/Member/Worker must first login to the website.

Step

Steps to Execute

Expected Results

1

Click Settings.

Direct to settings page.

2

Click Change Password.

Direct to change password page

3

Enter valid old password.

Enter new password.

Enter confirm password that matches new password.

Click Change Button to change password.

Website should display message "Password Change".

4

Post condition 1

5

Enter invalid old password.

Enter new password.

Enter confirm password that matches new password.

Click Change Button to change password.

Website should display error message "Please verify your password".

6

Enter valid old password.

Enter blank new password.

Enter blank confirm password.

Click Change Button to change password.

Website should display error message "Please verify your password".

7

Enter valid old password.

Enter new password.

Enter confirm password that does not match new password.

Click Change Button to change password.

Website should display error message "Please verify your password".

8

No input is entered

Click Change Button to change password.

Website should display error message "Please verify your password".

9

Post-condition 2

Post-condition 1: Password updated in database.

Post-condition 2: Verify password (Test case 12-13)

Test case 43: Forgot your password

Description: Administrator/Member/Worker able to retrieve password even if password are forgotten.

Pre-condition: Administrator/Member/Worker must have an account.

Step

Steps to Execute

Expected Results

1

Click Forgot your password link on the login page.

Direct to reset password page.

2

Enter valid email address.

Click Confirm Button to reset.

Website should display message "Password is reset, an email sent to you".

3

Post-condition

4

Enter invalid email address.

Click Confirm Button to reset.

Website should display popup error message "Please enter your email again".

5

No input is entered.

Click Confirm Button to reset.

Website should display popup error message "Please enter your email again".

Post-condition: Email will be sent for password to be reset (Test case 40).

Test case 44: Password reset

Description: Administrator/Member/Worker able to reset password after receive email.

Pre-condition: Link on the email must be click to activate the reset of password.

Step

Steps to Execute

Expected Results

1

Click the link on the email.

Direct to change password page.

2

Enter valid password from the email.

Enter new password.

Enter confirm password that matches new password.

Click Change Button to change password.

Website should display message "Password Change".

3

Post-condition 1

4

Enter invalid password from the email.

Enter new password.

Enter confirm password that matches new password.

Click Change Button to change password.

Website should display error message "Please verify your password".

5

Enter valid password from the email

Enter blank new password.

Enter blank confirm password.

Click Change Button to change password.

Website should display error message "Please verify your password".

6

Enter valid password from the email.

Enter new password.

Enter confirm password that does not match new password.

Click Change Button to change password.

Website should display error message "Please verify your password".

7

No input is entered.

Click Change Button to change password.

Website should display error message "Please verify your password".

8

Post-condition 2

Post-condition 1: Password updated in database.

Post-condition 2: Verify password (Test case 12-13).

Task 2

Mr Hand intends to close down shop and run his business on the website so as to reduce operating costs. However it is too expensive to run all of the test cases. Under cost constraint, only 25% of the test cases are to be kept.

The test cases that are worth keeping are the Search Function, Member Registration, Login, Purchase Clock, Rent Clock, Repair Clock, Update Status of Repair, Track Progress of Repair, Upload New Clock, Payment, Track Progress of Delivery.

With search function, member can search the clocks they want by typing key words. This solves the problem of finding the clocks from a list of all clocks group together. Member will be irritated if they have to find the clock from a big list of clocks. This helps to retain the member from sourcing other website for easier of finding clocks.

Purchase Clock, Rent Clock and Repair Clock are the three main sources of income for Mr Hand's businesses. It is a must have test cases as they provide Mr Hand with more choices of business from different sources.

Member that want to purchase clocks, rent clock and repair clock have to register with the website because they can only make their payment after they are registered. When register, they can also track the progress of repair. Registration test case is worth keeping because member just has to register once and they can enjoy the benefits such as newsletter of new clocks.

Login test case can be kept because member must be login to the website before he can use the applications. They can re-login again and again after registration once. Their details are saved in the database during the registration process and this helps the member to save time.

Mr Hand and the worker can update the status of repair work done. They have to update how much work they have done, so that the member can track the progress of the repair work done. By providing member the best services, they will visit the company again and this will allow the company to earn more profits.

Member that purchase clock or rent clock can track the progress of delivery from the date that they purchase or rent. Member can track the exact timing of when the clocks will arrive, making them easier to plan the time to prepare to receive the clock.

Mr Hand buys clock from other places so that the business will have a continuous flow of new clocks for sales. The Upload New Clock test case are worth keeping as Mr Hand can upload clocks from places he purchase and put it up on the web for member to buy, ensuring more profits earned.

Payment test case is also worth keeping because as the company intend to move to website, customer will not be going to the shop to buy and pay in cash. Payment by paypal is one of the easier for the customer to make their payment and wait for their clocks to be delivered to them.

Task 3

Regression testing is the process of testing changes to computer programs to make sure that the older programming still works with the new changes. (Margaret Rouse, 2007).

Search based software engineering (SBSE) is use to optimise regression testing. These approaches inside SBSE are the local search hill climbing and simulated annealing and the global search genetic algorithms.

Hill climbing is an iterative algorithm that starts with an arbitrary solution to a problem that attempts to find a better solution by incrementally changing a single element of the solution. If the change produces a better solution, an incremental change is made to the new solution, repeating until no further improvements can be found (Rajkumari & Geetha).

The search starts from a randomly selected starting point. From the randomly selected start point, the search space around that point is evaluated. If a better solution to that point is found, the search moves to that point, if no better solution is found around the point, the algorithm terminates.

As an example, using hill climbing to applied on the test cases. The algorithm starts with a random test case to see whether this test case can be improved. If the test case can be improved, the test case is changed, and it moves to another random test case. This will stop until all the test case cannot be improved.

Simulated annealing can be thought of as a variation of hill climbing that avoids the local maxima problem by permitting moves to less fit individuals. Simulated annealing is a simulation of metallurgical annealing, in which a highly heated metal is allowed to reduce in temperature slowly, thereby increasing its strength. As the temperature decreases the atoms have less freedom of movement. However, the greater freedom in the earlier stages of the process allows the atoms to explore different energy states (Mark Harman, The Current State and Future of Search Based Software Engineering).

For example, applying simulated annealing with test cases, it uses random test cases in its execution. Every time the test case is run, the result will be different. Sequence of solutions is produced, and each one is derived by slightly altering the previous one, or by rejecting a new solution and falling back to the previous one without any change.

Genetic algorithm is an optimization technique that shows the process of natural evolution. It is used to generate useful solutions to optimization and search problems. The search simultaneously evolves several individuals in a population creating a global search. An iterative process is executed, initialised by a randomly chosen population. The iterations are called generations and the members of the population are called chromosomes, because of their analogy in natural evolution. The process terminates when a population satisfies some predetermined condition (Mark Harman, The Current State and Future of Search Based Software Engineering).

The basic idea is to mimic a simple picture of natural selection in order to find a good algorithm. The first step is to mutate, or randomly vary, a given collection of sample programs. The second step is a selection step, which is found often through measuring against a fitness function. The process is repeated until a suitable solution is found (Todd Rowland, Wolfram MathWorld).

For example, in solving problems, a possible test case is marked by its value for the problem. The genetic algorithm looks for the best solution among a number of possible solutions in the test cases. In using genetic algorithm, the process of finding solutions generates other possible solutions as evolution proceeds.

D:\Meetings2003\GA_NISS\spectroscopyNOWoptga.gif

Figure : How Genetic Algorithm Work

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.