cost 352 ms
如何在 cucumber 中将 Background 关键字作为 runner 场景? - How to make Background keyword as a runner scenario in cucumber?

我正在尝试使用 selenium 和 cucumber 上的 3 个场景测试亚马逊网站。用于编写小黄瓜结构。 我使用 Background 关键字将我的登录功能与其他场景连接起来。 但这次的问题是我的场景编号从 3 减少到 2。基本上,我还想测试登录功能并关闭终端和 go 到其他测试场景。 相反, ...

将我的登录场景重用并连接到 Cucumber Java 和 Selenium 中的其他场景 - Reuse and concat my Login Scenario to other Scenarios in Cucumber Java with Selenium

我正在尝试使用 3 种场景测试亚马逊网站。 首次登录场景完成时。 当尝试其他场景时,它会进入初始状态,并且在尝试将产品添加到购物车时不登录。 基本上,我想先登录并将此功能连接到 Cucumber Selenium 中的其他场景或功能。 下面的小黄瓜语言是我的 Amazon.feature; 很可能我 ...

如何使用命令运行所有 cucumber 测试? 如何为此设置 pom.xml 文件 - How to run all cucumber tests with a command ? How to setup pom.xml file for this

我在本地机器上有一个 cucumber 项目,它的副本在 git 上。当我在本地运行项目时 - 测试运行成功。但是当我在 cmd 中使用 mvn test 命令时,没有找到测试。 我在我的 pom.xml 中使用 junit pom.xml RunnerTest.java 测试.java 我的项 ...

如果 Cucumber 特征文件中有 1000 个特征文件,我只想执行偶数个特征文件。 怎么做? - If there are 1000 features files in Cucumber feature file and I want to execute only even feature files. how to do that?

src/test/resources 中的 1000 个功能文件。 我只想运行偶数(2、4、6、……1000)的功能文件,我们该怎么做? 我试图将它们分组,但不确定这样会是个好方法。 ...

相同场景大纲的两个示例小黄瓜 - Two examples for same scenario outline Gherkin

我需要验证一堆使用我们模板的网站。 登录后,我需要验证许多信息,这些信息将放在第二个表中。 如何编写小黄瓜代码,以便对于表“userinfo”中的每个项目,它都会遍历表“siteinfo”中的所有项目。 我看到通过 userinfo.url 或 siteMenu.menuiitem 调用它们时出错。 ...

有没有办法只运行 cucumber 场景大纲中的选择性示例? - Is there a way to run only selective examples from a cucumber scenario outline?

我有一个 Cucumber .feature文件,其场景大纲如下所示。 有没有办法在测试运行期间只运行示例表中的特定行? 现在,我需要将其拆分为两个场景大纲,并将其中一个标记为@ignore来完成此操作。 cucumber 是否提供了一种在执行期间过滤示例的方法,可能基于示例表中的列? ...

Parsing Cucumber Feature Files into JSON or NDJSON using Java with Cucumber 7.6.0 or Gherkin-Java 24.0.0 - Parsing Cucumber Feature Files into JSON or NDJSON using Java with Cucumber 7.6.0 or Gherkin-Java 24.0.0

问题的背景: 上一期: 我过去已经用下面的附加线程问过这个问题,但在那种情况下用例是不同的。 我只需要一种使用 (NodeJS) cucumber-js 将 JSON 打印到标准输出的方法。 我按照( https://github.com/cucumber/cucumber-js/blob.m/ ...


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