Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

testdriver:dashcam

БесплатноБез исполняемых скриптовНе проверен

Record test execution with video and logs

testdriveraiот testdriverai★ 342 звезды на GitHub

Об этом скилле

Overview

Dashcam makes automatic video recordings. It also collects the logs for your tests. It captures screen recordings, application logs, and test details. You can review them later.

Basic Usage

With Presets

Most presets include Dashcam automatically:

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, make a Dashcam instance directly:

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:

new Dashcam(client, options)

Parameters

TestDriver client instance Configuration options Dashcam API key for authentication. Set via `TD_API_KEY` environment variable.
<ParamField path="autoStart" type="boolean" default={false}>
  Automatically start recording after authentication
</ParamField>

<ParamField path="logs" type="array" default={[]}>
  Log configurations to add automatically
</ParamField>

Methods

auth()

Authenticate with Dashcam service:

await dashcam.auth(apiKey)
Override the API key set in constructor

Returns: Promise<void>

Example:

await dashcam.auth('your-api-key');

start()

Start recording:

await dashcam.start()

Returns: Promise<void>

Example:

await dashcam.start();
console.log('Recording started');

stop()

Stop recording and retrieve replay URL:

await dashcam.stop()

Returns: Promise<string|null> - Replay URL if available

Example:

const url = await dashcam.stop();
if (url) {
  console.log('Watch replay:', url);
} else {
  console.log('No replay URL available');
}

addFileLog()

Track a log file in the recording:

await dashcam.addFileLog(path, name)
Path to the log file Display name for the log in Dashcam

Returns: Promise<void>

Example:

// Linux/Mac
await dashcam.addFileLog('/tmp/app.log', 'Application Log');

// Windows
await dashcam.addFileLog('C:\\logs\\app.log', 'Application Log');

addApplicationLog()

Track application-specific logs:

await dashcam.addApplicationLog(application, name)
Application name to track Display name for the log

Returns: Promise<void>

Example:

await dashcam.addApplicationLog('Google Chrome', 'Browser Logs');

addWebLog()

Track web request logs by URL pattern:

await dashcam.addWebLog(pattern, name)
URL pattern to match (e.g., `"*example.com*"`) Display name for the log

Returns: Promise<void>

Example:

await dashcam.addWebLog('*example.com*', 'Web Logs');

addLog()

Generic method to add any type of log:

await dashcam.addLog(config)
Log configuration Display name for the log
<ParamField path="type" type="string" required>
  Log type: `'file'`, `'application'`, or `'web'`
</ParamField>

<ParamField path="path" type="string">
  File path (required for type='file')
</ParamField>

<ParamField path="application" type="string">
  Application name (required for type='application')
</ParamField>

<ParamField path="pattern" type="string">
  URL pattern to match (required for type='web', e.g., `"*example.com*"`)
</ParamField>

<

Полный SKILL.md на GitHub

Установить testdriver:dashcam в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл testdriver:dashcam?

Record test execution with video and logs

Как установить скилл testdriver:dashcam?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл testdriver:dashcam запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить testdriver:dashcam с