使用fitnesse表中的数据作为变量 [英] Using data from fitnesse table as a variable

查看:27
本文介绍了使用fitnesse表中的数据作为变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用 Fitnesse.我正在尝试使用查询的结果(数字?),并在另一个测试装置中使用该结果.所以例如

I'm just getting started with Fitnesse. I am trying to use a result of a query (number?) and with that result use it in another test fixture. so e.g.

!|Create Account                                                                                    |
|Contractor No  |Account State  |Account Name  |Account Type  |Invoice Template Name|Number?|Result?|
|${ContractorNo}|${AccountState}|${AccountName}|${AccountType}|${InvoiceTempName}   |       |TRUE   |

!|Check Account                      |
|AccountNo           |Account Exists?|
|(result from number?)|TRUE          |

反正有这样做吗?我试过这个:SymbolTestTables,但这似乎是一个完整的记录,而不仅仅是结果一个功能.

is there anyway of doing this? ive tried this: SymbolTestTables, but this seems to be for one entire record instead of just the result from one function.

正如我所说,我是 Fitnesse 新手,所以如果这很容易,我深表歉意.

As i said im new to fitnesse so i apologize if this is easy.

推荐答案

我认为您所指的页面是 Fit 样式符号.

I think the page you are referring to is the Fit style symbols.

我建议人们要么使用 Slim,要么转向 FitLibrary;因为两者都比 FIT 得到更好的支持.

I recommend that folks either use Slim, or move to FitLibrary; as both are better supported than just FIT.

如果你以 Slim 的方式做事,你会想看看这个页面:表格中的符号

If you are doing things the Slim way, you would want to look at this page: Symbols in tables

如果您采用 Slim 方式,您的桌子将如下所示:

And if you were doing the Slim way, your table would look like this:

!|Create Account                                                                                    |
|Contractor No  |Account State  |Account Name  |Account Type  |Invoice Template Name|Number?               |Result?|
|${ContractorNo}|${AccountState}|${AccountName}|${AccountType}|${InvoiceTempName}   |$accountNumber=      |TRUE   |

!|Check Account                |
|AccountNo     |Account Exists?|
|$accountNumber|TRUE           |

我对 FitLibrary 风格不太熟悉,所以我会向您推荐他们的文档:http://sourceforge.net/apps/mediawiki/fitlibrary/index.php?title=Main_Page

I'm not as familiar with the FitLibrary style, so I will refer you to their documentation: http://sourceforge.net/apps/mediawiki/fitlibrary/index.php?title=Main_Page

这篇关于使用fitnesse表中的数据作为变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆