cost 207 ms
cypress cucumber - 如何识别调用步骤定义的功能文件?

[英]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 handle 'Uncaught:exception' in cypress cucumber test

我想处理使用 cucumber 运行柏树测试时发生的未捕获异常。我必须在所有模块的所有功能测试之前应用这些设置。 我该如何处理? 我试过这种方式,cy.on function in cypress config,但它对我显示错误。 ...

如何将文件“移动到 PATH 上的目录”?

[英]How to move a file 'to a directory that's on your PATH'?

我正在尝试为 Cucumber 安装 JSON 格式化程序,但在配置时遇到问题。 步骤(在此处列出)go 如下所示: 我已正确下载并重命名文件。 但是,我坚持将它移动到我的PATH上的目录的第二步。 做一些研究,我知道文件夹结构是什么样的,但我不确定这个步骤到底在指示什么。 我将如何实现这一步? ...

Stripe Checkout 测试爆发,它在我们的 e2e 测试中开启了新的测试。 我正在使用“cypress”:“12.2.0”版本

[英]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" 版本。 期待解决方案 ...

如何为由 cypress-audit package 生成的灯塔报告指定自定义名称

[英]how to give a custom name for lighthouse report which is generated by cypress-audit package

我需要为多个测试场景生成多个灯塔报告。 通过使用 cypress-audit package 我写了一个生成灯塔报告的方法。 在下面你可以看到那个方法 下面你可以看到我是如何在调用“lighthouseAudit”方法后生成报告的 如您所见,我将报告命名为“lightHouseReport.htm ...

使用 TypeScript 和 Cypress 10+ 安装和配置 @badeball/cypress-cucumber-preprocessor 的正确方法

[英]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 这是我 ...

如何在 Cypress-Cucumber 中获取当前步骤定义名称? 不是场景名称

[英]How to get the current step definition name in Cypress-Cucumber? NOT the scenario name

我正在对 API 进行一些自定义报告,我正在检索一些信息以放入有效负载中。 我想获得的一条信息是调用时的步骤定义名称(不是场景名称)。 每当出现故障时,我都会发送此信息。 请参阅下面的代码段。 有任何想法吗? 探索了 Mocha runnable object 和相关方法,包括来自 Cypress ...

删除 node_modules 文件夹后运行 npm isntall 抛出错误

[英]After removing node_modules folder and later running npm isntall throws error

对于全新安装,我使用命令rm -rf node_modules/删除了 node_modules 文件夹。然后从终端我在 Ubuntu 中运行了npm install ,但现在我遇到了以下错误,有人可以建议我应该遵循哪些步骤解决这个问题? // 包.json ...

赛普拉斯 V10。 不在 BDD 测试中读取数据:TypeError:无法读取未定义的属性(读取“mobileHandset”)

[英]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') 。 我以前 ...

通过 JUnit XML 报告将失败的测试结果导入 xray

[英]Importing failed test results into xray via JUnit XML reports

使用 JUnit XML 将错误/失败的测试结果上传到 xray 时,它会创建一个新测试,而不是映射到现有测试。 已“通过”的测试结果成功映射到现有测试。 我一直在使用通用测试定义来 map 我的测试结果。 对于“失败”和“错误”测试结果,我如何模拟这种行为? ...


 
粤ICP备18138465号  © 2020-2023 STACKOOM.COM