简体   繁体   English

Specflow解析错误VS2010

[英]Specflow parsing error VS2010

is anyone able to tell me what is wrong with my second AND statement in specflow? 有谁能告诉我specflow中第二个AND语句出了什么问题?

perhaps also there's a better way to test this behaviour? 也许还有更好的方法来测试这种行为?

Scenario: New Lowest Member changes all existing members
Given the following members are registered to race
| FullName | mMemberID | mGrpID |
| Michael  | 1         | 10     |
| John     | 2         | 22     |
And the following member is added
| FullName | mMemberID | mGrpID |
| Slow     | 3         | 6      |
Then MemberID 2 should have a Handicap of "00:02:30"
And MemberID 3 should have a Handicap of "00:00:00"

Hard to say without Vs at my hands. 没有Vs在我手上很难说。 Maybe it's a newline or tab in there somewhere. 也许是某个地方的换行符或选项卡。 UPDATED I've now tried to copy your scenario into a new .feature file and it works perfectly. 更新我现在尝试将您的方案复制到一个新的.feature文件中,并且可以完美地工作。 So I now think (even more) that there is something hidden messing up your feature. 因此,我现在认为(甚至更多)隐藏了一些东西,使您的功能混乱。 The rest of my answer still holds though. 我其余的答案仍然成立。

But I would recomend that you dont use implementation names such as mGrpId. 但是我建议您不要使用实现名称,例如mGrpId。 Rather use the name of that group and look it up. 而是使用该组的名称并查找它。 Remember that you want your end users, testers, analysists etc to be able to read the scenarios. 请记住,您希望最终用户,测试人员,分析人员等能够读取场景。

Change into that and maybe your obscure error goes away as well ;) 换成那个,也许您晦涩的错误也消失了;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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