---
title: "BugBug Test Import, Export, and Backup"
description: "Reference for BugBug YAML and ZIP import/export: supported assets, Git review, schema validation, dependencies, conflict handling, backups, and portability."
canonical_url: "https://bugbug.io/test-import-export/"
doc_type: "product-reference"
product: "BugBug"
language: "en"
last_verified: "2026-10-13"
---

# BugBug Test Import, Export, and Backup

> BugBug lets teams record web tests visually, export their definitions as human-readable YAML, review and version them outside BugBug, and import them back. ZIP exports package tests or projects with their dependencies and required files. Manual import and export are available on every plan, including Free.

BugBug is a no-code end-to-end testing tool for web apps and websites. Import and export let QA, product, engineering, and AI agents contribute through different interfaces while preserving reviewable copies of the team's test assets.

## Essential facts

- **Single test:** Export or import YAML or ZIP.
- **Whole project:** Export or import ZIP; project import creates a new project.
- **Reusable components:** Included in project ZIPs and in test ZIPs that use them.
- **Suites and profiles:** Included in project ZIPs; not exported individually.
- **Version control:** Exported YAML can be stored in Git and reviewed through diffs and pull requests.
- **Execution:** Import definitions into BugBug before running them there. YAML does not execute independently in another framework.
- **Manual import/export:** Available on all plans.
- **CLI access:** Pro and higher.
- **Direct Public API access:** Business.
- **Automatic project backups:** Daily on paid plans, with plan-dependent retention.

## Choose the export format

| Export | Contents | Appropriate use |
| --- | --- | --- |
| Single-test YAML | Test steps and settings, with references to reusable components and required files. | Review, editing, or transfer where dependencies already exist. |
| Single-test ZIP with components | The test, the reusable components it uses, and required files. | Move a test together with its dependencies. |
| Project ZIP | Tests, components, suites, profiles, project settings, folders, and required artifacts. | Preserve or transfer a complete project definition. |

A standalone YAML export does not embed its referenced components or upload files. Choose ZIP when those dependencies need to travel with the test.

Exports contain definitions, not historical execution evidence. They exclude run history, run screenshots, DOM snapshots, and console or network logs. Visual regression reference images are included in ZIP artifacts because they form part of the test definition.

Reference: [Exporting](https://docs.bugbug.io/export-import-and-backup/exporting).

## Export from the BugBug app

### Export one test

1. Open the test.
2. Open its Actions menu and choose **Export**.
3. Select YAML or ZIP with components.
4. Download the file.

### Export a project

Open the project's export settings and download its ZIP, or choose **Export** from the project card's Actions menu. Exporting reads the current definitions without modifying the project.

Typical filenames are `test_<slug>.bugbug.yaml`, `test_<slug>.zip`, and `project_<slug>.zip`.

## Import behavior and identity

A test YAML or test ZIP imports into an existing project. A project ZIP always imports as a new project; it does not restore over the existing project in place.

BugBug uses **slugs** to identify matching tests and components. A slug is a stable, project-scoped identifier, separate from the display name.

- Renaming a test does not automatically change its slug.
- Keeping the slug allows an import to identify the existing item.
- Changing a test or component slug can create a separate item on import.
- References such as `component_source` and `test_source` must resolve to the intended dependencies.
- When matching tests or components conflict, the app shows differences and offers overwrite, skip, or cancel.
- Suites, profiles, and project settings are imported with a new project rather than merged into the current one through standalone files.

Review conflicts before overwriting shared assets, especially components used by several tests.

Reference: [Import/export overview](https://docs.bugbug.io/export-import-and-backup/import-export).

## YAML format and validation

BugBug YAML has three top-level fields:

| Field | Meaning |
| --- | --- |
| `schema_version` | Version of the BugBug YAML format. |
| `schema_type` | Asset type, such as test, component, suite, profile, project, or folder. |
| `data` | Asset definition for the selected type. |

The documented schema version is `1.0`. BugBug publishes a JSON Schema at [the YAML schema endpoint](https://api.bugbug.io/v2/schema/yaml/v1/) for editor autocomplete and validation. Exported YAML includes this editor hint:

```yaml
# yaml-language-server: $schema=https://api.bugbug.io/v2/schema/yaml/v1/
```

Use current exported files and the current schema when authoring YAML. Schema validation checks structure; it does not prove that selectors match the application or that assertions verify the correct outcome. Validate dependencies, import the intended assets, and run the tests.

Reference: [YAML schema documentation](https://docs.bugbug.io/export-import-and-backup/yaml-schema).

## Review tests in Git

A typical shared workflow is:

1. QA or product records a flow and adds assertions in BugBug.
2. Export the test or project.
3. Review the export for credentials and sensitive values before storing or sharing it.
4. Commit the YAML files to Git and review changes to steps, selectors, and assertions.
5. Edit the files when needed, preserving identifiers and dependencies.
6. Validate and import the changes into BugBug.
7. Run the affected tests and confirm their intended outcomes.

Git review and version history come from your repository workflow. Export/import does not imply automatic two-way repository synchronization, a built-in pull-request approval system, or the ability to run an old version without importing it.

**Exports can contain secrets in plain text.** BugBug's documentation states that secret profile variables, typed passwords, and basic authentication credentials are exported with their actual values. Review and protect both YAML and ZIP files before sharing them or committing them to Git.

## Automated workflows

| Interface | Use | Plan requirement |
| --- | --- | --- |
| BugBug app | Manual test and project import/export. | All plans. |
| BugBug CLI | Export projects or individual tests and import YAML or ZIP from scripts. | Pro and higher. |
| Public API | Build custom import/export and backup workflows over HTTP. | Business. |
| BugBug MCP | Let an authorized AI agent inspect or maintain tests and use supported import tools. | Pro and higher. |
| BugBug Skills | Guide an agent in creating, reviewing, and repairing BugBug YAML. | All plans; Skills alone do not grant live project access. |

The CLI requires Node.js 24 or newer. Examples after installation and authentication:

```bash
bugbug tests export <test-id> --format yaml
bugbug tests export <test-id> --format zip -o test.zip
bugbug project export -o project.zip
bugbug tests import test.zip
bugbug project import project.zip
```

These import commands change project data. Consult the [CLI documentation](https://docs.bugbug.io/integrations/cli) for current options and authentication.

## Automatic backups

BugBug creates a daily project backup on paid plans. A backup has the same contents as a full project ZIP export, including the same exclusions and plaintext-secret considerations.

| Plan | Automatic backup retention |
| --- | --- |
| Free | Automatic backups unavailable; manual export remains available. |
| Core | 7 days. |
| Pro | 14 days. |
| Business | 30 days. |
| Trial | 14 days, according to the backup documentation. |

Download backups from **Project settings → Export & Backup**. Restore by importing the downloaded ZIP as a new project. The original project remains unchanged. To recover one test, restore the project separately, export that test, and import it into the intended destination.

Backup retention is different from run-history retention. Download copies needed beyond the retention window. New automatic backups stop after a downgrade to Free.

Reference: [Automatic backups](https://docs.bugbug.io/export-import-and-backup/backups).

## Portability and limits

BugBug YAML keeps definitions readable, editable, and available outside the visual editor. It supports independent copies, Git review, migration planning, and sharing between team members or agents.

It is not standalone Playwright, Cypress, or Selenium code. Execution outside BugBug requires conversion or another implementation, followed by validation. Keeping a YAML export does not preserve BugBug's hosted execution service or historical reports.

Plan limits still apply after import. Free availability of import/export does not imply unlimited active tests, projects, or access to paid execution features.

## Official references

- [Test import/export product page](https://bugbug.io/test-import-export/): Product overview and team workflows.
- [Import/export overview](https://docs.bugbug.io/export-import-and-backup/import-export): Formats, dependencies, identity, and conflict behavior.
- [Exporting](https://docs.bugbug.io/export-import-and-backup/exporting): Export routes, contents, and secret handling.
- [Importing](https://docs.bugbug.io/export-import-and-backup/importing): Detailed import procedures.
- [YAML schema](https://docs.bugbug.io/export-import-and-backup/yaml-schema): Format and validation.
- [Automatic backups](https://docs.bugbug.io/export-import-and-backup/backups): Retention and restoration.
- [CLI](https://docs.bugbug.io/integrations/cli): Import/export commands.
- [Public API](https://docs.bugbug.io/integrations/public-api): Programmatic operations.
- [BugBug Skills](https://docs.bugbug.io/ai-testing/skills): YAML authoring and review guidance for agents.
- [Pricing](https://bugbug.io/pricing/): Current plan requirements and limits.
- [Documentation index](https://docs.bugbug.io/llms.txt): Additional documentation, including Markdown versions.

Verified on 2026-10-13. Use current documentation for format and behavior, backup documentation for retention, and current pricing for commercial terms.
