OpenParable
Skip to content
← Back to skills

50 01 Video Based Nhitl Testing

Testing & Quality
50-01-video-based-nhitl-testing

50 01 Video Based Nhitl Testing is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Visual verification loop combining Playwright video recording with video-explorer frame extraction for autonomous behavior debugging.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/testing/50-01-video-based-nhitl-testing/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/50-01-video-based-nhitl-testing, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

50.01 Video-Based NHITL Testing

Problem

E2E tests check state labels (e.g., action === 'Engage') but not actual behaviors (e.g., projectiles fired, damage dealt). A test can "pass" while the feature is completely broken.

Solution: Visual Verification Loop

Combine Playwright video recording with video-explorer frame extraction to enable you to visually debug test failures without human involvement.

Flow

1. Run E2E test with video recording enabled
2. Test completes (pass or fail)
3. Extract frames from test-results/*.webm using video-explorer
4. You analyze frames visually:
   - "Frame 00:03: Label shows 'Engage'"
   - "Frame 00:03-00:08: No projectiles visible"
   - "Diagnosis: Engage state set but weapon not firing"
5. Fix the actual issue (not just make test pass)
6. Re-run and verify visually

Configuration

// playwright.config.ts
use: {
  video: 'on',  // Record ALL tests, not just failures
}

Video Analysis Commands

# Overview of test video
videx overview test-results/<test-name>/video.webm 1 480

# Zoom into specific moment
videx range test-results/<test-name>/video.webm 0:03-0:08 --fps=5

# Single frame detail
videx zoom test-results/<test-name>/video.webm 0:05

What to Look For

Adapt this table to your project's visual indicators:

BehaviorVisual Indicator
Action triggeredUI element changes state
Animation playingSprite/element visible in frames
State transitionLabels/overlays change
Error stateError UI appears

Benefits

  1. True behavior verification - see what actually happens, not just state changes
  2. NHITL debugging - You watch the video, find problems autonomously
  3. Evidence-based fixes - know exactly what's broken before coding
  4. Regression detection - visual diff between expected and actual behavior