FitNesse:如何为所有测试/套件设置 .NET?
我尝试将 Fitnesse 与 .NET 结合使用。因此,我在测试页面上进行了此设置:
!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {%m -a ..\Orders.Tests\bin\Debug\Orders.Tests.config -r fitSharp.Slim.Service.Runner,slim\fitsharp.dll %p}
!define TEST_RUNNER {slim\Runner.exe}
!path ..\Orders.Tests\bin\Debug\Orders.Tests.dll
|import|
|Tests.Orders.Fit|
如何使其能够从单个位置使用?我尝试在 PageHeader、套件的 SetUp 和 !include 页面中定义它,但在所有情况下,当我运行测试时,它只是挂起。如果包含直接在测试页上,则运行正常。
I try to use Fitnesse with .NET. So, I have this setup on my test pages:
!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {%m -a ..\Orders.Tests\bin\Debug\Orders.Tests.config -r fitSharp.Slim.Service.Runner,slim\fitsharp.dll %p}
!define TEST_RUNNER {slim\Runner.exe}
!path ..\Orders.Tests\bin\Debug\Orders.Tests.dll
|import|
|Tests.Orders.Fit|
How do I make this to be used from single location? I tried to define this in PageHeader, suite's SetUp, and !include page, but in all cases, when I run test, it just hangs. If includes are directly on the test page, it runs fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
所有!定义和!路径都可以位于测试页面的父页面上。 !defines 和 !paths 继承到所有子页面中。
|导入|可以进入设置页面。设置页面是测试页面的兄弟、叔叔或[伟大*]叔叔。
因此,给定这样的页面结构:
您可以将 !path 和 !define 语句放入 ProjectPage 中,然后将 |import| 放入其中。进入设置。
All the !defines and the !paths can go on a parent page of the test pages. !defines and !paths are inherited into all child pages.
The |import| can go on a SetUp page. SetUp pages are brothers, uncles, or [great*]uncles of the test pages.
So given a page structure like this:
You can put the !path and !define statement into ProjectPage and the |import| into SetUp.
好吧,发现我可以将所有内容都放在根页面上...除了导入之外,导入从那里不起作用。
以及|导入|从套件设置页面进行操作。实际上所有设置都有效。不知道出了什么问题,我想我尝试将其放入套件设置中......
Well, found that I can put everything on the root page... except import which do not work from there.
And |import| works from the Suite SetUp page. Actually all of the settings work. Don't know what was wrong, I think I tried to put it to the Suite SetUp...