---
title: 云中的赛普拉斯自动化
description: 用TestingBot大规模地运行自动化的Cypress测试。在大型浏览器网格上用Cypress运行E2E测试。
source_url:
  html: https://zh.testingbot.com/features/automation/cypress
  md: https://zh.testingbot.com/features/automation/cypress.md
---

柏树云 
# 在真正的浏览器云上运行 Cypress

将您现有的 Cypress 测试套件连接到 TestingBot 的测试网格，即可在 Windows、macOS 和 Linux 系统上的真实 Chrome、Firefox 和 Edge 浏览器上运行测试。支持大规模并行处理、视频和日志生成，并符合 GDPR 标准，实现欧盟数据驻留。

Comparing frameworks? See [Cypress vs Selenium](https://zh.testingbot.com/cypress-vs-selenium) and [Cypress vs Playwright](https://zh.testingbot.com/cypress-vs-playwright).

[免费开始](https://zh.testingbot.com/users/sign_up) [申请演示](https://testingbot.com/demo)

- **浏览器和操作系统:** Chrome · Firefox · Edge
- **平行会议:** 100
- **正常运行时间服务级别协议:** 99.9%

被世界上一些最具创新性的公司所信任

 30秒回答 
## 为什么要在 TestingBot 上运行 Cypress？

真正的跨浏览器覆盖

Cypress 在我们的云端、Windows、macOS 和 Linux 系统上都能在真正的 Chrome、Firefox 和 Edge 浏览器上运行。配置相同，适用于您客户使用的所有浏览器。

大规模并行

最多可同时运行 100 个 Cypress 会话，每个会话都在独立的单机虚拟机中运行。将测试套件的运行时间从数小时缩短到数分钟。

即插即用的 CLI 交换

安装我们的开源`testingbot-cypress-cli` ，将其指向您的`cypress.config.js` ，然后运行。

 什么是柏树？ 
## 60 秒内用柏树

 ![Cypress](https://zh.testingbot.com/assets/support/cypress-409c9fd3f79115ed7676aa1df4f6a217dc4402b3366a61984924aec7b4fefa97.svg)

### Cypress

Open source · MIT · JavaScript / TypeScript

Cypress 是一个 JavaScript 端到端测试框架，它运行在浏览器中，与你的应用程序运行在同一个 JavaScript 运行时环境中。测试可以直接访问每个对象——DOM、网络请求、计时器以及框架自身的状态——而无需像基于 WebDriver 的工具那样使用跨进程桥接。

这赋予了 Cypress 标志性的快速反馈循环、自动等待、时间旅行调试以及内置的 spy/stub API。对于希望获得快速反馈循环和现代开发者体验的 JavaScript 优先团队来说，它是理想之选。

- JavaScript/TypeScript优先，在浏览器中运行
- 真正的 Chrome、Firefox 和 Edge
- 自动等待、时间旅行调试器、网络存根
- 内置的间谍、存根和时钟 API
- 通过 testingbot-cypress-cli 并行执行

 两行命令行界面 
## 使用一条命令在云端运行 Cypress

安装我们的开源 CLI，运行 testingbot-cypress init 生成配置，然后运行 testingbot-cypress run 在真实浏览器上并行分发。

install & init step 1

```bash
# Install the open-source CLI
$ npm install testingbot-cypress-cli

# Generate testingbot.json (one-off)
$ testingbot-cypress init

# Edit the generated testingbot.json:
# "cypress_project_dir": "./cypress",
# "browsers": ["chrome", "firefox", "edge"],
# "build_name": "ci-build-${BUILD_NUMBER}"
```

run on the cloud step 2

```bash
# Run your specs on real cloud browsers
$ testingbot-cypress run --parallel 10

# Pin a specific supported Cypress version
$ testingbot-cypress run \
    --cypress-version "14.2.0"

# → live results in your TestingBot dashboard
# → video and console logs via REST API
```

有关高级标志、并行选项和 CI 集成，请参阅完整的[Cypress on TestingBot 文档](https://testingbot.com/support/web-automate/cypress)。

 本地与云端 
## 本地 Cypress 与 TestingBot

Cypress 在笔记本电脑上速度很快，但当需要扩展规模、支持多个浏览器或真正的 WebKit 时，速度就会慢下来。以下是托管云的对比情况。

| 能力 | 测试机器人 | 本地柏树 |
| --- | --- | --- |
| 浏览器覆盖范围 | 真正的 Chrome、Firefox 和 Edge | 无论你本地安装了什么 |
| 操作系统 | 真正的 Windows、macOS 和 Linux | 您的单机开发机 |
| 并行扩展 | 最多可按需支持 100 个并发会话 | 受限于您的 CPU 和内存 |
| 视频和日志 | 包含高清视频和控制台日志 | 内置视频功能，但没有中央控制面板 |
| 测试私有环境和测试环境 | 内置安全隧道 | 仅限直接访问 |
| 欧盟数据驻留 | 是的，符合GDPR要求 | 无论你的笔记本电脑在哪个国家/地区 |
| 可靠性 | 99.9% 正常运行时间 SLA，全天候监控 | 合上盖子时崩溃。 |

 Cypress Cloud 替代方案 
## 在寻找 Cypress Cloud 替代方案？

Cypress Cloud（前身为 Cypress Dashboard）负责在您自备的机器上记录并编排运行。TestingBot 连机器一并提供：同样的并行运行、视频与日志，外加运行所需的浏览器和操作系统。

| 对比项 | 测试机器人 | Cypress Cloud |
| --- | --- | --- |
| 提供什么 | 浏览器、操作系统以及录制 | 录制、编排与分析 |
| 测试在哪里运行 | 运行在我们的一次性虚拟机上，每次运行后清除 | 运行在您自备并维护的 CI runner 上 |
| 如何计费 | 按您套餐中的并行会话数计费 | 按录制的测试结果数计费 |
| 跨浏览器覆盖 | Windows 与 macOS 上的 Chrome、Firefox、Edge 和 WebKit | 取决于您自己 runner 上已安装的浏览器 |

### 什么情况下 Cypress Cloud 更合适

如果您的 CI 容量已经足够，而真正需要的是在其之上叠加 Test Replay、不稳定用例检测以及 Cypress 专属分析，那么 Cypress Cloud 正是为此而生，我们并不打算复制这些能力。团队通常在机器与浏览器覆盖成为瓶颈、而非报表成为瓶颈时选择我们。

Cypress Cloud 相关信息来自 cypress.io/pricing，核对日期为 2026 年 8 月 20 日。

 ![视频、屏幕截图和日志开箱即用](https://zh.testingbot.com/assets/features/test-results-315382c39a67ad52167d2a4fd78570c99aea3e0ec386c17e82265851e93cb7b3.png)

 测试工件 
## 视频、屏幕截图和日志开箱即用

每个 Cypress 测试结果都包含屏幕截图、日志和视频。

轻松跟踪测试状态，通过 REST API 访问工件，并与您现有的工具集成以实现无缝的报告和分析。

- 每次测试均提供全高清视频
- 浏览器控制台输出和 Cypress 日志
- 按需截图
- 自定义屏幕分辨率、时区和语言环境
- 浏览器启动标志以及[更多功能](https://testingbot.com/support/web-automate/cypress/capabilities)

 能力 
## Cypress 在云端所需的一切

除了运行测试之外，TestingBot 还提供了您在配置中设置的所有 Cypress 功能，以及仅限云端使用的功能，例如地理位置和时区。

- ### [Capabilities](https://testingbot.com/support/web-automate/cypress/capabilities)

Browser, OS, version, screen resolution and every capability the cloud accepts.

- ### [Authentication](https://testingbot.com/support/web-automate/cypress/authentication)

Pass credentials, environment variables and login fixtures into your specs.

- ### [Specs & filters](https://testingbot.com/support/web-automate/cypress/specs)

Pick which specs run per build, group by tag or shard automatically.

- ### [TypeScript](https://testingbot.com/support/web-automate/cypress/typescript)

Run TypeScript-based Cypress specs out of the box, no extra setup.

- ### [Geolocation & timezone](https://testingbot.com/support/web-automate/cypress/geolocation)

Spoof GPS and timezone per session for App Store, store-front and back-end checks.

- ### [Reporting](https://testingbot.com/support/web-automate/cypress/reporting)

JUnit XML, mochawesome and integrations with Jenkins, GitHub and GitLab.

 大规模并行 
## 使用 Cypress 进行并行测试

使用 TestingBot 云端的 Cypress 并行测试，加快您的发布周期。在多个浏览器、版本和操作系统上并行运行 Cypress 测试。

More on how concurrency is sized and priced: [parallel testing](https://zh.testingbot.com/features/parallel-testing).

- 最多可同时进行 100 个 Cypress 会话
- 训练课几秒钟内即可开始，无需热身。
- 通过 testingbot-cypress-cli 实现智能规范分片

[免费开始](https://zh.testingbot.com/users/sign_up)

 ![使用 Cypress 进行并行测试](https://zh.testingbot.com/assets/features/selenium/parallel-0229d698e59a8a6b92fe50344a08634624f018331ecf8a849ef83cfb35e635a5.png)

Live exit nodes
10+ countries

美国

英国

德国

法国

西班牙

比利时

澳大利亚

中国

日本

 地理位置测试 
## 测试 Cypress 来自 10 多个国家/地区的流量

从世界各地的真实出口节点运行 Cypress 测试。验证来自美国、英国、德国、法国、西班牙、比利时、澳大利亚、中国、日本等地 **的地理定位** 、 **地理屏蔽** 和 **本地化功能** 。

 安全的基础设施 
## 真正的机器。一次性使用。零泄漏。

每个 Cypress 会话都在运行于真实操作系统上的全新、一次性虚拟机中运行。虚拟机在会话结束后立即销毁——没有任何资源会被重用，也不会造成客户间的数据泄露。

符合 GDPR 标准，支持欧盟数据驻留、SAML SSO 和审计日志，可供企业团队使用。

- 一次性虚拟机，每次运行后都会被清除
- 符合 GDPR 标准，可提供欧盟数据驻留服务
- SAML SSO、审计日志和 SCIM 配置

[访问 TestingBot 信任中心](https://trust.testingbot.com/)

1. 1

测试连接到 TestingBot 网格

只需几秒钟，即可为您创建一个全新的虚拟机，专供您使用。

2. 2

Cypress 驱动真正的浏览器

真正的 Chrome、Firefox 或 Edge 浏览器，绝非模拟，绝非共享。

3. 3

虚拟机在运行结束后立即销毁

Cookies、文件、浏览器状态，全部清除。所有数据都不会被重复使用。

 持续集成 
## 几分钟内即可将 Cypress 集成到您的 CI/CD 系统中

TestingBot 可与所有主流 CI/CD 工具集成。它会在每次提交时触发 Cypress 运行，并将视频和日志流式传输回您的构建仪表板。

 ![Jenkins](https://zh.testingbot.com/assets/integrations/jenkins-e586a1c4af833e4c8d38d7b392a4e84bd193f30cae9cf8c9f198a58ec943a1ff.webp)

### [Jenkins](https://testingbot.com/support/integrations/ci-cd/jenkins)

 ![Bamboo](https://zh.testingbot.com/assets/integrations/bamboo-c8fe09a3cb0b74d6055e3aa6607d77720bfe29ff487b8e3cf825138adf634346.svg)

### [Bamboo](https://testingbot.com/support/integrations/ci-cd/bamboo)

 ![TeamCity](https://zh.testingbot.com/assets/integrations/teamcity-7e75cdb835903a4983ad276c41d95e569ceac5be486e96ec1f955029ce5bb319.svg)

### [TeamCity](https://testingbot.com/support/integrations/ci-cd/teamcity)

 ![CircleCI](https://zh.testingbot.com/assets/integrations/circleci-ede029654ff39b60342e4a5bba8fc9a3a49305cc38bda215b7cf8d07e85e0543.webp)

### [CircleCI](https://testingbot.com/support/integrations/ci-cd/circleci)

 ![GitLab CI](https://zh.testingbot.com/assets/integrations/gitlab-e4c0b6db07d07bc0a400f5606e258f4dc8a51b778e97bbfa51d1d531f3cb049a.webp)

### [GitLab CI](https://testingbot.com/support/integrations/ci-cd/gitlab)

 ![GitHub](https://zh.testingbot.com/assets/integrations/github-actions-8436242ad9e15381f84f1a98a10dddce15611087f121d6305782e211942b7842.webp)

### [GitHub](https://testingbot.com/support/integrations/ci-cd/github-actions)

 Secure Tunnel 
## 安全地测试内部和测试环境应用程序

使用我们的[安全隧道](https://testingbot.com/support/tunnel)，针对受防火墙保护的测试站点、内部仪表板或仍在本地主机上的应用程序运行 Cypress 测试。

端到端加密，无需入站防火墙规则，开箱即用，适用于主流 CI 提供商。

 ![TestingBot secure tunnel for Cypress](https://zh.testingbot.com/assets/features/tunnel-diagram-poster-8c25e19e6fe4f7276a46a96b31a0ad0e07bb4f5bf98dc192d2b70897cfbb1a26.png)

[阅读更多](https://zh.testingbot.com/support/tunnel)

常问问题
## Cypress 在 TestingBot 上的常见问题解答

为什么要在 TestingBot 上运行 Cypress 而不是在本地运行？

Cypress 可以在本地任何已安装的浏览器上运行。TestingBot 可在真实的 Windows、macOS 和 Linux 机器上，在真实的 Chrome、Firefox 和 Edge 浏览器中同时运行多达 100 个 Cypress 会话，并自动收集高清视频和控制台日志。

支持哪些 Cypress 版本？

TestingBot 目前支持 Cypress `14.2.0` （ `13.3.3` ）、 `12.5.1`和`9.1.0` 。 `13.17.0` `10.0.0`通过`testingbot.json`中`8.0.0` `cypress_version`字段为每次运行指定特定版本。

我可以并行运行 Cypress 吗？

是的。TestingBot 的计划包括最多 100 个并行 Cypress 会话，测试用例的自动分片由 testingbot-cypress-cli 处理。每个会话都在其自身的独立虚拟机中运行。

TestingBot 与 Cypress Cloud 有何不同？

TestingBot 在真实的 Windows、macOS 和 Linux 系统上，使用 Chrome 和 Firefox 浏览器运行 Cypress。Cypress Cloud 是一个结果仪表盘，而非浏览器云平台。两者可以共存——许多团队将测试结果记录到 Cypress Cloud，然后在 TestingBot 上执行测试。

TestingBot 是否支持 TypeScript 和 Cypress 组件运行器？

是的——请参阅[TypeScript 指南](https://testingbot.com/support/web-automate/cypress/typescript)。组件运行与端到端测试的工作方式相同。

如何迁移我现有的 Cypress 套件？

安装我们的开源`testingbot-cypress-cli` ，运行`testingbot-cypress init` ，将其指向你的`cypress.config.js`文件，然后运行`testingbot-cypress run` 。你的测试用例、插件和 fixtures 保持不变。

我可以测试内部站点或测试站点吗？

是的——安装我们的[安全隧道](https://testingbot.com/support/tunnel)后，您的 Cypress 测试就可以访问暂存环境、本地主机或防火墙后的任何其他内容。

Cypress Grid 是否符合 GDPR / SOC 2 标准？

TestingBot 未取得 SOC 2 或 ISO 27001 认证。我们符合 GDPR 要求，数据仅存放于欧盟境内，已在 CSA STAR 一级登记（一份公开的自评报告），控制措施参照 ISO 27001 附录 A 制定。我们的数据中心运营商持有 ISO 27001 认证。企业版套餐提供 SAML 单点登录、SCIM 和审计日志。

TestingBot 是 Cypress Cloud 的替代方案吗？

就多数团队实际付费的部分而言，是的。TestingBot 并行运行您的 spec，录制视频与日志并提供仪表板，同时还提供浏览器和机器，而这正是 Cypress Cloud 不提供的。计费按并行会话而非按录制的测试结果。如果您明确需要在自有 CI 上使用 Test Replay 或 Cypress 原生的不稳定用例分析，Cypress Cloud 仍是合适的工具。

我可以在哪些浏览器上运行 Cypress？

Windows 与 macOS 上的 Chrome、Chromium、Firefox、Edge、Electron 和 WebKit。这覆盖了单个 CI runner 难以实现的 Cypress 跨浏览器测试，其中 WebKit 可用于接近 Safari 的渲染，并支持 headless 或有界面模式。

## 准备好开始赛普拉斯测试了吗？

要想开始，请看我们的[赛普拉斯测试](https://testingbot.com/support/web-automate/cypress)文档。

[开始免费试用](https://zh.testingbot.com/users/sign_up)

您可能喜欢的资源

[![Tutorial on debugging Cypress tests](https://zh.testingbot.com/assets/resources/articles/10-7ae9f6d9435bea1c54ec815ad535dc4a590086e6165263a9eba3441635d55726.webp)](https://testingbot.com/resources/articles/how-to-debug-cypress-tests)
### [Tutorial on debugging Cypress tests](https://testingbot.com/resources/articles/how-to-debug-cypress-tests)

How to debug a failing Cypress test using the debugger, console logs, the stack trace, and the debug and pause commands.

[阅读更多: Tutorial on debugging Cypress tests](https://testingbot.com/resources/articles/how-to-debug-cypress-tests)

[![Cypress and Cucumber Browser Testing](https://zh.testingbot.com/assets/resources/articles/6-495c5e14cb4bf1e282858fc7e2cfcbe89775e3790b88d34c15bf9a6f36d387d4.webp)](https://testingbot.com/resources/articles/cypress-cucumber-testing)
### [Cypress and Cucumber Browser Testing](https://testingbot.com/resources/articles/cypress-cucumber-testing)

How to combine Cypress with Cucumber so end-to-end tests read as plain language, including a worked example and the TypeScript setup.

[阅读更多: Cypress and Cucumber Browser Testing](https://testingbot.com/resources/articles/cypress-cucumber-testing)

[![Run Cypress tests on TestingBot's Browser Grid](https://zh.testingbot.com/assets/blog/2020/cypress.webp)](https://testingbot.com/blog/testingbot-cypress)
### [Run Cypress tests on TestingBot's Browser Grid](https://testingbot.com/blog/testingbot-cypress)

Run Cypress Automated tests on TestingBot's Browser grid.

[阅读更多: Run Cypress tests on TestingBot's Browser Grid](https://testingbot.com/blog/testingbot-cypress)
