如何在 Cucumber 中自动生成功能文件的步骤定义?

rest assureddynamic programmingprogramming

我们可以在 Cucumber 中自动生成功能文件的步骤定义。这可以通过使用 Chrome 扩展程序提供的 Tidy Gherkin 插件来完成。

步骤 1− 导航到以下链接以访问 Tidy Gherkin 插件。

https://chrome.google.com/webstore/detail/tidygherkin/ nobemmencanophcnicjhfhnjiimegjeo?hl=en-GB

步骤 2−然后点击添加到 Chrome 按钮。

步骤 3− 完成后,在浏览器中输入 chrome://apps/。Tidy Gherkin 插件应该可见。

步骤 4−点击它来启动它。

步骤5− 将我们要映射的功能文件复制并粘贴到带有 Enter your Gherkin here… 的编辑框中的步骤定义文件中。然后点击底部的 JAVA STEPS 选项卡以获取相应的步骤定义。


相关文章