Skip to main content

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:

Manual Setup

For more control, create a Dashcam instance directly:

Constructor

Create a new Dashcam instance:

Parameters

TestDriver
required
TestDriver client instance
object
Configuration options

Methods

auth()

Authenticate with Dashcam service:
string
Override the API key set in constructor
Returns: Promise<void> Example:

start()

Start recording:
Returns: Promise<void> Example:

stop()

Stop recording and retrieve replay URL:
Returns: Promise<string|null> - Replay URL if available Example:

addFileLog()

Track a log file in the recording:
string
required
Path to the log file
string
required
Display name for the log in Dashcam
Returns: Promise<void> Example:

addApplicationLog()

Track application-specific logs:
string
required
Application name to track
string
required
Display name for the log
Returns: Promise<void> Example:

addWebLog()

Track web request logs by URL pattern:
string
required
URL pattern to match (e.g., "*example.com*")
string
required
Display name for the log
Returns: Promise<void> Example:

addLog()

Generic method to add any type of log:
object
required
Log configuration
Returns: Promise<void> Example:

isRecording()

Check if currently recording:
Returns: Promise<boolean> - True if recording is active Example:

Properties

recording

Current recording state:

apiKey

Configured API key:

client

Associated TestDriver client:

Complete Examples

Basic Recording

With Log Tracking

Auto-start Configuration

Using with Presets

Disabling Dashcam in Presets

Platform Differences

Windows

On Windows, Dashcam uses PowerShell commands and installs via npm:

Linux/Mac

On Linux/Mac, Dashcam uses shell commands: