
[英]cypress cucumber - How to identify the which feature file calling step definition?
我的框架包含从不同feature文件调用的common step definitions 。 我想根据来自功能文件的step definition调用来设置locators 。 例如下面的Steps从公共模块调用step Definition 。 常用步骤定义 我想根据不同的特征文件为save按钮 ...
[英]cypress cucumber - How to identify the which feature file calling step definition?
我的框架包含从不同feature文件调用的common step definitions 。 我想根据来自功能文件的step definition调用来设置locators 。 例如下面的Steps从公共模块调用step Definition 。 常用步骤定义 我想根据不同的特征文件为save按钮 ...
[英]Unable to run Cypress Cucumber tests. Receving weird Gherkin error
当我尝试使用 @badeball/cypress-cucumber-preprocessor 在 Cypress 上运行我的 cucumber 测试时,我得到了这个奇怪的错误: 这表明错误来自我的duckduckgo.feature文件,如下所示: Scenario Outline: Steps ...
[英]click on svg element is not working in cypress
我有一个点击 svg 元素的场景,尝试了以下代码,它没有抛出任何错误。 它正在点击,但元素 state 没有改变。 也试过用力点击。cy.xpath("(//app-job[contains(@class,'selected')]//highcharts-chart[@id='GMF_K_CHART ...
[英]Cypress - can't run tests after upgrading cucumber preprocessor
在 package.json 中,我使用了这些版本的 cucumber 和 esbuild with cypress: 在cypress.config.js我有: 现在,这工作正常,没有问题。 但是在我将 cucumber 预处理器升级为: 和赛普拉斯版本到12.3.0 然后运行npm instal ...
[英]Cypress - Checking value property inside a div
我正在尝试检查 div 中值字段的值。 这个值不会反映到div值中的字符串或int中,只反映在他的属性中:<input as-automation="" type="text" placeholder="Put the initial value here" value="999.99"> ...
[英]@badeball/cypress-cucumber-preprocessor not generating .json report
我从'cypress-cucumber-preprocessor'移到了@badeball/cypress-cucumber-preprocessor 。 并错过了执行时生成的 json 报告。 请让我知道如何生成.json报告并附上失败测试的屏幕截图。 Package.json: 赛普拉斯.co ...
[英]How to handle 'Uncaught:exception' in cypress cucumber test
我想处理使用 cucumber 运行柏树测试时发生的未捕获异常。我必须在所有模块的所有功能测试之前应用这些设置。 我该如何处理? 我试过这种方式,cy.on function in cypress config,但它对我显示错误。 ...
[英]My step definitions are not being picked in Cypress
我当前的 cypress 项目树看起来像这样:├── cypress │ ├── OtherProjectFolder │ │ ├── frontend │ │ │ └── TestUI.feature │ ├── pages_objects │ │ ├── ...
[英]Can't get tagging to work with cypress-cucumber-preprocessor
我目前在使用cypress-cucumber-preprocessor package 标记时遇到问题。我知道cypress-tags已被删除并变得多余,所以我尝试使用新语法设置标记但无济于事。 这是我的特点: Feature: duckduckgo.com Rule: I am on a des ...
[英]How to move a file 'to a directory that's on your PATH'?
我正在尝试为 Cucumber 安装 JSON 格式化程序,但在配置时遇到问题。 步骤(在此处列出)go 如下所示: 我已正确下载并重命名文件。 但是,我坚持将它移动到我的PATH上的目录的第二步。 做一些研究,我知道文件夹结构是什么样的,但我不确定这个步骤到底在指示什么。 我将如何实现这一步? ...
[英]Docker image of cypress 12 is not working
我将我的 cypress 版本从8升级到 cypress 12.2.0 。 当我在我的本地运行 cypress suite 时它工作,但是当使用 docker image 12.2.0运行时,它抛出错误 我的dockerFile如下: 我的 cypress.config.js 文件如下: 我的本地节 ...
[英]Stripe Checkout tests break out it is openeing a new tests in our e2e tests. I am using "cypress": "12.2.0" version
Stripe Checkout 测试爆发,它在我们的 e2e 测试中开启了新的测试。 我正在使用 "cypress": "12.2.0" 版本。 期待解决方案 ...
[英]How to log output in cypress cucumber html report?
我正在使用@badeball/cypress-cucumber-preprocessor进行自动化。 我正在寻找如何在 html 报告中打印输出/日志。 在 Cucumber-Java 中,我有scenario.write("hello"); 在 cucumber html 报告中打印消息的语句。 ...
[英]how to give a custom name for lighthouse report which is generated by cypress-audit package
我需要为多个测试场景生成多个灯塔报告。 通过使用 cypress-audit package 我写了一个生成灯塔报告的方法。 在下面你可以看到那个方法 下面你可以看到我是如何在调用“lighthouseAudit”方法后生成报告的 如您所见,我将报告命名为“lightHouseReport.htm ...
[英]function always return undefined value in cypress
这是赛普拉斯测试文件 这是 calculationStoryService.js 文件 在“storyTableViewResultColumnCheck”方法中调用“getAllCalculationStoriesFromExcel”方法时,它总是返回未定义的值。 但是在“getAllCalcul ...
[英]The proper way to install and configure @badeball/cypress-cucumber-preprocessor with TypeScript and Cypress 10+
我正在尝试使用 TypeScript 为 Cypress 11 实现 cypress-cucumber-preprocessor,但我不确定我错过了什么。 以下是我执行的步骤: 使用以下命令安装它: npm 安装@badeball/cypress-cucumber-preprocessor 这是我 ...
[英]How to get the current step definition name in Cypress-Cucumber? NOT the scenario name
我正在对 API 进行一些自定义报告,我正在检索一些信息以放入有效负载中。 我想获得的一条信息是调用时的步骤定义名称(不是场景名称)。 每当出现故障时,我都会发送此信息。 请参阅下面的代码段。 有任何想法吗? 探索了 Mocha runnable object 和相关方法,包括来自 Cypress ...
[英]After removing node_modules folder and later running npm isntall throws error
对于全新安装,我使用命令rm -rf node_modules/删除了 node_modules 文件夹。然后从终端我在 Ubuntu 中运行了npm install ,但现在我遇到了以下错误,有人可以建议我应该遵循哪些步骤解决这个问题? // 包.json ...
[英]Cypress V10. Not Reading data in BDD test: TypeError: Cannot read properties of undefined (reading 'mobileHandset')
我希望有人能提供帮助,我刚刚将 Cypress Mocha 框架转换为 BDD。 在转换之前它运行完美并且测试运行顺利。 现在我已经转换了它,我似乎收到一条错误消息Cannot read properties of undefined (reading 'mobileHandset') 。 我以前 ...
[英]Importing failed test results into xray via JUnit XML reports
使用 JUnit XML 将错误/失败的测试结果上传到 xray 时,它会创建一个新测试,而不是映射到现有测试。 已“通过”的测试结果成功映射到现有测试。 我一直在使用通用测试定义来 map 我的测试结果。 对于“失败”和“错误”测试结果,我如何模拟这种行为? ...