开发者

Fitnesse Framework regular expressions possible?

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 gues开发者_如何学Cs 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


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜