开发者

Running WatiN Tests in TFS Build

开发者 https://www.devze.com 2023-04-13 07:24 出处:网络
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

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 edi开发者_如何学运维ting 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.


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.


The selected tests in

matching **\test.dll using setting from [where the WatiN tests are stored in Source Control]

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.

0

精彩评论

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

关注公众号