Skip to main content

Test Case Editor

This document explains how to use the Test Case Editor to create and edit BDD-format test cases.

Access Path

  • URL: /test-case-manager/editor

Page Structure

The sidebar provides selection for test pools and test sets: Sidebar Collapse:
  • Click the arrow button to collapse/expand the sidebar
  • Shows simplified selection indicator when collapsed

Main Content Area

Divided into left and right panels: Left - Test Case List:
  • Displays all cases in the current test set
  • Supports search and filtering
  • Displays in tree or list view
Right - Test Case Details:
  • Displays complete content of selected case
  • Can edit case information and steps

Selecting Test Pool and Test Set

Steps

  1. Select a test pool from the “Test Pool” dropdown menu
  2. Select a test set from the “Test Set” dropdown menu
  3. The system automatically loads cases from that test set

Test Set Information

When selecting a test set, you can see:
  • Test set name
  • Version number
  • Last updated time

Test Case List

View Modes

  • Tree View: Display in folder structure
  • List View: Display in flat list

List Operations

Editing Test Cases

Basic Information

BDD Test Steps

Test steps are written in BDD format:

Adding Steps

  1. Click ”+ Add Step” in the steps section
  2. Select step type (Given/When/Then/And/But)
  3. Enter step content
  4. Press Enter to quickly add the next step

Editing Steps

  1. Click step content to enter edit mode
  2. Modify step type or content
  3. Click elsewhere or press Enter to save

Deleting Steps

  • Click the delete button on the right side of the step
  • Or select the step and press Delete key

Adjusting Order

  • Drag steps to adjust order
  • Use up/down arrow buttons to move steps

Step Templates

The system provides common step templates:

Saving Changes

Auto-save

  • The system automatically saves drafts as you edit
  • The sidebar displays an “Unsaved changes” prompt

Manual Save

  1. Click the “Save” button in the sidebar
  2. Or use the shortcut Ctrl+S (Cmd+S)

Save Status

Creating New Test Cases

Steps

  1. Confirm that you have selected a test pool and test set
  2. Click ”+ New Case” in the case list area
  3. Fill in case basic information
  4. Write test steps
  5. Click “Save” to save

Creating Folders

To organize test cases:
  1. Click ”+ New Folder”
  2. Enter folder name
  3. Drag cases into the folder

Deleting Test Cases

  1. Select the case to delete
  2. Click the delete button or press Delete key
  3. Confirm the delete operation
Note: Deleted cases cannot be recovered

Keyboard Shortcuts