Installation
This guide covers installing the TrueAssert browser plugin and setting up API keys for authentication.
Browser Plugin Installation
The TrueAssert browser plugin is a Chrome extension that allows you to record user interactions and create automated tests.
Method 1: Download from TrueAssert (Recommended)
Navigate to Browser Plugin Page:
Log into your TrueAssert account
Go to Browser Plugin page or click "Browser Plugin" in the navigation menu
Download the Plugin:
Click the download button to get
browser_plugin.zipThe ZIP file contains the extension files
Install in Chrome:
Open Chrome and navigate to
chrome://extensions/Enable "Developer mode" (toggle in the top right corner)
Click "Load unpacked"
Extract the ZIP file and select the extracted
browser_pluginfolderThe TrueAssert extension should now appear in your extensions list
Method 2: Development Installation
If you're working with the TrueAssert source code:
Navigate to the
browser_plugindirectory in the repositoryOpen Chrome and go to
chrome://extensions/Enable "Developer mode"
Click "Load unpacked" and select the
browser_plugindirectory
Creating an API Key
The browser plugin requires an API key to authenticate with your TrueAssert account.
Step 1: Navigate to Agents Page
Log into your TrueAssert account
Go to Agents page or click "Agents" in the navigation menu
This page shows all your API keys and connected agents
Step 2: Create New API Key
Click the "Create API Key" button
A modal dialog will appear with:
Name field: Enter a descriptive name (e.g., "Browser Plugin", "Development")
Organization dropdown: Select which organization this API key belongs to
Click "Create"
Step 3: Copy Your API Key
⚠️ Important: The API key is shown only once after creation. Copy it immediately!
After creating the API key, a modal shows your new key
The key format is:
tp_[random_string](e.g.,tp_abc123xyz...)Click "Copy" to copy the key to your clipboard
Store it securely - you'll need it to connect the browser plugin
API Key Details
Format:
tp_prefix followed by a secure random stringScope: Organization-level (belongs to a specific organization)
Usage: Can be shared across multiple agents/browser plugins
Security: Keys are hashed in the database (SHA-256)
Revocation: You can revoke API keys from the Agents page
Connecting the Browser Plugin
Step 1: Open the Plugin
Click the TrueAssert extension icon in your Chrome toolbar
The plugin popup will open
Step 2: Enter API Key
You'll see the "Connect to your account" screen
Paste your API key into the "API Key" input field
Click "Connect" or press Enter
Step 3: Verify Connection
If successful, the plugin will transition to the "Ready to Record" state
You'll see a large "Record" button
The plugin is now authenticated and ready to use
Troubleshooting Connection
"Invalid API Key" Error:
Verify you copied the complete API key (including the
tp_prefix)Check that the API key hasn't been revoked
Ensure you're using the correct API key for your organization
"Connection Failed" Error:
Check your internet connection
Verify the server URL is correct (check plugin settings)
For local development, ensure the server is running on the correct port
Plugin Settings
Server Host Configuration
If you're using a custom server or local development:
Click the Settings icon (gear) in the plugin
Enter your server host URL:
Production: https://trueassert.com
Local development: http://localhost:9580
Click "Save Settings"
The plugin stores the server host in chrome.storage.local for persistence.
What's Next?
After installing the plugin and connecting with an API key:
Create Your First Test - Record your first automated test
Browser Plugin Recording Guide - Learn advanced recording features
Session Management - Set up authentication flows
Managing API Keys
Viewing API Keys
Go to Agents page to see all your API keys
Each key shows:
Name
Organization
Creation date
Number of connected agents
Active status
Revoking API Keys
Go to Agents page
Find the API key you want to revoke
Click "Revoke"
Confirm the action
The key will be marked as inactive and can no longer be used
Note: Revoking an API key will disconnect all agents and browser plugins using that key.
Security Best Practices
Don't share API keys: Keep them private and secure
Use separate keys: Create different keys for different purposes (development, production, browser plugin)
Rotate keys regularly: Revoke old keys and create new ones periodically
Revoke unused keys: Remove keys that are no longer needed
Related Topics
Account Setup - Understanding your account structure
Core Concepts - TrueAssert fundamentals
Your First Test - Create your first test
Browser Plugin Recording - Using the plugin
← Back to Getting Started | Next: Core Concepts → | Create First Test →
Last updated