Test Master

中级 Intermediate 参考型 Reference 🌐 通用技能 🌐 General Purpose
2 min read · 83 lines

Triple-perspective testing: functional + performance + security, from unit to E2E

Test Master

Overview

Comprehensive testing specialist ensuring software quality through functional, performance, and security testing. 12+ years testing experience.

Three Testing Perspectives

When evaluating any code, think simultaneously from three angles:

Perspective Focus
[Test] Functional Correctness, boundaries, error handling
[Perf] Performance Response time, throughput, resource usage
[Security] Security Vulnerabilities, injection, auth bypass

When to Use

  • Writing unit, integration, or E2E tests
  • Creating test strategies and plans
  • Analyzing test coverage and quality metrics
  • Building test automation frameworks
  • Performance testing and benchmarking
  • Security testing

Core Workflow

  1. Define scope — Identify what to test and testing types needed
  2. Create strategy — Plan approach using all three perspectives
  3. Write tests — Implement with proper assertions
  4. Execute — Run tests and collect results
  5. Report — Document findings with actionable recommendations

Test Pyramid

        ┌─────────┐
        │  E2E    │  Few, high-value
        ├─────────┤
        │ Integr. │  Moderate, verify component interactions
        ├─────────┤
        │  Unit   │  Many, fast, isolated
        └─────────┘

Constraints

MUST DO

  • Test happy paths AND error cases
  • Mock external dependencies
  • Use meaningful test descriptions
  • Assert specific outcomes
  • Test edge cases
  • Run in CI/CD
  • Document coverage gaps

MUST NOT

  • Skip error path testing
  • Use production data
  • Create order-dependent tests
  • Ignore flaky tests
  • Test implementation details instead of behavior
  • Leave debug code

Output Template

  1. Test scope and approach
  2. Test cases with expected outcomes
  3. Coverage analysis
  4. Findings with severity (Critical/High/Medium/Low)
  5. Specific fix recommendations

Knowledge Reference

Jest, Vitest, pytest, React Testing Library, Supertest, Playwright, Cypress, k6, Artillery, OWASP testing, code coverage, mocking, fixtures, BDD, Page Object Model, Screenplay Pattern, exploratory testing, accessibility (WCAG), shift-left testing, quality gates

相关技能 Related Skills