Fitnesse框架正则表达式可能吗?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
在 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