简体   繁体   English

如何使用FitNesse / SLIM验证表中的数据?

[英]How to verify data in table using FitNesse/SLIM?

I am currently having some doubt in verifying the data in grib control. 我目前在验证grib控件中的数据时有一些疑问。 Given a table with ColumnA and ColumnB, lets assume there are 2 rows of records are generated after some search query is applied. 给定一个带有ColumnA和ColumnB的表,让我们假设在应用某些搜索查询后生成了两行记录。

My objective is to ensure the data in ColumnB showing my expectation output, lets assume 'data1' should be shown under ColumnB. 我的目标是确保ColumnB中的数据显示我的期望输出,假设'data1'应该显示在ColumnB下。 May I know how can I verify the data in ColumnB using FitNesse/SLIM? 我可以知道如何使用FitNesse / SLIM验证ColumnB中的数据吗?

I have go through the documentation in FitNesse, but it only focus on static data, and it doesn't go through those data generate from database. 我已经阅读了FitNesse中的文档,但是只关注静态数据,而没有涉及从数据库生成的数据。 Do I need to have a database connection in my test program in order to test on the dynamic data? 为了测试动态数据,我是否需要在测试程序中建立数据库连接?

FYI, I am using JAVA in the development. 仅供参考,我正在开发中使用JAVA。

THanks @! 谢谢 @!

Look at DbFit . 看看DbFit It may do what you want. 它可能会做您想要的。

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

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