FitNesse/Waferslim 多排桌子

发布于 2024-11-30 10:20:51 字数 686 浏览 2 评论 0原文

我正在使用 Waferslim 通过 Python 连接到 Fitnesse。我已经使交互正常工作,但是,我在 FitNesse 中实现 Tabletable 类型时遇到问题。 Waferslim 示例给出的表中只有一行,但我试图让它与多行一起使用。

似乎单行表的预期回报是这样的:

[['no change', 'no change',...], ['pass', 'pass',...]]

现在,人们会期望通过做类似的事情:

[
[['no change', 'no change',...], ['pass', 'pass',...]],
[['no change', 'no change',...], ['pass', 'pass',...]],
]

毕竟我的问题是,有没有人成功地获得了一个具有多行的 Tabletable 来与 FitNesse 一起使用,并且薄薄的?或者我只需要使用一堆单行表来测试大型数据集?

I'm using Waferslim to tie in to Fitnesse with Python. I've gotten the interaction working properly, however, I'm having problems implementing the Tabletable type in FitNesse. The Waferslim example given only has one row in the table, but I'm trying to get this to work with multiple rows.

It seems that the expected return for a single row table is something like this:

[['no change', 'no change',...], ['pass', 'pass',...]]

Now, one would expect that by doing something like:

[
[['no change', 'no change',...], ['pass', 'pass',...]],
[['no change', 'no change',...], ['pass', 'pass',...]],
]

After all that my question is, has anyone successfully managed to get a Tabletable with multiple rows to work with FitNesse and Waferslim? Or do I just have to use a bunch of single row tables to test a large data set?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤单情人 2024-12-07 10:20:51

“无变化”列表对应于表的第一列,“通过/失败/无论”对应于第二行。

在很长一段时间里,我一直认为每行都需要两个列表,这是问题的根源。因此,要返回多行上的值,您将发送回一个如下所示的列表:

[
['no change', 'no change', 'no change'], #This is the 'table header' row
['pass', 'pass', 'pass'], #This is the first row that is actually tested
['pass', 'pass', 'pass'] #This is the second row that is tested
]

当您以这种方式查看它时,它非常明显。

The 'no change' list corresponds to the first column of the table, and the 'pass/fail/whatever' goes to the second row.

For the longest time I'd thought that both lists were needed on each row, which was the root of the problem. So, to return values on multiple rows you would send back a list that looks like this:

[
['no change', 'no change', 'no change'], #This is the 'table header' row
['pass', 'pass', 'pass'], #This is the first row that is actually tested
['pass', 'pass', 'pass'] #This is the second row that is tested
]

When you look at it that way, it's blindingly obvious.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文