我们在Team City中运行Cypress测试,测试的输出非常冗长。当我直接在代理机器上运行测试时,我没有看到如此详细的日志记录,所以这可能是由于Team City的原因。
小样本(有数千个这样的例子):
cypress:https-proxy Making intercepted connection to 60378
cypress:server:server Got UPGRADE request from /__socket.io/?EIO=3&transport=websocket
cypress:server:timers queuing timer id 5 after
我根据柏树文档安装了柏树。打开Cypress并选择要运行的测试后,我立即得到以下错误:
**Title:** Error running plugin
消息:插件引发了以下错误。我们停止运行你的测试是因为一个插件崩溃了。请检查您的插件文件(C:\Users\metin\Desktop\Programming\School\Typescript\From JS to TS\cypress\plugins\index.js)
堆栈跟踪:
Error: The following error was thrown by a plugin. We stopped running your tests
我已经安装了Cypress 5.0和所有的浏览器- Chrome,Edge和FF。当我跑的时候
> npx cypress open
无法在右上角看到所有浏览器。只有Electron在展示
我试过了
> npx cypress open --browser chrome
我得到以下错误
Can't run because you've entered an invalid browser name.
有可能在cypress.io中使用机会插件吗?
我通过npm将插件安装到node_modules\chance,并编辑了/ plugins /index.js文件,但仍然从柏树那里得到错误--无法启动,插件文件丢失或无效。
如果使用这个插件是不可能的-您建议在注册新用户的基础上编写测试吗?我计划利用机会生成“随机:电子邮件和密码”。
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// Y
我有20个自动测试和开放的sypress使用comand:
./node_modules/.bin/cypress open
而且柏树窗口也关闭了。控制台中有错误:
Error: ENAMETOOLONG: name too long, stat 'cypress/integration/cypress/integration/cypress/integration/cypress/integration/cypress/integration/cypress/integration/cypress/...'
cypress.json:
{
"baseUrl
TLDR:在詹金斯的同一台机器上在码头容器中运行并行柏树测试的问题。
我试图运行在单个aws机器2对接实例的柏树同时运行不同的套件并行。我遇到了一些问题,尽管我已经在docker-compose.yml和cypress.json文件上配置和公开了两个唯一和不同的端口,但端口上似乎存在冲突。他第一个集装箱工作,但是第一个集装箱撞错了下面的错误:
✖ Verifying Cypress can run /home/my-user/.cache/Cypress/4.1.0/Cypress
→ Cypress Version: 4.1.0
Xvfb exited with a non zero ex
我遇到一个问题,在柏树中返回一个错误:You must set the CYPRESS_MAILOSAUR_API_KEY environment variable to use the Mailosaur plugin.
我尝试将MAILOSAUR_API_KEY放到cypress.json文件和cypress.env.json中。我认为CYPRESS_MAILOSAUR_API_KEY应该用于系统环境变量,在这种情况下需要吗?还是我在cypress.json和env.json中的变量没有被读取?(我的cypress.env.json文件与cypress.json文件一起位于根级文件夹中)
我有一个Windows7无法识别的旧USB设备,所以我抓取了处理USB通信的芯片的设备驱动程序。在我修改了它之后,我使用它来为设备安装。我知道这很愚蠢,但现在我需要摆脱它。
下面是inf设置文件中的代码。这没有我更改过的VID和PID。我需要撤销它所做的所有更改。
; Installation INF for the Cypress Generic USB Driver for Windows Vista
; Processor support for OS unknown platforms.
;
; (c) Copyright 2010 Cypress Semiconductor Corp
我有一个字段,您需要在其中为应用程序写一个名称。如果我试图通过类在Cypress中找到这个字段,我会得到一个错误:
cy.type() can only be called on a single element. Your subject contains 40 elements.
如果元素没有"id、type“等,我应该如何引用它?
<div class="app-name-option"><label>App Name</label><input class="form-control" value=
我正在使用Cypress和Cypress Testing Library来测试我的React应用程序。 我有一个以名字('Steve')作为值的输入,我正在尝试使用cypress查找它,如下所示: // In the component:
<input defaultValue="steve" />
// In the spec file:
cy.getByText(/steve/i).should('exist'); 但是Cypress找不到这个元素,测试失败。如果我将输入更改为div: <div>Steve<
在cypress中从CLI运行代码时,我正在获取reference error。
尝试更新节点模块,但没有成功。
ReferenceError: passes is not defined at Spec.Base.epilogue (/Users/msgai/aistudio/node_modules/mocha/lib/reporters/base.js:324:31) at Object.onceWrapper (events.js:315:30) at emitOne (events.js:121:20) at Runner.emit