Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Specflow解析错误VS2010_C#_Specflow - Fatal编程技术网

C# Specflow解析错误VS2010

C# Specflow解析错误VS2010,c#,specflow,C#,Specflow,有人能告诉我specflow中的第二个AND语句有什么问题吗 也许还有更好的方法来测试这种行为 Scenario: New Lowest Member changes all existing members Given the following members are registered to race | FullName | mMemberID | mGrpID | | Michael | 1 | 10 | | John | 2 | 2

有人能告诉我specflow中的第二个AND语句有什么问题吗

也许还有更好的方法来测试这种行为

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"

很难说没有Vs在我手中。也许是某个地方的换行或制表符。 已更新 我现在尝试将您的场景复制到一个新的.feature文件中,效果非常好。所以我现在认为(甚至更多)有一些隐藏的东西扰乱了你的功能。 不过,我其余的答案仍然成立

但是我建议您不要使用诸如mGrpId之类的实现名称。而是使用该组的名称并查找它。请记住,您希望最终用户、测试人员、分析人员等能够阅读场景


换成那样,也许你那模糊的错误也会消失;)

如果到目前为止给出的答案不能解决问题,请显示步骤绑定。您的eror或问题到底是什么?请发布您的问题的更多详细信息。