简体   繁体   中英

Functional tests in TFS 2010

We've got a range of applications written in different technologies (.net/php/java) for which we'd like to set up continuous integration.

All the source code is currently in SVN. There is already a few functional tests for web apps, using Hudson and Selenium.

I was asked to look at setting up TFS 2010 to run automated functional tests for .Net projects (web/winforms).

Could you please see my questions below:

  1. Is it possible to run functional tests using TFS? From what I understand, I could either use it jointly with Test Manager 2010 (not sure how this would work with Continuous integration), or use build scripts directly in TFS (using MSTest.exe as a command line tool)

  2. What is the best way to write functional tests for winform apps? Is it CodedUI tests?

  3. Is setting up TFS just for automated testing worth the effort (cost is not an issue, they just want the most efficient testing system)

  4. This will probably impact questions 1 and 3, but my team would like to keep all the code in SVN.. This argument alone looks to me like a good reason NOT to use TFS...

1) If you write your tests using MSTest, it will be a lot easier. If you use NUnit or something else, you can run it from the command line.

2) We use NUnitForms , a framework which extends NUnit. It's open source, really small, and you can do very cool things such as defining a handler method for when a modal dialog is shown. We use that to login automatically inside functional tests, for example. Not sure if you can do that kind of things with CodedUI.

3) If you are already using Hudson, it can run MSTest and NUnit projects. I would stick with it.

4) There is a project which lets you use SVN and TFS together, but as the previous answers suggest, I'd avoid TFS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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