Skip to content

Moral Decision Display Testing Plan

Amber Chen edited this page Oct 17, 2024 · 3 revisions

1. Introduction

This test plan outlines the test cases for the MoralDayX class (where X is One, Two, Three, and Four). These classes is responsible for displaying the screen where the player is to make their moral decision that will impact future levels.

2. Test Objectives

  • Verify the correct initialisation of the MoralDayX class

3. Test Cases

3.1 Valid Initialisation

3.1.1 Valid Initialisation

  • Test Method: testToggleVisibility_Hide()
  • Objective: Verify that the MoralDayX class does not initialise when a game is started.
  • Expected Result: The component should not initialise.

4. Test Execution

All tests should be executed as part of the test suite in InventoryComponentTest.java. The testing framework (JUnit) will report on the success or failure of each test case.

In addition to the automated tests, screen recordings will also be employed for testing purposes - these recordings will capture the gameplay experience and interactions with the MoralDayX class. This approach not only enhances the understanding of how the class performs under various scenarios but also aids in identifying any unexpected behaviour that may not be easily caught through traditional testing methods.

MoralDayOne -> money laundering night

Screen.Recording.2024-10-17.at.12.57.02.pm.mov

MoralDayTwo -> gambling night

day2test.mov

MoralDayThree -> killing the health inspector

day3test.mov

MoralDayFour -> taking drugs with Rhino Boss

day4test.mov

5. Conclusion

This test plan covers the functionality of the MoralDayX class, including initialisation. Successful execution of test cases will provide confidence in the robustness and correctness of the MoralDayX implementation.

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