Projects/Edu/Khangman/QA List 2.5

From KDE TechBase
< Projects‎ | Edu‎ | Khangman

List of expected behaviors for KHangMan 2.5.

Mouse Navigation

Keyboard commands

  • [Alt-U] focuses the guess box
  • When the guess box is selected, typing a character causes it to appear inside. It should only hold one character, and that character must be a letter.
  • [Enter] makes the guess and clears the box – see #Gameplay below for details.

Gameplay

After entering a guess, if it is...

Correct
Update answer area. If all letters have been guessed, show "Congratulations! You won!" and start a new game.
Incorrect
Update misses area and hangman image. If the misses area is full, show "You lost. The word was _____."
Already guessed
Display an error message.

The box is then cleared so the user can enter another guess.

Menu functions and keyboard shortcuts

Game Menu

  • New [Ctrl-N]: Resets the game
  • Open... [Ctrl-O]: Pops up a file chooser, allowing the user to pick a custom dictionary
  • Open Recent
  • Get Words in New Language... [Ctrl-G]: Opens the add-on installer
  • Quit [Ctrl-Q]

Category Menu

This contains a list of word categories (Animals, Fruits, Numbers, etc.). Choosing any of the categories starts a new game with a word from that category.

Language Menu

Look Menu

Lists the available themes. In the default installation, the following themes are provided:

  • Sea Theme
  • Bee Theme
  • Desert Theme

Selecting a theme changes the visual style of the game, but retains the game state (i.e. it doesn't start a new game)

Settings Menu

  • Toolbars Shown: Show/hide toolbars. Toggle each option and test that they work as expected.
  • Show Hint: If using a category that contains hints (e.g. Numbers) this displays a relevant phrase in the middle of the screen (e.g. "6"). Clicking it again turns it back off.
  • Show Statusbar
  • Configure Shortcuts
  • Configure Toolbars
  • Configure KHangman

Toolbar

These match the behavior of their namesakes in the menu (see above)

  • New
  • Show Hint
  • Quit
  • Theme switcher: Mirrors Look menu
  • Language switcher: Mirrors Language menu

Statusbar

From left to right:

  • Category name: Check that this updates when changing the category.
  • Wins and Losses: Should change after every completed game.

Tests for KDE 4.10

Below enter the tests you did and the related bug number if any error was found. For example:

Mouse Navigation

works as expected <name> <date>

Mouse Navigation

Works as expected. <Peter G. Netovsky> <13.01.2013>

Keyboard Commands

  • [Alt-U]

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • When the guess box is selected, typing a character causes it to appear inside. It should only hold one character, and that character must be a letter.

This works as written above. <Peter G. Netovsky> <13.01.2013>

  • [Enter]

Works as expected. <Peter G. Netovsky> <13.01.2013>

Gameplay

No problems were found here. Everything works fine. <Peter G. Netovsky> <13.01.2013>

Menu functions and keyboard shortcuts

Game Menu

  • New [Ctrl-N]

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Open... [Ctrl-O]

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Get Words in New Language... [Ctrl-G]

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Quit [Ctrl-Q]

Works as expected. <Peter G. Netovsky> <13.01.2013>

Category Menu

Works as expected. <Peter G. Netovsky> <13.01.2013>

Language Menu

Works as expected. <Peter G. Netovsky> <13.01.2013>

Look Menu

  • Sea Theme

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Bee Theme

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Desert Theme

Works as expected. <Peter G. Netovsky> <13.01.2013>

Settings Menu

  • Toolbars Shown

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Show Hint

Works as expected. Shows a hint above the word you need to guess. <Peter G. Netovsky> <13.01.2013>

  • Show Statusbar

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Configure Shortcuts

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Configure Toolbars

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Configure KHangman

Works as expected. <Peter G. Netovsky> <13.01.2013>

Toolbar

  • New

Works as expected. It does not reset your current results. It adds another lost game. <Peter G. Netovsky> <13.01.2013>

  • Show Hint

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Quit

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Theme switcher

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Language switcher

It has only one option - English. <Peter G. Netovsky> <13.01.2013>

Statusbar

  • Category name

Works as expected. <Peter G. Netovsky> <13.01.2013>

  • Wins and Losses

Works as expected. <Peter G. Netovsky> <13.01.2013>

Conclusion: A bug free game. My test results end here. Cheers. <Peter G. Netovsky> <13.01.2013>