No Pain..No Gain

 

PSS Test Plan

Page history last edited by Najd Al-Mouh 1 yr ago

 

 

Introduction:

 

 

The aim of this plan is to test the requirements and components of the PSS Software.

We will start by introducing the items to be tested. We will then introduce the test case designs.

Finally, we will test the system using the incremental integration testing.

 

 

 

Test Items:

 

 

1) The system shall enable the coordinator to input the start and end date for project presentations.

 

1.    read start date,End date 

   Begin if

2.    if End date less than start date

3.    Then display please enter correct date

   Else

4.    store start date,End date in data base

   End if

 

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

 

 

2&3) The system shall enable the user and staff to input their projects and schedule information.

 

Agenda_Entry()

 

     function Begin

     array  p_date;

     array  p_time;

     array  e_date;

     array  e_time;

     integer i,j;

1.  i=0;

2.  j=0;

 

3.     while(submit not equal check)

                          //begin of while

4.     if (entry equal to "P" or "p")

 

 

5.         p_date[i]==date of entry;  \\ well be retrieved from DB

6.         p_time[i]==time of entry;   \\ well be retrieved from DB

7.         i++;

 

 

       else

8.           if(entry equal to "E" or "e")

 

 

9.               e_date[j]==date of entry;  \\ well be retrieved from DB

10.             e_time[j]==time of entry;   \\ well be retrieved from DB

11.              j++;

 

 

       else(any other char)

12.             break;

                    //end of while

 

13.       ADD_Pref(*p_date,*p_time);

14.       Add_exc(*e_date,*e_time);

 

15.    connect to DB to display schedule;

  // end

 

     Function Add exc(pointer ed type date ,pointer et type time )

 

     Begin

 

16.       While content of ed not equal null

 

17.             excdate   =  content of ed

18.             exctime  = content of et

19.             ed= Increment ed

20.             et= Increment et

 

 

       end of while 

     end function

 

    ADD_Pref(pointer  P-Date type date ,pointer P-Time type time )

 

        Begin

21.        if P-Date equal to NULL

22.            Then  call Expand_Function(self.ID)

23.        Else  Begin While

24.           While (content of P-D )

 

 

                   Begin While

25.                   Set PrefDate to content of P-D

26.                   Set PrefTime to content of P-T; 

27.                   Set P-Date To P-Date->next

28.                   Set P-Time to P-Time->next

 

 

         End While

 

      End_IF

  End _Function

 

 Expand_Function( )

 

   Begin

29.     send-Email (coordi"you  have Strong conflict you must expand range date of presentation")

END

 

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

 

 

 4) The system shall display the project presentation schedule.

 

Display_project_presention_schedule(  )

 

        function Begin

read Group object

                   Do 

                           Begin if 

2.                                  if Group object finaldate equal zero  Then

3.                                       call Find_FinalDate( refrence Group object)function 

                            End if

                              Begin if 

58.                              if finaldate for Group object not equal zero 

59.                                           print finaldate and finaltime 

                                     Else 

60.                                     print there are no finaldate until now 

                        End if 

61.                 read group object

62.               while there is group object

EnD Function     

 

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

 

Find_FinalDate( refrense Group object)

 

    Begin Function  

4.           set RecommendedDate equal zero 

             Begin if 

5.                    if user_Group equal user_set_Group    //check all user in group are set P and E day 

             then 

6.                            initial tow dimntion arry suitable_schedule 

7.                             For all user in Group object 

                                      Begin For 

8.                                      call suitable_schedule_fun(user of group,refrence of suitable_schedule) 

                                     End For

17.            initial sd_date from type  date 

18.            initial sd_time from type  time

19.            set success to zero 

20.            set time to zero 

21.            set date to zero

22.             For in i row 

                    Begin For 

23.                   For in j cluom 

                            Begin For 

                                 Begin IF 

24.                                   if suitable schedule[i][j] bigger than Sug_Date    Then  

25.                                            set Recommended Date equal to suitable_schedule[i][j]     

26.                                            set time equal j

27.                                            set date equal i

                                 End IF 

                            End For 

                   End For 

28.             call convert_to_date function (time,date,refrence sd_date,refrence sd_time) 

                        Begin IF 

50.                          IF  RecommendedDate equal number of user_Groub  Then 

51.                                 set success to one 

                               Else

52.                                 Call Function who_user_are_conflict(Group_obj) 

                              End IF

                          Begin IF 

55.                         IF success  

56.                                set final_date for Group to sd_date 

57.                                set final_time for Group to sd_time

                          End IF

          End IF

   End Function 

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

 

Suitable_Schedule_fun(user of group , refrence of suitable_schedule)

 

     Begin function 

9.             for in i row 

                Begin For 

10.              for in j column 

                      Begin For 

                           Begin IF

11.                            if  set Pref_Date of user in group  Then

12.                                        increment suitable schedule in this row column 

                           End if 

                      End For 

                End For

13.            For in i row 

                Begin For 

14.             For in j column 

                       Begin For 

                          Begin IF

15.                            IF  set excl_Date of user in group 

16.                                       decremnt suitable_schedule in this row coloum 

                          End IF 

                       End For 

                End For

End Function

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

 

 

convert_to_date function (time,date,refrence sd_date,refrence sd_time)

 

   Begin Function

29.           initial sd_date from type  date 

30.           initial sd_time from type  time

31.    switch time

         Begin Switch 

                 case 1 

32.                set time for sd_time from 8 to 9 

                 case 2 

33.                set time for sd_time from 9 to 10 

                 case 3 

34.                set time for sd_time from 10 to 11 

                 case 4 

35.                set time for sd_time from 11 to 12 

                 case 5 

36.                set time for sd_time from 12 to 1 

                 case 7 

37.                set time for sd_time from 1 to 2 

                 case 8 

38.                set time for sd_time from 2 to 3 

       End switch

 

39.           initial flag exit to 1 

40.           initial counter to zero 

41.          for to row                 // condition :finish whine Exit set to 0 

                 Begin For 

42.               for to cluom          // condition :finish whine Exit set to 0 

                       Begin For 

                              Begin IF  

43.                                if  number of row equal number of date and44. number of column equal number of time                               Then 

45.                                     set exit equal to zero 

                                     Else 

46.                                     increment counter 

                               End IF 

                       End For 

                 End For

47.              set sd_date equal to sum of start DateRange and counter 

48.              return sd

     End  Function

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

 

who_user_are_conflict(Group object)

 

    Begin Function 

53.             for all user in Group object

 

                      Begin For

 

54.                   send_email function(user email,"Sorry We didn't find Sutible date for you     plesae re enter  your prefrences and exclusion again ,You can show where  you are conflict by clicking on Display conflict Information .Thank You")

 

                      End For

 

    End Function

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

 

5.The system shall display conflict information.

 

     retrieve prefDate,sugDay from Data Base

1.    initial intersect_flag from integer type to zero

2.    initial first_member_flag from boolean type to true

       set intersect_flag to zero

       begin for

3.    for in i row

          begin for             //nested loop in sugDay

4.       for in j column

              begin if

5.           if sugDay[i][j] equal to one Then            \\Its suggest date

6.                 first_member_flag boalean type to false

                    begin if

7.                 if prefDate[i][j] equal to one Then    \\There is an intersect in cell

8.                       set intersect_flag to one

                    Else

9.                       sugDay[i][j] equal to zero        \\no intersect in this cell

                    End if

             End if

         End for

      End for

      begin if

10. if first_member_flag eqaual true         //its first member

11.         sugDay=prefDate       //copy array of preference day  to suggest date array

12.         store sugDay in Data Base

              call show_sugDay() function         \\call function

     Else

             begin if

13.        if intersect_flag equal to one Then     \\no conflict and there is suggest date

                     call show_sugDay() function              \\call function

14.                store sugDay in Data Base        

             Else

                     initial conflict_array from character two dimensional array

                     begin for

15.                for in i row

                          begin for            //nested loop in sugDay

16.                     for in j column

                                begin if

17.                           if sugDay[i][j] equal to one Then        \\its suggest date

18.                               set conflict_array[i][j] to "s"

                                End if

E

                          End for

                    End for

                    begin for

19.               for in i row

<                         begin for           //nested loop in prefDate

20.                     for in j column

                                begin if

21.                           if prefDate[i][j] equal to one Then       \\its preference day

22.                                   set conflict_array[i][j] to "p"

                               End if

                          End for

                    End for

 

                    begin for

23.               for in i row

                          begin for           //nested loop in conflict_array

24.                     for in j column

                               begin if

25.                          if conflict_array[i][j] equal to "s" Then

26.                               display in green color

                               Else

                                   begin if

27.                              if conflict_array[i][j] equal to "p" Then

28.                                 display in blue color

                                   End if

                              End if

                         End for

                End for

          End if 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Next>>(Test Cases) 

 

 

 

 

 

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

Comments (5)

profile picture

Rana Al-Rasheed said

at 1:02 pm on May 16, 2008

Hi, girls .. Just wana ask ( END ) should we give it a number ????

profile picture

nouf al-ajmi said

at 5:33 pm on May 16, 2008

i think it depend if something happen in it you should give it number like do while the end of thid is while and h=here you will check the condithion but the end of if,for no need nothing will haappen

profile picture

Ramah AL-Balawi said

at 6:57 pm on May 16, 2008

Hi Rana..in your case I think there will be no need to give END a number.

profile picture

Najd Al-Mouh said

at 9:47 pm on May 16, 2008

Hi I'm with Nouf and Ramah

profile picture

Nouf Alghanmi said

at 4:10 am on May 18, 2008

good job mada thanx

You don't have permission to comment on this page.