7
Black Box Testing Tes t No. What is being tested How will this be tested Expected Result Actual Result Action Taken 1 Opening the Add page on the staff system This will be tested by opening staff system program and then using The add page will open Add page open successfully No action was taken 2 Opening the view page on the staff system This will be tested by opening staff system program and then using The view page will open The view page opened successfully No action was taken 3 Exiting the system from the menu page on the staff system This will be tested by opening staff system program and then using the mouse The program will close down The program closed No action was taken 4 Help Buttons on the menu page Using the mouse to click on the box with the question mark When the button is clicked a pop up message will The pop up message appeared No action was taken 5 Help Buttons on the add page Using the mouse to click on the box with the question mark When the button is clicked a pop up message will The pop up message appeared No action was taken 6 Save button on the add page Using the mouse to click on the button to save the details inputted into When the fields are filled out and the save button is clicked then all the The details where saved into the file and where able to be viewed on the view page No action was taken

Black Box Testing - projectblog3.files.wordpress.com  · Web viewBlack Box Testing. Test . No. What is being tested. How will this be tested. Expected. Result. Actual. Result. Action

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Black Box Testing - projectblog3.files.wordpress.com  · Web viewBlack Box Testing. Test . No. What is being tested. How will this be tested. Expected. Result. Actual. Result. Action

Black Box Testing

Test No.

What is being tested How will this be tested

ExpectedResult

ActualResult

ActionTaken

1 Opening the Add page on the staff system

This will be tested by opening staff system program

and then using the mouse clicking on the add button.

The add page will open

Add page open successfully

No action was taken

2 Opening the view page on the staff system

This will be tested by opening staff system program

and then using the mouse clicking on the view button.

The view page will open

The view page opened successfully

No action was taken

3 Exiting the system from the menu page on the staff

system

This will be tested by opening staff system program

and then using the mouse clicking on the exit button to close the program

down.

The program will close down

The program closed No action was taken

4 Help Buttons on the menu page

Using the mouse to click on the box

with the question mark in it

When the button is clicked a pop up

message will appear with instructions

The pop up message appeared

No action was taken

5 Help Buttons on the add page

Using the mouse to click on the box

with the question mark in it

When the button is clicked a pop up

message will appear with instructions

The pop up message appeared

No action was taken

6 Save button on the add page Using the mouse to click on the button to save the details inputted into each

field

When the fields are filled out and the save button is clicked then all the

details will be saved to a records

text file

The details where saved into the file and where able to be viewed on the

view page

No action was taken

7 Menu button on the add page

Using a mouse to click on the button

Will return to the menu

Returned to the menu

No action was taken

Page 2: Black Box Testing - projectblog3.files.wordpress.com  · Web viewBlack Box Testing. Test . No. What is being tested. How will this be tested. Expected. Result. Actual. Result. Action

8 Entering text in the text boxes on the add screen

Using keyboard to input data into

fields

Able to enter text into text box

Text was successfully entered

No action was taken

9 Loading the file in the view page on the staff system

This will be tested by going into the

view page to make sure that the

records file has loaded and there is

text in each field

Once clicked on the view page the

records file will load with all the

fields contain correct text

The program wouldn’t open due

to errors

There was a line of code

missing stopping the

program from opening.

Evidence is in Appendix 1

10 Previous button on the view page

Using the mouse to click on the

previous button

The previous record should

show up

When clicked on the button the previous details showed up in

all the fields

No action was taken

11 next button on the view page

Using the mouse to click on the next

button

The next record should show up

When clicked on the button the next

details showed up in all the fields

No action was taken

12 Menu button on the view page

Using the mouse to click on the menu

button

Should return to the menu

Returned to the menu

No action was taken

Appendix 1Before

Page 3: Black Box Testing - projectblog3.files.wordpress.com  · Web viewBlack Box Testing. Test . No. What is being tested. How will this be tested. Expected. Result. Actual. Result. Action

The images above show that after the whole program was finished it still couldn’t be opened due to there being an error in the code.

After

Page 4: Black Box Testing - projectblog3.files.wordpress.com  · Web viewBlack Box Testing. Test . No. What is being tested. How will this be tested. Expected. Result. Actual. Result. Action

The images above demonstrate that there was one code of line missing which is the code highlighted in blue, afterwards it worked successfully when it was added.

White Box Testing1) Before

The images on the left shows that the next button doesn’t work, due to an error within the code. The first image is the code before any changes were made and the bottom image is what happens when u run it with the wrong code.

Page 5: Black Box Testing - projectblog3.files.wordpress.com  · Web viewBlack Box Testing. Test . No. What is being tested. How will this be tested. Expected. Result. Actual. Result. Action

After

The image on the left is the fxed version of the code. RecordDisplay+ was changed to RecordDisplay++.

Page 6: Black Box Testing - projectblog3.files.wordpress.com  · Web viewBlack Box Testing. Test . No. What is being tested. How will this be tested. Expected. Result. Actual. Result. Action

The image above shows what the program is when the fixed code is complete. It shows the next button working going from one record to the next.

2) Before

The image above shows the code before it was fixed. The code is for the exit button on the main menu, however it was coded wrong.

After

The images above show the fixed code for the exit button, the problem was that it should have been close() instead of exit().

3) Before

Finally, the images show that the help button doesn’t work because there is an error within the code.

Page 7: Black Box Testing - projectblog3.files.wordpress.com  · Web viewBlack Box Testing. Test . No. What is being tested. How will this be tested. Expected. Result. Actual. Result. Action

After

The images above demonstrate that the error in the code was that it should have been messagebox::show(“ “) and not message::show(“ "). Furthermore, the top image on the right shows the pop up message working successfully after the code being changed.