我刚刚开始使用 Specflow、Watin 和 Deleporter。
我遇到了集成类型测试的问题,因为它不会将表数据传递到相应的测试中。
Scenario: User tries to register and their email already exists
Given I have filled out the register page with the following data
| Name | Password | Nickname | Email |
| Sam | password1 | SamsNickname | email@email.com |
When I already have an account with the same email
| Name | Password | Nickname | Email |
| Sam | password1 | SamsNickname | email@email.com |
Then Show message that the account exists
[Given(@"I have filled out the register page with the following data")]
public void GivenIHaveFilledOutTheRegisterPageWithTheFollowingData(Table table)
{
var data = table.Rows.First();
}
我遇到的问题是上面的 Table 参数作为 null 传入。我在这里缺少什么吗?