【问题标题】:Issue with cucumber .feature files in Eclipse OxygenEclipse Oxygen 中的黄瓜 .feature 文件存在问题
【发布时间】:2018-04-23 22:51:28
【问题描述】:
我已经在 Eclipse Oxygen 上下载了黄瓜测试框架的 Natural 插件。(这个插件是市场上唯一出现在黄瓜上的插件)。
成功安装插件(并重新启动 eclipse)后,我尝试在黄瓜编辑器中打开 .feature 文件并显示以下错误:(所有 .feature 文件都是这种情况)
必需的 (...)+ 循环与输入“场景:”中的任何内容都不匹配
因此,当我右键单击时,黄瓜选项菜单不显示。感谢任何帮助。
【问题讨论】:
标签:
eclipse-plugin
cucumber
eclipse-oxygen
【解决方案1】:
尝试完全像这样粘贴:
Feature: user creates facebook account
I want to use this template for my feature file
Scenario: validate first name fields
Given User is on login page
When User enters first name
Then User verifies first name is present