← ClaudeAtlas

testdriverdashcamlisted

Record test execution with video and logs
testdriverai/testdriverai · ★ 242 · Testing & QA · score 71
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from dashcam.mdx. DO NOT EDIT. --> ## Overview Dashcam provides automatic video recording and log aggregation for your tests. It captures screen recordings, application logs, and test execution details that can be reviewed later. ## Basic Usage ### With Presets Most presets automatically include Dashcam: ```javascript import { test } from 'vitest'; import { chrome } from 'testdriverai/presets'; test('my test', async (context) => { const { testdriver, dashcam } = await chrome(context, { url: 'https://example.com' }); // Test executes with recording automatically await testdriver.find('login button').then(el => el.click()); // Dashcam URL available after test console.log('Replay:', dashcam.url); }); ``` ### Manual Setup For more control, create a Dashcam instance directly: ```javascript import TestDriver from 'testdriverai'; import Dashcam from 'testdriverai/lib/core/Dashcam.js'; const client = await TestDriver.create({ os: 'linux' }); const dashcam = new Dashcam(client, { apiKey: process.env.DASHCAM_API_KEY }); await dashcam.auth(); await dashcam.start(); // Run your tests const url = await dashcam.stop(); console.log('Replay URL:', url); ``` ## Constructor Create a new Dashcam instance: ```javascript new Dashcam(client, options) ``` ### Parameters <ParamField path="client" type="TestDriver" required> TestDriver client instance </ParamField> <ParamField path="options" type="object"> Configuration options <Expand