今天,我开始使用SpecFlow + Selenium学习BDD,并找到了几个只显示1返回的示例。
如何编写返回多项的场景。例如:
Given a name "test"
I click on the SEARCH button,则结果将等于下表:
name | last name
test | fulano
test | siclano在本例中,如何编写?,接受返回表中显示的2行?。
发布于 2016-09-16 08:08:03
设想情况:
Given a name "test"
When I click on the SEARCH button
Then the result will be
| name | last name
| test | fulano
| test | siclano代码:
[Then("The result will be")]
public void ThenTheResultWillBe(Table table)
{
//check that the result contains all the values in the table
}https://stackoverflow.com/questions/39517559
复制相似问题