gpt4 book ai didi

python - FitNesse/Waferslim Tabletable 多行

转载 作者:行者123 更新时间:2023-11-28 20:16:22 25 4
gpt4 key购买 nike

我正在使用 Waferslim用 Python 连接到 Fitnesse。我已经让交互正常工作,但是,我在 FitNesse 中实现 Tabletable 类型时遇到了问题。 Waferslim example给定的表中只有一行,但我正在尝试使其适用于多行。

单行表的预期 yield 好像是这样的:

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

现在,人们会期望通过做这样的事情:

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

毕竟我的问题是,有没有人成功地获得一个多行的 Tabletable 来与 FitNesse 和 Waferslim 一起工作?还是我只需要使用一堆单行表来测试大型数据集?

最佳答案

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

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

[
['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
]

当你这样看时,它是显而易见的。

关于python - FitNesse/Waferslim Tabletable 多行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7093847/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com