简体   繁体   English

在Visual Studio 2010 Ultimate中自动化测试(使用TFS)

[英]Automate tests in Visual Studio 2010 Ultimate (using TFS)

I have a series of web tests that I have created with Visual Studio 2010 Ultimate, each of them run all fine, but now I need those test to run once a week automatically. 我有一系列使用Visual Studio 2010 Ultimate创建的Web测试,每个测试运行都很好,但是现在我需要这些测试每周自动运行一次。

I have read that "there's a possible way to do it via TFS" but I can't load even one test on TFS... 我读过“有一种可能的方法可以通过TFS来做到这一点”,但是我什至无法在TFS上加载一个测试...

I'm all ears if anyone can share a link of "hey this is how it should be done" 如果有人可以共享“嘿,这是应该怎么做”的链接,我真是耳目一新。

Thanks in advance! 提前致谢!

If you have TFS available (you weren't clear), then you can use scheduling to set up these sorts of automated runs. 如果您有可用的TFS(尚不清楚),则可以使用计划来设置这些自动运行。 There's a good article on MSDN showing how to do this . 在MSDN上有一篇很好的文章介绍了如何做到这一点

If you don't have TFS then you can run your tests via the command line ( MSDN article ) with a scheduler job. 如果您没有TFS,则可以通过带有调度程序作业的命令行( MSDN文章 )运行测试。

A much better solution, though, would be to use something like Hudson/Jenkins, Team City, or some other free/cheap build server. 但是,更好的解决方案是使用Hudson / Jenkins,Team City或其他一些免费/廉价的构建服务器。 The implementation (How-To) for each of those varies, but scads of folks use Team City and it's fairly simple to set up. 每个项目的实现方式(操作方法)各不相同,但是大多数人都使用Team City,并且设置起来非常简单。 (Free for small teams, too.) (小团队也免费。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM