简体   繁体   English

使用Fitnesse测试外部数据

[英]Using Fitnesse to test external data

We would like to use Fitnesse to test externally produced data set. 我们想使用Fitnesse来测试外部生成的数据集。 Specifically, the tests would contain invariants that must be valid in the data, but every time tests are run they would fetch the data from, let's say, a database and apply the checks to every row in the result set. 具体来说,测试将包含必须在数据中有效的不变量,但每次运行测试时,它们都会从数据库中获取数据,并将检查应用于结果集中的每一行。

The tests would still be organised as wiki pages, but each one once running would be repeated for all applicable data rows. 测试仍然会被组织为维基页面,但每次运行都将针对所有适用的数据行重复进行。 Should a particular row fail an assertion, we still want the tests to continue for other rows, but then receive a summary and a list of rows failed each particular assertion. 如果某个特定行未通过断言,我们仍然希望测试继续用于其他行,但随后会收到摘要,并且每个特定断言都会失败行列表。

I understand this is not exactly what Fitnesse is for, but we do have skills in the team to write fixtures and tests, and we like the idea of haivng non-technical subject matter experts authoring some of the tests. 我知道这并不是Fitnesse的用武之地,但是我们在团队中有技能来编写装置和测试,我们喜欢haivng非技术主题专家创作一些测试的想法。

Is there a way of achieveing the above in Fitnesse, or is it completely outside of its intended usage? 有没有办法在Fitnesse实现上述目标,还是完全超出其预期用途? If it is possible, I would appreciate any guidance on how to achieve that, I couldn't find anything insightful in the documentation (or other websites). 如果有可能,我将不胜感激如何实现这一目标,我在文档(或其他网站)中找不到任何有见地的东西。

Sounds like the Slim protocol is what you're looking for to write the fixtures. 听起来像Slim协议就是你想要写的灯具。
The Query Table in particular. 特别是查询表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM