如何在 Fitnesse 中抑制变量的 WikiWord 格式

发布于 2024-10-06 14:22:31 字数 367 浏览 0 评论 0原文

我正在使用 ${varname} 语法在我的 Fitnesse 测试之一中引用环境变量,其形式为

| check | Project Name | ${PROJECT_NAME} |

大多数时候这工作正常,但有时环境变量的值是 (巧合的是)采用 WikiWord 格式,这会搞砸测试,因为 Fitnesse 将其视为页面链接:

| check | Project Name | MyTestProject[?] |

我尝试使用 !- -! 语法来抑制格式,但这会阻止变量正在解决。有没有办法在变量解析后抑制 wikiword 格式?

I am using the ${varname} syntax to reference an environment variable in one of my Fitnesse tests, in the form of

| check | Project Name | ${PROJECT_NAME} |

Most of the time this works fine, but occasionally the value of the environment variable is (coincidentally) in WikiWord format, which screws up the test because Fitnesse is treating it as a page link:

| check | Project Name | MyTestProject[?] |

I've tried using the !- -! syntax to suppress the formatting, but that prevents the variable from being resolved. Is there a way to suppress the wikiword formatting after the variable is resolved?

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

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

发布评论

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

评论(1

苍风燃霜 2024-10-13 14:22:31

您可以通过将 ! 添加到第一行的开头来使用文字表:

!|check|project name|${PROJECT_NAME}|

You can use literal tables by adding ! to the beginning of the first row:

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