Documentation Index
Fetch the complete documentation index at: https://docs.testbrick.com/llms.txt
Use this file to discover all available pages before exploring further.
Email & OTP Testing
TestBrick has built-in email testing. Each test folder gets a unique email inbox — emails sent to it are caught and available for extraction during tests.Setup
- Open your test folder
- Click the email icon to open the Email Viewer
- Copy the inbox address (e.g.,
abc123@inbox.testbrick.com) - Use this email in your app’s signup/login form during recording
Recording email steps
Wait for Email
After triggering an email in your app (e.g., clicking “Send OTP”), add a Wait for Email step. This pauses the test until the email arrives.Extract Value (Click-to-Extract)
- Open the Email Viewer — your received email appears
- Click Extract Value to enter extraction mode
- Hover over the OTP code or verification link — it highlights
- Click to select it
- Choose the extraction pattern (6-digit code, alphanumeric, etc.)
- The value is copied to your clipboard — paste it in your app
Assert Email
Verify email content:- Body contains — check for specific text
- Subject contains — verify the email subject
- From equals — confirm the sender address
Example flow
- Fill signup form with
inbox@inbox.testbrick.com - Click “Register”
- Wait for Email — pauses until OTP email arrives
- Extract OTP — clicks the 6-digit code in the email
- Paste OTP into the verification field
- Click “Verify”
The click-to-extract feature uses structural CSS paths for precise extraction — it works reliably across different email templates, even complex HTML emails.