testdriver:client

Initialize the TestDriver client with an API key and connect to a sandbox.

238|34|Updated Aug 25, 2024
One-click install
npx skills add https://github.com/testdriverai/testdriverai --skill testdriver-client
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testdriver:client
Source: https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver%3Aclient
Command: npx skills add https://github.com/testdriverai/testdriverai --skill testdriver-client

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines starting up the TestDriver SDK by handling API key loading, default option setup, and initial client instantiation for reliable test orchestration.

Core Features & Use Cases

  • Client initialization and configuration: Instantiate the TestDriver client with or without explicit API keys and options, with sensible defaults.
  • Environment-based authentication: Automatically reads TD_API_KEY from the environment or .env to simplify setup.
  • Sandbox lifecycle support: Exposes auth, connect, and disconnect workflows to bootstrap and manage sandboxes for tests.

Quick Start

Initialize the TestDriver client with an API key and then authenticate and connect to a sandbox to begin testing.

Frequently Asked Questions about testdriver:client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize the TestDriver SDK client with an API key?

To initialize the TestDriver SDK client, instantiate it with an API key and optional settings. The client automatically reads the TD_API_KEY from the environment or a .env file, applying sensible defaults to streamline setup.

How do I connect to a sandbox and get an active session for testing?

Connect to a sandbox to obtain an active session by authenticating with your loaded API key. Once the TestDriver client is initialized, use the connect workflow to bootstrap the sandbox environment required before running tests.

Can I configure logging and inspect session details in the TestDriver client?

Yes, you can configure logging and inspect instance and session details. During initialization and after connecting to a sandbox, the TestDriver client exposes settings to manage logging levels and review active session information.

How do I disconnect from a TestDriver sandbox gracefully after tests?

Disconnect gracefully from a TestDriver sandbox after tests by utilizing the client's disconnect workflow. This ensures the active session is properly closed and the sandbox environment is cleanly managed at the end of execution.

Do I need an explicit API key to start the TestDriver client?

No, you do not need an explicit API key to start the TestDriver client. It supports environment-based authentication, automatically reading TD_API_KEY from your system environment or a local .env file to simplify instantiation.