简体   繁体   中英

Specflow parsing error VS2010

is anyone able to tell me what is wrong with my second AND statement in specflow?

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. 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. 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. 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 ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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