36
King Saud University College of Computer and Information Sciences Information Technology Department Project –Phase4 - Software Testing Document وة ط خ ب وة ط خ.. ي ف ر حPrepared by .............. ............. ................. ................. Supervised by 1

it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

  • Upload
    buidien

  • View
    217

  • Download
    1

Embed Size (px)

Citation preview

Page 1: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

King Saud UniversityCollege of Computer and Information Sciences

Information Technology Department

Project –Phase4-Software Testing Document

خطـوة.. حـــرفيبخطــــــــــــوة

Prepared by...........................

.................

.................

Supervised by

...............

Second Semester 1430/1431Spring 2010

1

Page 2: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

TABLE OF CONTENTS

Introduction.................................................................................................................................................................. 2

Test Items.......................................................................................................................................................................3

Unit testing..................................................................................................................................................................14

Partition testing...............................................................................................................................................14

Path testing........................................................................................................................................................21

Integration and System Testing....................................................................................................................31

Roles distribution....................................................................................................................................................33

2

Page 3: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

INTRODUCTION

We are working on testing the software to ensure ................................................................................................................................................................................................................................................................................Another purpose is ......................................................................................................

This document will be used by ..................................................................................................................................................................................................................................................................................

When the testing team discover an error ......................................

The rest of this document will contain the following sections :

.............................................................................................................................

.............................................................................................................................

.............................................................................................................................

.............................................................................................................................

................................

These sections will be organized as they mentioned above.

restrictions, limitations or constraints that impact our testing...................................................................................................

3

Page 4: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

TEST ITEMS

1-Login

Responsibilities' Reference

1

Testing Items

T1.1: trying to login, before any users are registered.

T1.2 : trying to Login with an existing account.

T1.3 : click on the Login button without choosing a user name

T1.4 : click on the Back button.

Pseudocode

1. Display all students names saved in the database2. IF there is no registered accounts THEN3. Hide the login button and show a message to notify the user4. Show the register button5. IF the user clicked Register button THEN6. Close this form7. Show the register form8. END IF9. ELSE10. IF click login button after Choose user Name THEN11. Retrieve student information12. Go to Main Page13. ELSE IF choose close THEN14. Terminate the software15. ELSE IF user clicked on Login button without selecting a username THEN16. Notify the user with a message box17. ELSE IF use clicked Back button THEN18. Back to the start form and close this form19. End if20. End if

4

Page 5: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

2-Register

Responsibilities' Reference

2

Testing Items

T2.1:

..

T2.8:

Pseudocode

1. Enter first , middle and last name, when user clicks the Register button

2. IF the combination of first, middle and last name exists THEN

3. Notify the user that the name already exists.

4. Enable the user to enter another first and last name.

5. ELSE IF the textboxes contains special characters THEN

6. Notify the user

7. ELSE IF the first or last name text boxes has no value THEN

8. Notify the user

9. ELSE IF (the user cancelled the registration operation) THEN

10. Exit the registration page

11. Go back to log-in page

12. ELSE

13. Create account with the given name on the database, and no learned letters.

14. Proceed to the program's main page through the created account.

End if

5

Page 6: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

3- Choose Letter to Learn

Responsibilities' Reference

3

Testing Items

T 3.1: choose from joined letters before finishing all split letters.T3.2: choose from the split letters in any order.T3.3: choose from the joined letters in any order.T3.4: choose the same letter more than once.T3.5: choose from split letters before finishing all joined letters.T3.6: Choose Back Button

Pseudo Code:

1. Retrieve all learned letters for that user2. If user passed all split letters3. Enable all joined letters4. End if5. If user press a split letter6. Assign AID to the chosen letter7. Terminate, and Proceed to the split letters main page8. Else If joined letters enabled AND user press a joined letter9. Assign AID to the chosen letter10. Terminate, and Proceed to the joined letters main page11. End if

6

Page 7: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

4- Open the Concept Page

Responsibilities' Reference

4

Testing ItemsT4.1 clicks on the concept's button from the split letter's pageT4.2 clicks on the concept's button from the joined letter's pageT4.3 clicks on the Back button

Pseudocode

1- IF user clicks the Concept button THEN2- IF chosen letter is of split letters THEN3- Open the Split letter's concept page4- ELSE5- Open the Join letter's concept page6- END IF7- IF the user clicks the back button THEN8- The concept page is closed9- Open the letter's main page10- END IF11- END IF

7

Page 8: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

5- "Place on the Doll" Game

Responsibilities' Reference

5

Testing Items

T5.1 : click on the correct location of the letter .

T5.2: click on the incorrect location of the letter .

T5.3: click on the incorrect location of the letter multiple times .

T5.4: click on the instruction button .

T5.5: click on the “Help” button.

T5.6: click on the “Hide Help” button .

T5.7: click on the doll after clicking the right location

T5.8: click on the Back button.

T5.9: click on the Exit button.

Pseudo code

1. Display the current letter, the doll with the user's previously positioned letters, and the game's instructions

2. Initialize the number of clicks to zero.

3. IF the user click on the doll THEN

4. IF number of clicks not equal to -1 THEN

5. While -1< number of clicks <= 6, AND, the user clicked an incorrect location

6. Increment the number of the clicks.

7. Notify the user that it is an incorrect location.

8. End loop

8

Page 9: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

9. IF the user clicks the correct location

10.Display the current letter on the specified position.

11.Display a congratulation message to the user.

12. IF the letter was not taken before THEN

13.Add the current letter to the learned-letters in the database.

14. END IF

15.Set number of clicks to -1

16.Else if the number of clicks greater than 6

17.Enable the user to get help

18. If the user asks for help

19. Display the letter on its appropriate location for 30 seconds then hide it.

20. Set the number of clicks to 0.

21. End if

22.End if

23.End if

24.End if

25. If the user asks to go back to the main page

26. Terminate the game

27. Display the main page

28.End if

...............

...............

...............

9

Page 10: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

UNIT TESTING

Partition Testing

1-Login

1.1

No user name is selected User name is selected

2-Register

2.1

Existing name Non existing name

2.2

Numbers No input Special Characters

Valid user name

3- Choose letter to learn

3.1

Split letter Joined letter

4-Open the concept page

4.1

Split letter Joined letter

5-Place on the doll

5.1

Correct location Incorrect location

10

Page 11: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

5.2

More than 6 clicks -1 clicks Equals to or less than 6 clicks

..............

.............

1-Login

Test Case

Test Data Expected Output Result Pass/Fail

T 1.1 No input A message will be shown saying that no registered users.

a message is shown stating that there are no registered users, and a register button is shown.

Pass

T 1.2 Choosing:

خالد روانالوابل

letters page will be shown The letters page is shown

Pass

T 1.3 No input Error message will appear

an error message appeared stating that the user should choose a letter from the list

Pass

T 1.4 No input Going back to the Home page

Going back to the Home page Pass

2-Register

Test Case

Test Data Expected Output Result Pass/Fail

T 2.1 هيله المزروع

Input will be accepted, account created

An error message stating that the entered data are not correct

Fail

11

Page 12: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

T 2.2 عبد هيلهالعزيز المزروع

input will be accepted, account created

message is shown stating that a user is registered

successfully

Pass

T 2.3 عبد هيلهالعزيز

المزروع&

An error message stating that the entered data are not correct

An error message stating that the entered data are not correct

Pass

T 2.4 عبد 111العزيز المزروع

An error message stating that the entered data are

not correct

message is shown stating that a user is registered successfully

Fail

T 2.5 عبد هيلهالعزيز المزروع

An error message stating that the entered data already exist

An error message stating that the entered data already exist

Pass

T 2.6 No input An error message stating that there is no entered data

An error message stating that there is no entered data

Pass

T 2.7.1 هيله An error message stating that the entered data are not completed – missing some field-

An error message stating that the entered data are not completed – missing some field-

Pass

T 2.7.2 العزيز عبدالمزروع

An error message stating that the entered data are not completed – missing some field-

An error message stating that the entered data are not completed – missing some field-

Pass

T 2.7.3

المزروعAn error message stating that the entered data are not completed – missing some field-

An error message stating that the entered data are not completed – missing some field-

Pass

T 2.8 No input Going back to the Home page

Going back to the Home page

Pass

3-Choose letter to learn

Test Case

Test Data

Expected Output Result Pass/Fail

T 3.1 ب The user will be denied to choose a joined letter before he is done of all of the split letters

Joined letters are disabled Pass

12

Page 13: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

T 3.2 و Proceed to the letter's main page with the specified letter

Proceed to the letter's main page with the specified letter

Pass

T 3.3 ظ Proceed to the letter's main page with the specified letter

Proceed to the letter's main page with the specified letter

Pass

T 3.4 ب Proceed to the letter's main page with the specified letter

Proceed to the letter's main page with the specified letter

Pass

T 3.5 د Proceed to the letter's main page with the specified letter

Proceed to the letter's main page with the specified letter

Pass

T 3.6 Going back to the Home page Going back to the Home page

4-Open the Concept page

Test Case

Test Data Expected Output Result Pass/Fail

T 4.1 د The split letters' concept page will be shown

The split letters' concept page is shown

Pass

T 4.2 ب The joined letters' concept page will be shown

The joined letters' concept page is shown

Pass

T 4.3 No input The letter's main page will be shown

The letter's main page is shown

Pass

5-"Place on the Doll"

Test Case

Test Data Expected Output Result Pass/Fail

13

Page 14: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

T 5.1 The letter: د

X, Y on the doll: 63; 230

The letter will appear on its location, a congratulation message will be played, and the letter will be considered as passed for the user

The letter appeared on its location, a congratulation message was played, and the letter is considered as passed for the user

Pass

T 5.2 The letter: ذ

X, Y on the doll: 63; 230

The user will be promoted to try again The user is promoted to

try again, a message is played

Pass

T 5.3.1

The letter: ذ

X, Y on the doll: 63; 230

6 times

The user will be promoted to try again

The user is promoted to try again, a message is played

Pass

T 5.3.2

The letter: ذ

X, Y on the doll: 63; 230

7 times

The user will be promoted to try again, he will also be able to get help

The user is promoted to try again, a message is played, a help button appears.

Pass

T 5.4 No input The instructions will appear The instructions appears Pass

T 5.5 No input The letter will appear on its location for 30 seconds

The letter appears on its location for 30 seconds

Pass

T 5.6 No input The shown letter will disappear

The shown letter disappears

Pass

T 5.7 X, Y on the doll: 63; 230

No response No response Pass

T 5.8 No input The letter's main page will be shown

The letter's main page shown

Pass

T 5.9 No input The program will be terminated

The program terminate Pass

......................................................

14

Page 15: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

..............................................

.......................................

..................................

Path Testing

1-Login

1-Flow Graph

Figure.1 Login Flow Graph

2- Independent Paths

P1: 1,2,3,4,5,6,7,8,20

P2: 1,2,3,4,5,8,20

P3: 1,2,9,10,11,12,19,20

P4: 1,2,9,10,13,14,19,20

P5: 1,2,9,10,13,15,16,19,20

P6: 1,2,9,10,13,15,17,18,19,20

P7: 1,2,9,10,13,15,17,19,20

3-Test cases

Path Test Data Expected Output Result Pass/

15

Page 16: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

Fail

P1 No input, user clicked on Register button

A message will be shown saying that no registered users.

a message is shown stating that there are no registered users, and a register button is shown.

Pass

P2 No input A message will be shown saying that no registered users.

A message will be shown saying that no registered users.

Pass

P3 الوابل is روانchosen

Proceed with this account Proceed with this account Pass

P4 Close button Close this form Close this form Pass

P5 Login button Disable the user to proceed

User is disabled, message box is shown

Pass

P6 Back button Close this form, open home page

Close this form, open home page

Pass

2-Register

1-Flow Graph

Figure.2 Register Flow Graph

2- Independent Paths

P1: 1,2,3,4,15

P2: 1,2,5,7,8,1516

Page 17: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

P3: 1,2,5,6,15

P4: 1,2,5,7,9,10,11,15

P5: 1,2,5,7,9,12,13,14,15

3-Test cases

Path Test Data Expected Output Result Pass/Fail

P1 الوابل روان A message will be shown stating that this name already exist

A message is shown stating that this name already exist

Pass

P2 سارة A message will be shown saying that there is some missing values

A message is shown saying that there is some missing values

Pass

P3 &&& روان A message will be shown saying that there is some invalid values

A message is shown saying that there is some invalid values

Pass

P4 Close button Close this form Close this form Pass

P5 أحمد سارةخالد

Create an account for the user

Account is creatd, user transferred to the next page

Pass

3-Choose letter to learn

1-Flow Graph

17

Page 18: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

Figure.3 Choose letter Flow Graph

2- Independent Paths

P1: 1,2,3,4,5,6,7,11

P2: 1,2,3,4,5,8,9,10,11

3-Test cases

Path Test Data Expected Output Result Pass/Fail

P1 د The user will be transferred to the letter's main page

The user is transferred to the letter's main page

Pass

P2 ب The user will be transferred to the letter's main page

The user is transferred to the letter's main page

Pass

18

Page 19: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

4-Concept Page

1-Flow Graph

Figure.4Concept page Flow Graph

2- Independent Paths

P1: 1,11

P2: 1,2,3,6,7,8,9,10,11

P3: 1,2,3,6,7,10,11

P4:1,2,4,5,6,7,8,9,10,11

P5: 1,2,4,5,6,7,10,11

3-Test cases

Path Test Data Expected Output Result Pass/Fail

P2 د The user will be transferred to the split letters' concept page

The user is transferred to the split letters' concept page

Pass

P3 ب The user will be transferred to the joined letters' concept page

The user is transferred to the joined letters' concept page

Pass

19

Page 20: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

5-Place on the doll

1-Flow Graph

20

Page 21: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

21

1

2

169

8

7

6

5

4

3

10

11

12

13

14

15

17

18

19

20

21

23

24 25 26 27 28

22

Page 22: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

Figure.5"Place on the doll" Flow Graph

2- Independent Paths

P1: 1234567 89 10 11 1213 1415222324 25262728

P2: 1234567 89 10 11 1215222324 25262728

P3: 1234567 8161718192021222324 25262728

P4: 1234567 816222324 25262728

P5: 1234567 8161718222324 25262728

P6: 123452324 25262728

P7: 12324 25262728

P8: 125

3-Test cases

Test Case

Test Data Expected Output Result Pass/Fail

P1 The letter: د

X, Y on the doll: 63; 230

The letter will appear on its location, a congratulation message will be played, and the letter will be considered as passed for the user

The letter appeared on its location, a congratulation message was played, and the letter is considered as passed for the user

Pass

22

Page 23: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

P2 The letter: ذ

X, Y on the doll: 63; 230

The user will be promoted to try again The user is promoted to

try again, a message is played

Pass

P3 The letter: ذ

X, Y on the doll: 63; 230

6 times

The user will be promoted to try again

The user is promoted to try again, a message is played

Pass

P4 The letter: ذ

X, Y on the doll: 63; 230

7 times

The user will be promoted to try again, he will also be able to get help

The user is promoted to try again, a message is played, a help button appears.

Pass

P3 No input The instructions will appear The instructions appears Pass

P4 No input The letter will appear on its location for 30 seconds

The letter appears on its location for 30 seconds

Pass

P5 No input The shown letter will disappear

The shown letter disappears

Pass

P6 X, Y on the doll: 63; 230

No response No response Pass

P7 No input The letter's main page will be shown

The letter's main page shown

Pass

P8 No input The program will be terminated

The program terminate Pass

23

Page 24: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

INTEGRATION AND SYSTEM TESTING

We have tested the components of our system independently above, now we will start integrating the components to test the entire system.

First, operating the register function (C2)with the login (C1). whether the registered accounts appear in the login menu, and so on.

Then, the choose letter function (C3) will be integrated.

The following figure show the components after adding the "concept page" function (C4)

Then the subsystem "Place on the doll" (C5) will be added

24

C1

T1.1 T1.2 T1.3 T1.4

C2

T2.1 T2.2 T2.3 T2.4 T2.5 T2.6 T2.7 T2.8

C1

T1.1 T1.2 T1.3 T1.4

C3

T3.1 T3.2 T3.3 T3.4 T3.5 T3.6

C2

T2.1 T2.2 T2.3 T2.4 T2.5 T2.6 T2.7 T2.8

C1

T1.1 T1.2 T1.3 T1.4

C4

T4.1 T4.2 T4.3

C3

T3.1 T3.2 T3.3 T3.4 T3.5 T3.6

C2

T2.1 T2.2 T2.3 T2.4 T2.5 T2.6 T2.7 T2.8

C1

T1.1 T1.2 T1.3 T1.4

Page 25: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

Adding the two lessons "faces and umbrellas" results in the following:

A the end, adding the last lesson "Letter shape" (C8) results in the complete system:

25

C5

T5.1 T5.2 T5.3 T5.4 T5.5 T5.6 T5.7 T5.8 T5.9

C4

T4.1 T4.2 T4.3

C3

T3.1 T3.2 T3.3 T3.4 T3.5 T3.6

C2

T2.1 T2.2 T2.3 T2.4 T2.5 T2.6 T2.7 T2.8

C1

T1.1 T1.2 T1.3 T1.4

Page 26: it323.files. Web viewKing Saud University. College of Computer and Information Sciences. Information Technology Department. Project –Phase4-Software Testing Document. حـــرفي

ROLES DISTRIBUTION

Member Responsibilities Description

....................... Unit Testing:

Register, Login, Letter pronunciation lesson, and concept page

Heila have done the unit testing for the register,login and letter pronunciation

........................ Test Items:letter pronunciation(Umbrellas and faces)Unit testing:letter pronunciation(Umbrellas and faces)

Khawla have done the test items and unit testing for the functions: letter pronunciation(Umbrellas and faces)

REVISION TABLE

Reviewer NameComment TypePageSectionDescription

Language mistakes

...-Introduction

Missing content...- Unit Testing

Pseudocode wasn't reflecting testing item T1.4

......

26