Poor System Test Case Examples


Each test case below has one or more deficiencies in the Test Data section.  Attempt to identify the most serious problem (draw a circle around it) and write a brief explanation of how it could be improved.


1. Purpose:

Setup:

Test Data:

Action Input Expected Outcome
Start the game java OneApp SwingPlayer The start screen will appear.
Click: Start Game The game window should appear with 4 players hands, the deck, the current discarded card, score box, element choice, and turn direction indicators. It should be your turn. Verify that the number of cards remaining in each player's hand is displayed above their hands.
Begin playing the game. Click: Any of your cards, pass, the deck, or O-NE Expected output depends on your actions. Verify that the number of cards remaining in each player's hand is displayed above their hands.
Continue playing the game until game or round ends Click: Any of your cards, pass, the deck, or O-NE Expected output depends on your actions. Once game ends, you will see "Game Over" or "Round Over" in the game status console. Verify that the number of cards remaining in each player's hand is displayed above their hands.









2. Purpose:

1. To ensure that betting happens before and after the flop.

Requirement Traceability:

5.2.5 First Stage Of Betting Begins Before The Flop
5.2.10 Second Stage of Betting Begins After The Flop

Setup:

  1. Have a built holdemConsole.

Test Data

Action Input Expected Output
Start holdemConsole from the Holdem directory. java -classpath "build/classes" holdemConsole.ConsoleProgram BetGameState: asking console player for $10.0
please enter your bet, in cents. to fold, enter -1:
Enter a bet of ten dollars. 1000 event: advanced to holdem.DealFlopGameState
event: advanced to holdem.PostFlopBetGameState
please enter your bet, in cents. to fold, enter -1:
Enter a bet of ten dollars. 1000 event: advanced to holdem.DealTurnGameState






3. Purpose:

Setup:

Test Data:







4. Test Data:
Action Input Expected Output
Start the Toleco.jar file with no arguments.
A window appears showing the main menu of the game Toleco
with a Ocelot, New Game, Load Game, Map Editor, Help, and Quit
button.
Click the "New Game" button
A window appears with a file chooser to load a valid .ocem map.
Select the downloaded BasicMap.ocem
The file name box at the bottom of the window will now have
BasicMap.ocem listed in it.
Click the "Load" button
A map should appear.
Click on every location.
On the right side of the screen terrain name, statistics, and a picture should be displayed.








5. Purpose:

  1. Verify that when the hint button is clicked, the points get subtracted from the user score.

Setup:

Find the game JAR file and execute it. This will open the game on the screen.

Test Data:

Action
Input
Expected Output
Start Raccolta game
A window with a menu bar appears on the screen
From the menu bar select new game
The board game is displayed with the following buttons: 3 more, hint, start
On the board game, click the start button
The game is under way, cards are displayed on the table and timer stars
Find 3 cards that make a set
The user score gets incremented by 20








6. Purpose:

  1. Verify the user may only press the hint button when less than two cards are selected.

Setup:

Execute the Program.

Test Data:

Action Input Expected Output
Starts the Game
A window appears without any cards dealt on the table
Press 'New Game' from 'File' menu
Game starts and 15 cards are dealt on the table. The timer starts.
Press a card on table
Selected Card is highlighted.
Press the hint button
Nothing happens.
Press second card on table
Selected Card is highlighted.
Press the hint button
A hint is displayed.











7.
In this example, the problem is with Setup.

Purpose:

1. To ensure that the Deck is being properly shuffled before the Texas Hold'em game begins.

Requirement Traceability: 5.2.1 Deck Shuffled

Setup:

1.) Open up NetBeans IDE.

2.) Go to File >> Open Project... -- a dialog should appear

3.) Go to the directory that contains the RRAMM project and click Open

4.) Right-click Hold'em under the Projects pane, and select Clean and Build

5.) Right-click Hold'em under the Projects pane and select Run -- the application should run

Test Data

Action Input Expected Output
Click File
A new menu appears underneath File with the options of "New", "Open" or "Exit".



8. Purpose:

Verify the point counter if working correctly

Setup:

Navigate to where hearts.jar is located in the command line. Enter: "java -jar hearts.jar"

Test Data:

Action Input Expected Outcome
Click a playable card Click a playable card Card is played into the trick
Note the value of the winning card and who played it
Click a playable card Click a playable card Card is played into the trick
Note the value of the winning card and who played it
None None The score displayed for the players should be the total of all all the noted values.









9. Purpose:

Verifies gameplay score display is consistent with the requirements.

Setup:

Navigate to where hearts.jar is located in the command line. Enter: "java -jar hearts.jar"

Test Data:

Click a playable card Click a playable card The card should be added to the trick and the trick should finish
None None Score popup should display
Player names should be ordered horizontal across the top.
Hand numbers should be ordered vertically lowest to highest on the left.
The final row should contain the current total points of each player.









10. Purpose
  1. Verify that the player is notified its his turn after the computers play

Setup

  1. For a properly setup Windows platform meeting all previous requirements, download the application from the website and save it to your desktop. Start the application by navigating to your desktop and double clicking the .JAR file.
  2. Play a turn and wait until it's your turn again

Test Data

Action Input Expected Output
Start the Application None 7 cards should be displayed for each player.
A discard card is displayed at the start of the game.
The current play color is indicated.
Each player's name is displayed.
The play direction is indicated.
Play a turn Select any playable card from the human hand panel or keep drawing until getting a playable card and play it. The game shows the player's played card in the discard pile and then lets the computer players play.
Once all the computer players played, the game should notify the player it's their turn again.









11. Purpose:

Setup:

  1. Obtain a system with a Windows 98/XP/Vista or Fedora 11 operating system with JRE 6 Update 18 installed.
  2. Download the JAR executable for Union onto your harddrive.
  3. Open a command line terminal.
  4. Navigate to the directory of the JAR executable.
  5. Enter "java -jar <jar-executable> -test 3" on the command line where "<jar-executable>" is the name of the JAR executable.

Test Data:'

Step# Action Input Expected Result
1 Click the "Normal Game" button.
A normal game should start (a hint button should be available on the playing area under the deck).
2 Click the "hint button"
A card from the playing area should be put into the union evaluator. (right side)









12. Purpose:

Setup:

  1. Obtain a system with a Windows 98/XP/Vista or Fedora 11 operating system with JRE 6 Update 18 installed.
  2. Download the JAR executable for Union onto your harddrive.
  3. Open a command line terminal.
  4. Navigate to the directory of the JAR executable.

Test Data:

Step# Action Input Expected Result
1 Enter into the command line: java -jar <jar-executable> -c
(where "<jar-executable>" is the name of the JAR executable).
Console should print out a text display to the console portraying the playing area for the game.









13. Purpose:

2.2.5.2 Once all flipping is completed, if the board has at least one empty section then begin the turn of the player who played least recently.

Setup: Navigate to TripleTrilogy folder and run it with no arguments (this will run the program in GUI mode). A new game will be displayed.

Test Data:

Action Input Output
Ensuring flips complete If the board has ceased flipping possessions of card Ready to check for next section of requirement
Act of who's turn it currently is  If at least one card space is vacant, whichever player did not
play last is up to place a new card from their hand on the board
A new card should appear on the game table, flipping
possession of other cards as needed.









instructor solutions