Skip to content

Test Plan for Tutorial

Lakshay edited this page Oct 3, 2024 · 4 revisions

Test Environment

Framework: JUnit 5

Dependencies:

GdxGame: The main class under test.

ServiceLocator: Manages the services used in the game.

Mocked components like RenderService to simulate their behavior.

Mock and statically mock input handling to simulate user input.

Test Cases

1.Advance the Tutorial Steps with Inputs

Purpose: check whether it moves to next tutorial step with right input

Setup: start the TutorialScreenDisplay and call advanceTutorialStep()

Expected Outcome: The tutorial step advances on right input .

2.Advance Tutorial Step with Invalid Input

Purpose: Check that the next tutorial step should not be displayed with wrong input .

Setup: fix the tutorial step to a specific input only and call advanceTutorialStep().

Expected Outcome: The tutorial step doesnt change .

3.End Tutorial with Enter Key

Purpose: Verify after pressing enter the main game starts

Setup: Set the tutorial step to the final step and simulate the enter key press.

Expected Outcome: The current screen redirects to MAIN_GAME.

4.Dispose Tutorial Resources

Purpose: Verify that the resources are disposed afterwards .

Setup: Call dispose()

Expected Outcome: Resources related to the tutorial are released, and flags are reset.#

Table of Contents

Home

Team Design Document

Game Features

Inventory System
Scoring System
Food Recipes
Level System
Player Actions
Ordering System
Stations
Items
Map Design
Customers
Pause Menu
Upgrades
End of Day Display
Day Night Cycle
Moral System
Debug Terminal
Game Interactions Tutorial
Backstory Cutscenes

Game

Getting Started

Entities and Components

World Backstory

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Map Design

Test Plans

Sensor Component

Customer Sensor Component

Interaction Component

Inventory Component

Inventory Display

Station Meal Component

Station Progress Display

Keyboard Input Component

Fire Extinguisher Handler Component

Score System

HoverBox Component

MainGameActions Create Docket Triggers

End Day Display Component

Cutscene Area

Docket

Docket Line Display

Docket Meal Display

Main Game Order Button Display

Order Actions

Recipe

Ticket Details Component

BackstoryCutscene Test Plan

BackstoryCutsceneDisplay Test Plan

Test Plan for Tutorial

Keybinds

Keybinds Test Plan

Test Plan for MainGameOrderTicketDisplay

Test Plan for MainGameOrderBtnDisplay

Test Plan for Docket

Test Plan for DocketLineDisplay

Test Plan for OrderActions

Ticket Details

Test plan for RandomComboService

Test plan for LoanUpgrade

Test plan for UpgradesDisplay

Test plan for RageUpgrade

Test plan for SpeedBoostUpgrade

Test plan for DancePartyUpgrade

Test plan for ExtortionUpgrade

Troubleshooting

MacOS Setup Guide

Clone this wiki locally