我在Github中有一个柏树工作流,它运行得很好。但是,当e2e测试由于某种原因失败,并且我希望使用re-run all jobs按钮(下面)重新运行它们时,会出现以下消息:
The run you are attempting to access is already complete and will not accept new groups.
The existing run is: https://dashboard.cypress.io/projects/abcdef/runs
When a run finishes all of its groups, it wai
我有两个e2e测试,它们与浏览器自动化一起运行,测试以下用户故事:
C:As a manager, I can add a member to my team.
D:As a manager, I can pay a member of my team.
问题是,为了做D,我必须先做C。因此,编写一个e2e测试,去ABC,一旦去ABC是多余的!
我的问题是:在e2e测试中避免冗余的最佳实践是什么?我想过的一件事就是编写ABCD,并在C步骤之后包含一个C。尽管这意味着,如果我们在C有一个失败,我们没有信息,如果D会工作或不工作。
在进行端到端测试时,我遇到了这样一个问题:当我使用protractor protractor.conf运行所有测试用例时,每个测试用例都会成功执行。另一方面,当使用ng e2e时,其中一些测试用例会失败(相当尴尬的行为)。任何人可以帮助我关于这个问题,根据我的理解,ng e2e构建代码,然后执行量角器protractor.conf,而在量角器的情况下,我们已经在本地主机上有一个服务应用程序,这只是测试。配置文件已附加 // Protractor configuration file, see link for more information
// https://github.com/
我正在尝试运行由JHipster 5.7生成的应用程序。当我尝试运行mnvw文件时,我得到:
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
You are running an incompatible version of Java. JHipster requires JDK 1.8
然后是一串错误和运行失败。我确实在使用JDK version11。我在网上找到了一些看似的,但我很难真正理解其中的任何含义,甚至很难完全确定它是否与我的问题相关。
为了避免
我目前正在开发一个网络产品,我们有一个测试策略,其中包括端到端的测试。
我们的技术负责人认为,每个e2e测试只应该验证一个特性。例如,我们将有一个创建帐户的测试,一个单独的登录测试和另一个更新帐户个人信息的单独测试。如果我不得不想象这个想法,我想它最好是这样的:
test 1 : create account
test 2 : log into existing account
test 3 : update info of currently logged in account
对我来说,这似乎是有害且难以维护的,因为在现实中,每个测试都依赖于前一个测试,而它们最终运行起来更像这样:
tes
我正在使用Cypress的nextjs插件,当我试图通过Browser堆栈运行任何测试时,当我试图通过相对路径导入模块时,我会得到以下错误。
Oops...we found an error preparing this test file:
> cypress/integration/happy-paths/modules/promo-card-page-automation-checks.spec.js
The error was:
Error: Webpack Compilation Error
./cypress/integration/happy-paths/
我有一个普通的Angular7项目,它是通过ng CLI生成的,其中有一个组件我想要测试:src/app/mini-cal/mini-cal.component.spec.ts
我不知道有什么方法可以要求有角的cli工具来帮我做这件事,下面的组合失败了
ng test --specs='src/app/mini-cal/mini-cal.component.spec.ts'
ng test -- --specs='src/app/mini-cal/mini-cal.component.spec.ts'
所以我决定把protractor指在下面这样的位置:
pro
我使用这个命令只为服务器端生成jhipster代码。但我看到了一个错误:TypeError: Cannot read property 'push' of undefined。
这是输出
Command: jhipster --skip-client
INFO! Using bundled JHipster
https://www.jhipster.tech
Welcome to JHipster v7.7.0
Application files will be generated in folder: D:\workspaces\persona