我已经在github上看到了这一点,但我仍然无法让cypress正确配置/下载。在我的jenkins管道中,我运行了npm install,但由于代理的原因,它遇到了超时。它下载除cypress之外的所有其他依赖项。
我所做的是下载cypress并将压缩文件放入项目中。然后我运行sh "setCYPRESS_INSTALL_BINARY=cypress.zip npm i cypress",但仍然失败。
在Jenkins管道中失败的部分:
sh "npm config set proxy http://<proxy>"
sh "n
创建一个管道来做jenkins柏树测试,但是我总是运行它,犯错误,尝试各种解决方案,包括Jenkins Xvfb,但我仍然没有成功。
误差
+ npm run exec:e2e
> projectname@0.1.0 exec:e2e /var/lib/jenkins/workspace/project/myproject
> npx cypress run
It looks like this is your first time using Cypress: 3.4.0
[?25l[01:56:21] Verifying Cypress can run /var/lib
我正试着在我工作的地方和詹金斯一起做柏树测试。由于代理问题,我已经在s3中上传了我的本地节点模块,在运行测试之前,我将下载这些模块,然后使用以下命令运行测试。
但是我还不能理解的错误。有人能解释一下这里出了什么问题吗?
CYPRESS_CACHE_FOLDER=./cypress-cache ./node_modules/.bin/cypress run --headless --browser chrome --spec cypress/integration/api/api-test.spec.ts
The cypress npm package is installed, but the
我有一个带有以下服务的坞-撰写文件:
后端
数据库
前部
数据库迁移
柏树(E2E试验)
我所面临的问题是当我运行docker-compose up时,第一个启动的服务是cypress。
Cypress立即尝试到达backend,但失败,给出了错误:
> http://backend:8000
We are verifying this server because it has been configured as your `baseUrl`.
Cypress automatically waits until your server is acces
我正在Jenkins中运行集成。问题的要点如下:
我已经将我要开发的应用程序的git克隆到了我的工作站上,然后创建了一个目录,在git和yarn中对其进行了初始化,然后在其中安装了cypress。
然后,我在相关的Jenkinsfile文件中输入了以下行:
yarn install
.
.
.
cd (testing-directory)
yarn run cypress run --browser chrome --headless
在这一点上,构建失败。
我得到的错误消息是:
找不到错误命令"cypress“。
但是,命令yarn run cypress run --browser
我正在使用cypress中的插件,并参考了https://docs.cypress.io/api/plugins/configuration-api.html#Usage。当我们将它们部署到jenkins时,我得到了 `pluginsFile` is set to `/e2e/cypress/plugins/index.js`, but either the file is missing, it contains a syntax error, or threw an error when required. The `pluginsFile` must be a `.js` or `.
我有一个使用Cucumber预处理器支持TypeScript的Cypress项目,它突然开始抛出以下异常:
TypeError: Cannot read properties of undefined (reading 'uid')
有时,当我更改到不同的工作区时,它会工作,但当我打开Cypress运行器本身时,甚至在Jenkins中执行时,这个错误都会再次产生。
Cypress Runner: (v8.4.0)
Jenkins控制台: (v8.7.0)
The function exported by the plugins file threw an error
我正在尝试让cypress在远程服务器上的jenkins上运行(平台: linux (高山Linux - 3.7.0)。每次单击“立即构建”时,都会失败,并显示以下消息: + npm install
npm WARN cypress_test@1.0.0 No repository field.
up to date in 1.217s
[Pipeline] sh (Run tests)
+ npx cypress run
It looks like this is your first time using Cypress: 4.7.0
[?25l[17:51:40] Verifyi
我正在创建一个需要同时包含这两种内容的码头形象:
例句:Foo公司对Jenkins支持功能的形象:docker.foo.com/jenkins-build:latest
这个图像将被标记为docker.foo.com/cypress-build
此图像的Dockerfile脚本如下:
# Image containing company Foo's Jenkins build
FROM docker.foo.com/jenkins-build:latest
# Main image that include all operating system dependen
在jenkins pipeline中运行我的测试时,它显示您已将cy.request() url作为null进行传递。我已经提到了jenkins中的所有环境变量。有人能告诉我这里有什么问题吗?
错误:CypressError: cy.request()requires aurl. You did not provide a url.
我的.env文件:
CYPRESS_TEST_USERNAME=Test1
CYPRESS_TEST_PASSWORD=BooksTest1234
CYPRESS_BASE_URL=https://my-test-url.com/books/
CYPRESS_AP
在Jenkins上遇到这个问题。我已经运行Cypress一个月了,没有任何问题。一旦我从5.3.0更新了版本,-> 5.5.0就开始出现这个问题。
注意:我的测试不在docker容器中。
We detected that the Chromium Renderer process just crashed.
This is the equivalent to seeing the 'sad face' when Chrome dies.
This can happen for a number of different reasons:
- You wrote an