Fitnesse框架正则表达式可能吗?

发布于 2024-08-14 06:11:54 字数 404 浏览 3 评论 0原文

Fitnesse 是否有一种简单的方法来根据正则表达式模式检查单元格?这应该适用于所有可能的固定装置,例如“查询表”、“决策表”等。例如,如果从查询表返回结果(行),则应该可以将某些单元格(列)与正则表达式匹配,而不仅仅是固定字符串。我想你知道我的意思。我在文档中找不到任何提示,并且通过谷歌搜索也找不到开箱即用的解决方案。 Fitnesse 中真的没有默认方法来执行此操作吗?我无法想象人们没有多次提出这样的要求。如果没有,有人可以向我指出某个地方的在线教程吗?

任何帮助将不胜感激。

干杯,

马塞尔

Is there an easy way in Fitnesse to check cells based on regex patterns? This should work for all the possible fixtures like "query table", "decision table" and so on. E.g. if results(rows) are returned from a query table it should be possible to match certain cells (columns) against a regex, not just a fixed string. I guess you know what I mean. I can't find any hint in the docs and googling around I can't find a solution that works out of the box. Is there really no default way in Fitnesse to do this? I can't imagine people haven't asked for this multiple times. If not could someone point me to an online tutorial somewhere?

Any help would be really appreciated.

Cheers,

Marcel

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

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

发布评论

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

评论(2

卸妝后依然美 2024-08-21 06:11:54

Slim 表格样式支持使用语法

=~/regex/

进行值比较的正则表达式请参阅 http://fitnesse.org/FitNesse.UserGuide.SliM.ValueComparisons 了解更多信息。

The Slim table style supports regular expressions for value comparisons using the syntax

=~/regex/

See http://fitnesse.org/FitNesse.UserGuide.SliM.ValueComparisons for more information.

冰雪梦之恋 2024-08-21 06:11:54

在 Java 世界中,没有“现成的”方法可以做到这一点。对于 .NET 版本,它可用:http://syterra.com/Fit/RegExHandler.html

In the Java world, there is no "out-of-the-box" way to do this. With the .NET version, it's available: http://syterra.com/Fit/RegExHandler.html

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