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

发布于 2024-09-28 13:53:45 字数 313 浏览 0 评论 0原文

我目前对验证 grib control 中的数据有一些疑问。给定一个包含 ColumnA 和 ColumnB 的表,假设应用某些搜索查询后生成了 2 行记录。

我的目标是确保 ColumnB 中的数据显示我的预期输出,假设“data1”应显示在 ColumnB 下。我可以知道如何使用 FitNesse/SLIM 验证 ColumnB 中的数据吗?

我已经浏览了 FitNesse 中的文档,但它只关注静态数据,并且没有浏览从数据库生成的那些数据。我的测试程序中是否需要有数据库连接才能测试动态数据?

仅供参考,我在开发中使用JAVA。

谢谢 @!

I am currently having some doubt in verifying the data in grib control. Given a table with ColumnA and ColumnB, lets assume there are 2 rows of records are generated after some search query is applied.

My objective is to ensure the data in ColumnB showing my expectation output, lets assume 'data1' should be shown under ColumnB. May I know how can I verify the data in ColumnB using FitNesse/SLIM?

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. 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.

THanks @!

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

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

发布评论

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

评论(1

浮云落日 2024-10-05 13:53:45

查看 DbFit。它可能会做你想做的事。

Look at DbFit. It may do what you want.

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