FeaturesTest Cases

Test Cases

Test cases are the foundation of your testing strategy. Each test case describes a sequence of actions to perform and the expected results.

What are Test Cases?

A test case simulates how a user interacts with your application. For example:

  1. Navigate to the login page
  2. Enter username and password
  3. Click the “Sign In” button
  4. Verify the dashboard appears

Creating Test Cases

You have three ways to create test cases in BugBrain:

1. Manual Creation

Build tests step-by-step using our visual editor. Perfect for:

  • Specific test scenarios
  • Custom workflows
  • Edge cases

Learn how →

2. AI Generation

Let AI create comprehensive test suites from descriptions. Best for:

  • Rapid test coverage
  • Complex user journeys
  • Multiple variations

Learn how →

3. Discovery

Automatically generate tests by crawling your application. Ideal for:

  • New applications
  • Understanding existing flows
  • Regression testing

Learn how →

Test Case Structure

Each test case contains:

ComponentDescription
TitleDescriptive name (e.g., “User can login with valid credentials”)
DescriptionWhat the test verifies
StepsSequential actions to perform
Expected ResultsWhat should happen at each step
PriorityLow, Medium, High, or Critical
TagsCategories for organization (e.g., “login”, “auth”, “smoke”)

Test Steps

Each step in a test case has:

  • Action - What to do (click, type, navigate, assert, wait)
  • Target - Where to do it (element selector or URL)
  • Value - Input data or expected text
  • Description - Human-readable explanation

Common Actions

ActionDescriptionExample
NavigateGo to a URLNavigate to /login
ClickClick an elementClick the submit button
TypeEnter textType email into username field
AssertVerify something existsAssert dashboard heading is visible
WaitPause executionWait 2 seconds for page load

Pro Tip: Use descriptive selectors like “button with text ‘Sign In’” instead of technical CSS selectors. This makes tests more readable and maintainable.

Organizing Test Cases

Using Priority

Set priority to indicate importance:

  • Critical - Core functionality (login, checkout, data integrity)
  • High - Important features used frequently
  • Medium - Standard features
  • Low - Nice-to-have or rarely used features

Using Tags

Tags help you organize and filter tests:

Examples:
- smoke, regression, integration
- login, auth, payment, search
- desktop, mobile, tablet
- production, staging
💡

Best Practice: Use consistent tag naming across your organization. Create a tagging standard that everyone follows.

Test Case Status

Test cases can have different statuses:

StatusMeaning
DraftWork in progress, not ready to run
ActiveReady to run and included in test plans
ArchivedOld or deprecated, not run anymore

AI Quality Scoring

AI-generated tests include quality scores:

  • 0-100 Score - Overall test quality rating
  • Confidence Breakdown - Scores for clarity, completeness, and testability
  • Suggestions - How to improve the test

Next Steps