在 TFS 构建中运行 WatiN 测试
我创建了一套 WatiN 测试并将它们添加到源代码管理中。我的团队是使用 TFS 的新手,我正在研究如何让测试作为 TFS 构建的一部分运行,该构建将构建所有相关项目、运行我们的单元测试套件并运行使用 WatiN 创建的自动化 UI 测试。
目前,当构建与自动化 UI 测试分开运行时,之前详细说明的所有内容都会完成。
编辑构建定义时,在流程部分中,我使用 [WatiN 测试存储在源代码管理中] 中的设置将自动化测试设置为运行匹配的 **\test.dll。然而,测试尚未进行。
一直在寻找有关设置它们的最佳方法的信息,但发现很难找到我做错了什么。
如果有人可以就我在构建过程中运行这些测试所缺少的内容提供任何建议,将不胜感激。
I have created a suite of WatiN tests and added them into Source Control. My team are new to using TFS and I am looking at how I can get the tests to run as part of a TFS Build that will build all the projects concerned, run our suite of Unit Tests and ran the Automated UI Tests created using WatiN.
At the moment, everything detailed previously gets done when the build is ran apart from the Automated UI Tests.
When editing the Build Definition, in the process section I set the Automated Tests to run matching **\test.dll using setting from [where the WatiN tests are stored in Source Control]. However, the tests have not being run.
Have been looking around for information on the best way to set them up and finding it hard to find what I am doing wrong.
If anyone can pass on any advice on what I am missing to get these tests running as part of the build would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,您不必编写代码。您所需要做的就是在交互模式下运行 TFS,而不是在服务模式下运行,因为服务不允许打开窗口,但如果没有窗口,watin 就无法工作。您将在选项卡构建配置中找到设置。
No, you do not have to write code. All you need to do is run your TFS in interactive mode, not in service mode because services are not allowed to open windows but watin doesn't work without a window. You'll find the settings on tab build configuration.
所选测试在
将使用 MSTest 执行,这与 watin 不兼容。
您可以尝试更改 TFS 用于调用 watin 运行时而不是 MSTest 的构建模板,但您必须创建代码。
The selected tests in
are going to be executed with MSTest, which is not compatible with watin.
You can try to change the build template TFS uses to call your watin runtime instead of MSTest, but you'll have to create code.