Certification

by Pete

                 Test Cases

--------- Ensure that Normal Pieces (KQBNRP=123456) are handled

o Verify whole chessboard displays correctly

o Verify that White can place opponent pieces via Right-Click
  - Put one of each piece in its proper position

o DO vvvvvvvvvvvvvvvvvvvvvvvv
1) Move a player piece and ensure that the correct
   move coordinates are returned.
   (Ignore that the piece doesn't actually move)
2) Verify all placed opponent pieces still there
3) Remove and/or move a few placed opponent pieces
4) Left Click on empty squares and opponent pieces.
   (This should not do anything)
  LOOP ^^^^^^^^^^^^^^^^^^^^^^ until all cases tested

o ESC to go to Black (Should return "resign")

o Verify that Black can place opponent pieces via Right-Click
  - Put one of each piece in its proper position

o DO vvvvvvvvvvvvvvvvvvvvvvvv
1) Move a player piece and ensure that the correct
   move coordinates are returned.
   (Ignore that the piece doesn't actually move)
2) Verify all placed opponent pieces still there
3) Remove and/or move a few placed opponent pieces
4) Left Click on empty squares and opponent pieces.
   (This should not do anything)
  LOOP ^^^^^^^^^^^^^^^^^^^^^^ until all cases tested

o ESC to go to next section (Should return "resign")

--------- Ensure that Special Pieces (KRP=789) are handled

o Verify all three White pieces shown on board
  Ensure each can be moved

o ESC to go to Black (Should return "resign")

o Verify all three Black pieces shown on board
  Ensure each can be moved

o ESC to go to next section (Should return "resign")

--------- Ensure that WindowSub works for all cases
(Blinking cursor in the lower left corner of the screen means SLEEPing)

o At message "No wait no clear"
  (press c to issue CLOSE --)
  - No Blinking Cursor
  - Data stays in screen
  (press c to go to next test)

o At message "Wait, no clear"
  (press c to issue CLOSE w-)
  - Cursor blinks for 2 seconds followed by
  - Data stays on screen
  (press c to go to next test)

o At message "No wait, clear window"
  (press c to issue CLOSE -c)
  - No Blinking Cursor
  - Data is erased
  (press c to go to next test)

o At message "Wait, clear window"
  (press c to issue CLOSE wc)
  - Cursor blinks for 2 seconds followed by
  - Data is erased
  (press c to exit program - All tests successful)

Note: When tests were done, nobody noticed that at end of game, the chessboard row numbers were reversed for White. Made a small change which fixed it: changed second occurrence of
IF Mode$ = "W" OR Mode$ = "BW-W" THEN
because it didn't get an earlier patch and was
IF Mode$ = "W" OR Mode$ = "BW" THEN



    
This message has been edited by iorr5t from IP address 68.98.164.60 on Jun 21, 2006 11:25 AM
This message has been edited by iorr5t from IP address 68.98.164.60 on Feb 14, 2006 7:19 AM

Posted on Feb 11, 2006, 7:18 AM
from IP address 68.98.164.60

Respond to this message   

Return to Index