JBehave可以为一个Story支持多个示例表吗?
问题是-我一直在用一个表编写测试,有些情况下需要大量数据-反过来,我发现自己正在创建一个长表。
! -- CURRENT
GIVEN $user1 logs in
WHEN user fills <name> , <address> , <etc1> , <etc2>
THEN user can see <dataHere> , and <someDataThere>
Example:
|name|address|etc1|etc2|dataHere|someDataThere| ... so on and so forth.
|john|canada|etcData|etcData|hereData|thereData| .... so on and so forth
! -- What's in my head
GIVEN $user1 logs in
WHEN user fills <name> , <address> , <etc1> , <etc2>
THEN user can see <dataHere> , and <someDataThere>
Example:
|name|address|etc1|etc2|dataHere|someDataThere|
|john|canada|etcData|etcData|hereData|thereData|
Example2:
|extraData1|extraData2|extraData3|extraDat4a|extraData5|extraData6|
|value1|value1|value1|value1|value1|value1|