# BugBug Testing Inbox: User Registration and Login Testing

Written by Dominik Szahidewicz
Published: 2024-08-11
Updated: 2025-02-12

## **TL;DR**

*   [**BugBug Testing Inbox**](https://bugbug-inbox.com/) streamlines testing by generating unique email addresses for each test run, automatically handling email verification, and allowing the creation of custom aliases using variables like timestamps. 
*   It integrates directly within BugBug, eliminating the need for third-party email providers, and features an automatically refreshing inbox with short-term email storage to ensure relevance. 
*   Unique aliases prevent test interruptions, and the ability to combine variables offers flexibility in testing scenarios.

**Check also:**

*   [**New Integration: Slack x Bugbug**](https://bugbug.io/blog/product/bugbug-slack-integration/)
*   [**UI Automation Testing Tools**](https://bugbug.io/blog/software-testing/ui-automation-testing-tools/)
*   [**Katalon Recorder vs BugBug**](https://bugbug.io/blog/test-automation-tools/katalon-recorder/)

## **BugBug Testing Inbox: Simplified Email Testing**

![Screenshot 2024-08-12 at 12.32.50.png](https://bugbug-homepage.s3.eu-central-1.amazonaws.com/Screenshot_2024_08_12_at_12_32_50_4334d523a0.png)

[**The BugBug Testing Inbox**](https://bugbug-inbox.com/) simplifies testing user registration and login by addressing key issues like generating unique email addresses, receiving verification emails, and using previously generated emails for login.

## **Why Use the BugBug Testing Inbox**

1.  **Simplifies Testing:**
    *   The BugBug Testing Inbox streamlines the process of testing user registration and login.
2.  **Unique Email Generation:**
    *   Automatically generates unique email addresses for each test run, avoiding duplication issues.
3.  **Easy Email Verification:**
    *   Enables automatic opening and confirmation of verification emails as part of the test steps, simplifying the process.
4.  **Custom Email Aliases:**
    *   Allows the creation of custom email aliases using variables like timestamps, providing flexibility in testing scenarios.
5.  **No Third-Party Providers Needed:**
    *   Integrates directly within BugBug, eliminating the need for external email providers during tests.
6.  **Automatic Inbox Refresh:**
    *   The inbox refreshes automatically, ensuring that the latest emails are always visible without manual intervention.
7.  **Short-Term Email Storage:**
    *   Emails are stored for 10 minutes, reducing clutter and ensuring only relevant emails are used during tests.
8.  **Unique Aliases to Avoid Conflicts:**
    *   Ensures unique email aliases to prevent other users from interrupting your tests.
9.  **Combines with Variables:**
    *   Enhances email alias flexibility by allowing the combination of variables, creating dynamic and test-specific email addresses.

## **BugBug Testing Inbox Tutorial**

```embedHtml
<iframe src="https://www.loom.com/embed/2ab231e5213341b3bbbae232846ef8ce?sid=ddf1702e-da52-4870-87c8-d2529923aea4" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe>
```

## **Guide for Entering a Random Email Address in BugBug**

1.  **Open the Inbox:**
    *   In the BugBug extension overlay menu, select the "Inbox" option without stopping the recording.
2.  **Select Auto-generated Email:**
    *   Choose the "Auto-generated random email unique for this test" option.
3.  **Understand the Email Format:**
    *   The email is created using the variable {{testRunId}} and the domain @bugbug-inbox.com.
    *   This variable is unique per test run, ensuring the email address stays constant during a single run.
    *   On the BugBug web application, it appears as {{testRunId}}@bugbug-inbox.com.
4.  **Copy the Email:**
    *   Use the copy icon in the extension to copy the email address.
5.  **Register Using the Email:**
    *   Use the copied email for registration.
    *   Return to the extension menu and continue if no verification email is needed.
    *   If verification is required, follow the verification process.
6.  **Avoid Duplicate Emails:**
    *   The email address is generated uniquely per test run, preventing duplicate registration issues.

## **Guide for Activating the Registration Email Using BugBug Testing Inbox**

1.  **Prepare for Email Verification:**
    *   Most registration processes require confirming the email address via a verification email.
    *   With BugBug inbox, you can open and automatically confirm the email as a test step.
2.  **Copy and Submit the Email:**
    *   Copy the email address using the icon when prompted for an email in the test steps.
    *   Submit the form and click the "open inbox" button to open the inbox in a new tab without stopping the recording.
3.  **Open the Inbox:**
    *   The new tab will show an inbox created specifically for the email address used in previous steps.
    *   Wait for the confirmation email; the inbox refreshes automatically.
4.  **Email Storage Duration:**
    *   The BugBug inbox only saves emails for 10 minutes, after which they are removed.
5.  **Open the Registration Email:**
    *   Click on the "subject" of the registration email to open it.
    *   Ensure you click the subject line to open the most recent email, e.g., //SPAN\[normalize-space(text())="Confirm your e-mail address"\].
6.  **Confirm the Email:**
    *   Click the authorization link in the email and continue recording.
7.  **Return to Test Page:**
    *   Once the email is confirmed, return to the test page tab and continue.

## **Guide for Using Specific Email and Virtual Inbox** 

1.  **Select Specific Test Email:**
    *   In the BugBug Inbox menu, select the "Specific test email" option.
2.  **Create an Email Alias:**
    *   Type your desired alias for the email.
    *   Remember, this alias will be for the @bugbug-inbox.com domain only. Do not use other domains.
3.  **Open Inbox with Custom Alias:**
    *   The option allows you to open the Inbox with the specific email alias you set.
4.  **Ensure Unique Alias:**
    *   Make sure your email alias is unique to avoid interruptions from other users.
    *   BugBug does not limit inboxes per project or test, so a unique alias ensures your tests are not disrupted.

## **Guide for Using Variables with BugBug Testing Inbox**

1.  **Default Variable:**
    *   By default, the inbox uses only the testRunId variable.
2.  **Enhance with Additional Variables:**
    *   You can enhance your email alias by changing it in your recorded steps.
    *   Mix or change variables by adding, for example, a timestamp variable to the email alias.
3.  **Add Variables as Alias:**
    *   Add any variable as an alias to customize your email address.
4.  **Open Virtual Inbox:**
    *   Combine the URL [https://bugbug-inbox.com/](https://bugbug-inbox.com/) with any variable to open a virtual inbox with your custom alias.

  
  
**For detailed steps, visit the** [**BugBug Documentation**](https://docs.bugbug.io/editing-tests/variables#user-registration-and-login-using-the-bugbug-inbox-feature)**.**
