RELEASE 2 MILESTONE 2 TEST PLAN
===============================

3. Functional Test Plan
-----------------------

Work through the following checklist, adding the date the test passed
and your initials and comments on the tests if required.

R2M2 Functional Tests
---------------------

[X] star menu tests
      [X] not in call, press *, hangup
         + should go back to idle 
	 + DR 14/8/03 OK
         + BK 26/8/03 OK
      [X] not in call, press *, flash
        + should do nothing 
	 + DR 14/8/03 OK
         + BK 26/8/03 OK
      [X] a-b station call, flash, press *
         + a should get busy
	 + flash should return a-b call
	 + DR 14/8/03 OK
         + BK 26/8/03 OK
      [X] not in call, press flash-*
         [X] test prompt repeats itself every 3 secs
 	     + DR 14/8/03 OK
             + BK 26/8/03 OK
         [X] test pressing 1,2 stops prompt playing
	     + DR 14/8/03 OK
             + BK 26/8/03 OK

[X] pickup another ringing extension **
   + if an ext A is ringing, pickup ext b and press **
     to take call 
   + only works for incoming trunk calls
   + gives key-system like func to pick up any ringing line
   [X] check normal answer of A when ringing still works
       + DR 19/8/03, OK, 
   [X] make A ring from trunk, pick up B, **, take call
       + DR 19/8/03, OK, 
       + BK 26/8/03 OK
   [X] with no phones ringing pick up B, **, nothing happens
       + DR 19/8/03, OK, just goes to busy signal  
       + BK 26/8/03, OK, just goes to busy signal  
   [X] try a ** when a call is on hold - should be ignored
      + this is just a bit too complex
      + in current design cant use * menu when anyone on hold,
        only from idle state
       + DR 19/8/03, OK, 
   [X] two ext pressing ** at same time
      + one should take call
      + other should be refused elegantly, reset back to idle OK
      + DR 19/8/03, OK, 
      + BK 26/8/03, OK, 

[X] voicemail config probs
      [X] check with no profile found we get busy tone
         + should reset OK to idle on hangup 
	 + DR 15/8/03 all OK
      [X] check with no vmail directory or invalid path we get busy tone
         + should reset OK on hangup 
	 + DR 15/8/03 all OK

[X] voicemail playback tests
      + test000.conf is set up for mail in vmail/bkramer 
      + there are some test files vm*.wav in the tests dir
      + to test vm just cp tests/vm*.wav vmail/bkramer
      + then u can listen/delete messages etc
      [X] sounds OK with 0,1, and > 1 messages
         [X] you have no messages
	 [X] you have 1 message
	 [X] you have X messages
	 + DR 14/8/03 all OK
      [X] what happens when no messages present
         + make sure nothing goes crazy, should just annouce "you have
           no messages"
 	 + DR 14/8/03 OK
 	 + BK 26/8/03 OK
      [X] 1 - next, 2 delete, 3 - play again work OK
         [X] with 4 files
	 [X] with 1 file
 	 + all DR 14/8/03 OK
      [X] press lots of numbers, flash key multiple times, try to upset
         it with random key strokes
 	 + DR 14/8/03 OK
 	 + BK 26/8/03 OK
      [X] check delete deletes the correct message
 	 + DR 14/8/03 OK
 	 + BK 26/8/03 OK
      [X] returns to idle when:
         [X] hangup while playing message
         [X] hangup while playing prompt
         [X] hangup while sleeping between prompts
         [X] hangup while saying number of emails
	     + DR 14/8/03 all OK
 	     + BK 26/8/03 OK

[] reading voicemail from trunk
   [x] enter menu option on record menu
      + not sure what this is, pin should be entered during greeting
      + entering pin during greeting braks through
      + BK 26/8/03
   [x] enter pin
      + when pin is entered during greeting, it works BK 25/8/03
   [x] voicemail read menu
      + uses "voicemail_listen_msgs"
      + works BK 25/8/03
   [x] hangup in voicemail read menu - returns to idle
      + works BK 25/8/03
   [x] hangup while listneing msg - returns to idle
      + works BK 25/8/03
   [x] try entering pin while leaving msg from another station
      + when pin is entered during greeting, it works BK 25/8/03
   [x] hangup trunk after entering 1 digit of pin
      + returns to idle
      + BK 27/8/03
   [x] hangup station after entering 1 digit of pin
      + returns to idle
      + BK 27/8/03
   [x] what happens if pin doesnt match?
      + e.g. incorrect pin?
      + does record process still work OK
      + or does pending event cause record to terminate straight away   
      + BK:should just record message
      + records message BK 27/8/03


[x] leaving voicemail
   + modify test000.conf to switch vm on
   [X] leaving msg from trunk
       [X] station busy
           + BK 21/8/03
 	   + BK 26/8/03 OK
       [X] station rings out
           + BK 20/8/03
 	   + BK 26/8/03 OK
   [X] leaving message from trunk with blind transfer
       + this uses different code to test above, so should be tested
         separately
   [X] leaving msg from station
       + two tests below use different code
       [X] station busy
       [X] station rings out
   [X] hitting VM of a station with a trunk/station on hold
      + correct handling of flash/hangup
      [X] flash while collecting vmail
         + should restore call
	 + test while playing prompt and while recording
      [X] hangup while collecting vmail
         + should tfer bparty to vm 
	 + test while playing prompt and while recording
   [X] test 30s timeout
       + station leaving vm
       + trunk leaving vm
   [X] test pressing # to finish recording
       + station leaving vm
       + trunk leaving vm
   [X] email notification
   [X] email of entire wave file
   [X] limiting size of vm/number of vms
      + tested using maxmsg in [voicemail]
      + set it to 1 and it worked, took me straight to busy tone
        on station
      + hung up straight away on trunk
   [X] default greeting
   + ALL above tested by DR OK on 20/8/03

[x] voicemail with modifiers
   [x] test 3-4 rings 
      + 100,104,100:voicemail=yes
      + passed BK 25/8/03
   [x] test two trunks ringing simultaneously
      + set up two trunks with the same mapping
      + passed BK 25/8/03
   + perf test for this one?

[X] send to voicemail
   + trunk-stat A call
   + flash, press 9, then 3-dig extension
   [X] transfer to VM for that extension
   [X] test VM left in correct mailbox
   [X] test hangup after 9 pressed but waiting for digits
   [X] test flash after 9 pressed but waiting for digits
   + all above DR OK 21/8/03

[X] AA
   [x] time out if no key pressed, hangup after 5 tries
       + BK 25/8/03
   [x] DTMF 0 at any time to reach a human
       + BK 25/8/03
   [x] * works
       + BK 25/8/03
   [x] hangup returns to idle
       + evenutally it returns to idle BK 25/8/03 
       + programmed tone detector for corect tone and it works! BK 25/8/03

[x] groups
   [x] test regular incoming call (trunk map)
      [x] ring out
          + rotates through group and starts again 
          + BK 26/8/03
      [x] busy
          + rotates through group and starts again, continously ringing
          + BK 26/8/03
      [x] vm on should terminate call
          + BK 26/8/03
      [x] vm off should not terminate call, just move to next group member
          + BK 26/8/03
   [x] test groups from AA
      [x] ring out
          + returns to AA menu
          + BK 26/8/03
      [x] busy
          + returns to AA menu
          + BK 26/8/03
      [x] vm on should terminate call
          + BK 26/8/03
      [x] vm off should not terminate call, just move to next group member
          + returns to AA menu
          + BK 26/8/03

4. Performance testing
----------------------

   + fully automated tests
   + we use scripts to simulate phones and phone lines
   + leave running for some time   
   + each script used must run for 1000 iterations to PASS
  
   [x] testm2001: Voice mail testing
       + leaves many messages
       + listens to messages and randomly deletes
       + messages may be listened and left simultaneusly
       + messages may come from station and trunks
	     + messages could be left because:
		   + busy
		   + ringout
		   + directed straight to vmail
       + should hangup while:
	     + leaving message
		 + during prompt
       + BK 27/8/03 OK, left 2828 messages and collected 2827
       

   [x] testm2002: Star menu testing
	    + iterates through star menu
        + hangsup at random places
        + confirms that dialtone is heard before starting test
		+ BK 27/8/02 passed with 4 lines acheiving an avg of 
        \ 6662 iterations each

   [x] testm2003: Transfer testing
        + tests normal transfer 
        + tests blind transfer
        + tests vmail transfer
		+ BK 26/8/03 passed with 1290+ calls

   [x] testm2004: answer ringing extension
       + BK 27/8/03 passed, grabbed 4052 calls and still going !
