Skip to main content

Test Cases

The results of test cases, tested on develop branch updated on 12FEB, are documented in this file.

Login Functionality

TC001 - Login Functionality for Different User Roles

Description: Verify that users can successfully log in with valid credentials based on their assigned roles.

Preconditions:

  • The application is accessible.
  • User credentials for different roles are available.

Test Steps:

  1. Open the login page.
  2. Enter valid credentials for a specific user role.
  3. Click on the "Login" button.

Expected Results:

  • For each user role (Manager, Participant, Client):
    • The user should be redirected to the corresponding dashboard.
    • The dashboard content should match the privileges and information associated with the user role.

Test Data:

  • User credentials for various roles (Manager, Participant, Client) can be found in the Ranger repository README.md file.

Notes:

  • Repeat the test steps for each user role separately.

TC002 – Invalid Login Attempt

Description: Verify the system behavior when an invalid login attempt is made.

Test Steps:

  1. Open the login page.
  2. Enter an invalid username and/or password.
  3. Click on the "Login" button.

Expected Results:

  • The system should display an error message, and the user should not be allowed to log in.

TC003 – Switching Roles

Description: Validate that users can switch between available roles.

Preconditions:

  • User has rights to multiple roles.

Test Steps:

  1. Switch from one role to another (for example, manager to participant).

Expected Results:

  • The user is switched from one role to another, and accurate info is displayed.

Manager Test Cases

Preconditions:

  • User is logged in with Manager role.

TC004 - Exercises Load on Exercises Page

Description: Validate that exercises load as expected on the exercises page.

Test Steps:

  1. Navigate to the exercises page.

Expected Results:

  • The exercises should load without errors.

TC005 - Manager Can Add an Exercise

Description: Ensure that a manager can successfully add a new exercise.

Test Steps:

  1. Navigate to the exercises page.
  2. Enter test data.
  3. Add a new exercise.

Expected Results:

  • The exercise should be added successfully.

Test Data:

  • Exercise name – any input
  • Deployment group – any input

TC006 – Adding an Exercise with Already Existing Name

Description: Ensure that exercises with duplicate names cannot be added.

Test Steps:

  1. Navigate to the exercises page.
  2. Enter test data.
  3. Add a new exercise.

Expected Results:

  • The exercise shouldn’t be added, and an error indicating the duplicate name issue should be shown.

Test Data:

  • Exercise name – an existing exercise name
  • Deployment group – any input

TC007 – Modifying Information in Exercise Dashboard

Description: Verify that information for exercise can be submitted and changed.

Test Steps:

  1. Open an existing exercise dashboard.
  2. Add AD group and Scenario SDL.
  3. Change exercise name and Deployment group.
  4. Submit changes.

Expected Results:

  • Changes should be submitted successfully; relevant exercise information should be visible displayed and correct estimated resources are calculated.

Test Data:

  • Exercise name – any input
  • Deployment group – any input
  • AD Group – any input
  • SDL script – syntactically correct SDL

TC008 – Adding Incorrect Scenario SDL

Description: Verify the system’s ability to handle incorrect SDL script.

Test Steps:

  1. Open an existing exercise dashboard.
  2. Add incorrect Scenario SDL.

Expected Result:

  • Resource estimation failed should be failed, and SDL Parsing error is shown.

Test Data:

  • SDL script – syntactically incorrect SDL

TC009 – Adding Scenario SDL from Deputy Package

Description: Get scenario SDL from Deputy package.

Test Steps:

  1. Open an existing exercise dashboard.
  2. Select to add SDL from Deputy package.
  3. Select package name and version.
  4. Add the scenario.

Expected Results:

  • Correct SDL script is taken from the selected Deputy package and version.

TC010 - Exercise Dashboard Displays Necessary Information

Description: Verify that the exercise dashboard presents all necessary information.

Test Steps:

  1. Open an existing exercise dashboard.

Expected Results:

  • Relevant exercise information should be visible (exercise name, AD group, Scenario SDL, Estimated Resources).

TC011 - Deployment Can Be Added

Description: Confirm the system's ability to add a deployment.

Test Steps:

  1. Go to the exercise dashboard.
  2. Add SDL script.
  3. Add deployment details.
  4. Create a new deployment.

Expected Results:

  • The deployment should be successfully added, deployment is added to the deployments list on the right, and deployment succeeds. If the deployment count is more than 1, the AD Group input should be required for every deployment.

Test Data:

  • Deployment group – any input
  • Deployment name – any input
  • Deployment start time – any input
  • Deployment end time – any input later than the start date
  • AD Group for deployment 1 – any input
  • Number of deployments – any input

TC012: Deployment Dates Accuracy

Description: Ensure that deployment dates are accurate, and an end date cannot be set earlier than the start date.

Test Steps:

  1. Add a deployment with accurate dates.
  2. Attempt to set an end date earlier than the start date.

Expected Results:

  • Valid dates should be accepted, and it should not be possible to set an invalid end date.

TC013: Manager Can Upload a Banner

Description: Verify the manager's ability to upload a banner for exercise.

Test Steps:

  1. Navigate to the Banner page.
  2. Add banner name and content, use variables.
  3. Create banner.

Expected Results:

  • The banner should be created successfully.

Test Data:

  • Banner name – any input
  • Banner message content – any input, use variables.

TC014: Scores Page Displays Deployments and Scores

Description: Confirm that the scores page shows deployed exercises and their scores.

Test Steps:

  1. Navigate to the scores page.
  2. Sort and order using the functions provided.

Expected Results:

  • Deployments and corresponding scores should be visible, sorting and ordering of deployments should be correct.

TC015: Sending Emails

Description: Test various email scenarios including sending, receiving and variable usage.

Test Steps:

  1. Navigate to emails page.
  2. Fill in fields with test data (don’t select exercise or deployment, and template).
  3. Add variables to email body and subject.

Expected Results:

  • Emails should be sent and received correctly, and variables should be replaced appropriately.

Test Data:

  • To – any input
  • Reply to – any input
  • Cc – any input
  • Bcc – any input
  • Email subject – any input, include variables
  • Email body – any input, include variables

TC016: Sending Exercise-wide Emails

Description: Test exercise-wide email scenarios.

Test Steps:

  1. Navigate to the emails page.
  2. Fill in fields with test data and select exercise-wide option.

Expected Results:

  • Emails should be sent to all exercise’s participants.

TC017: Sending Deployment-specific Emails

Description: Test deployment-specific email scenarios.

Test Steps:

  1. Navigate to the emails page.
  2. Fill in fields with test data and select deployment-specific option.

Expected Results:

  • Emails should be sent to only deployment’s participants.

TC018: Email Activity

Description: Validate the tracking and logging of email activities.

Test Steps:

  1. Send emails through different scenarios.
  2. Check email activity logs.

Expected Results:

  • Email activities should be accurately logged.

TC019: Deployment Element Statuses

Description: Confirm that the Deployment element statuses are correct.

Test Steps:

  1. Click on a deployment.
  2. Show deployment element statuses.
  3. Verify virtual machines and templates.

Expected Results:

  • VM and template info should be correct according to the deployed SDL script.

TC020: SDL Information Accuracy

Description: Confirm that the SDL shown is correct.

Test Steps:

  1. Review the SDL script.

Expected Results:

  • SDL shown should be the same SDL that the deployment was made with.

TC021: User Accounts

Description: Validate the user accounts and private keys.

Preconditions: A deployment is created with a VM, which source is a Deputy package containing account information (name, password, private key fields).

Test Steps:

  1. Review account information.

Expected Results:

  • Name, password, and private keys should display correct information (should be the same values as in the deployed Deputy package).

TC022: Entity Selector Functionality

Description: Test the entity selector, its connection, disconnection, and the correctness of displayed users and entities in the entity tree.

Test Steps:

  1. Select entity and user.
  2. Connect the entity and user.
  3. Check the displayed entity tree.
  4. Disconnect user from entity.

Expected Results:

  • It should be possible to connect and disconnect users and entities.
  • It should be possible to connect users to multiple entities.
  • Entities shown in the dropdown should be only the entities specified in the deployed SDL script.
  • Users shown in the dropdown should be only the users from the AD group selected for the deployment.

TC023: User Submissions and Scoring

Description: Validate user submissions, file uploads, text inputs, and the impact on scoring.

Preconditions: A submission is available for the manager to score.

Test Steps:

  1. Open a manual metric submission.
  2. Download submitted file.
  3. Validate submitted text.
  4. Submit a score.

Expected Results:

  • Score submissions should be recorded correctly, affecting scoring as intended.

TC024: Logs Functionality

Description: Test logs at different levels and ensure the correctness of timestamps.

Test Steps:

  1. Generate different level logs (debug, info, warn, error).

Expected Results:

  • Logs should be generated correctly with accurate timestamps.

Participant Test Cases

Preconditions:

  • User is logged in with Participant role.

TC025: Connected Exercises Display

Description: Confirm that only the connected exercises and deployments are correctly displayed for participants.

Preconditions: Participant is connected to some deployments (done in the entity selector page under Manager view).

Test Steps:

  1. Navigate to Exercises page.

Expected Results:

  • Only connected exercises should be visible.

TC026: Entity Selection Information

Description: Test the selection of connected entities, ensuring correct information based on the entity.

Test Steps:

  1. Select a deployment.
  2. Select an entity.

Expected Results:

  • Information should be accurate and change based on the selected entity.

TC027: Dashboard and Banner Display

Description: Ensure that the participant's dashboard banner is displayed correctly.

Test Steps:

  1. Check the participant's dashboard.

Expected Results:

  • Banner should be visible in the dashboard.

TC028: Scores Display for Participant Teams

Description: Confirm that scores shown are correct according to the participant's team.

Preconditions: User is logged in with Participant role.

Test Steps:

  1. Access the Scores page.

Expected Results:

  • Scores should be limited to the participant's team and be accurate depending on the deployment state.
  • Correct score graph is displayed.

TC029: Event Triggering and Information Display

Description: Test events, their triggering, the correctness of the event window, and the display of information, including the loading bar.

Test Steps:

  1. Deploy a deployment with events.
  2. Navigate to the Events page.
  3. Open events.

Expected Results:

  • Events are correctly displayed according to the time.

TC030: Accounts Information Display

Description: Verify that correct data is displayed.

Preconditions: A deployment is created with a VM, which source is a Deputy package containing account information (name, password, private key fields).

Test Steps:

  1. Review account information.

Expected Results:

  • Name, password, and private keys should display correct information (should be the same values as in the deployed Deputy package).

TC031: User Submissions

Description: Verify that the user can submit data for scoring.

Preconditions: Manual metric is available for the participant to submit.

Test Steps:

  1. Navigate to the User submissions page.
  2. Add an artifact and text.
  3. Submit the data.

Expected Results:

  • Submission is accepted and displayed to the manager.