Slim (FitNesse) 中未识别 STA

发布于 2024-09-10 23:24:17 字数 845 浏览 4 评论 0原文

我为 Slim 编写了一个自定义表类,它允许用户编写用于运行自动化测试的命令。所有命令现在都可以工作,除了依赖于必须在 STA 线程中进行的特定调用的命令之外。我可以通过添加来解决这个问题 斯塔 到 suiteConfig 文件。但是,看起来将其添加到 Slim 配置中不起作用。这是我的代码:

!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {%m -c C:\..\Slim\slim.config.xml}
!define TEST_RUNNER {C:\..\Slim\Runner.exe}


<被测应用程序>
C:\..\Slim\fit.dll
C:\..\Slim\fitSharp.dll

<设置>
<公寓州>STA
fitSharp.Slim.Service.Runner

<文件排除>
<添加>^\.svn$

STA 模式在 Fit 中的效果与 Slim 中的效果是否有不同?命令模式或配置文件中有什么需要修改的吗?任何帮助将不胜感激!

山姆

I wrote a custom table class for Slim that lets users write commands that are used to run automated tests. All commands are now working, except for one that relies on a certain call that has to be made in an STA thread. I was able to solve this issue in Fit by adding
STA
to the suiteConfig file. However, it looks like adding that to the Slim config does not work. This is the code I have:


!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {%m -c C:\..\Slim\slim.config.xml}
!define TEST_RUNNER {C:\..\Slim\Runner.exe}


<suiteConfig>
<ApplicationUnderTest>
<AddAssembly>C:\..\Slim\fit.dll</AddAssembly>
<AddAssembly>C:\..\Slim\fitSharp.dll</AddAssembly>
</ApplicationUnderTest>
<Settings>
<ApartmentState>STA</ApartmentState>
<Runner>fitSharp.Slim.Service.Runner</Runner>
</Settings>
<FileExclusions>
<Add>^\.svn$</Add>
</FileExclusions>
</suiteConfig>

Would there be any reason why STA mode has a different effect in Fit than in Slim? Is there anything I need to modify in the command pattern or config file? Any help would be much appreciated!

Sam

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

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

发布评论

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

评论(1

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