How to run web tests during Team build (for TFS 2010)?

I have a number of solutions in TFS 2010 and am happy to create them using Team Build, including running unit tests defined in assemblies.

For one solution, I added some web tests (defined in files with the extension ".webtest"). I can successfully run these web tests locally from Visual Studio 2010, but I cannot get them to run during Team build.

In the definition of Team Build, I tried to change the value of "Specification of the test build file" to " *test*.dll;*.webtest", but this does not allow to receive web tests. I see that the .webtest files were copied in the "Binaries \ Debug" directory (the same as in the unit tests), so I'm a little puzzled why they were not found.

What am I missing? How to get .webtest files to work in Team Build?

thank

+5
source share
4 answers

In the FileSpec filter, include only * .webtest (removal of test.dll;). For Web Performance Tests, the WebTest and LoadTest files are test containers. This is unlike Unit Tests, which have a DLL as a container.

+2
source

I have not tried this yet, but noticed that the web tests appear in the Test Lists window. Try creating a test list, including web tests, and then specify to run a test list, not just test builds.

0
source

, , , :
enter image description here


:
Build "Edit build definition". "" "2.Basic" > " ", : enter image description here
"" . , , "DefaultTemplate".

-1

We use Selenium for our ui testing. We use a custom assembly template template that deploys application and database changes and then uses MSTest.exe to run the ui tests contained in published assemblies.

This requires the build agent to run interactively on the console and remain included in the system, so we must use VNC to access the build server, not rdp.

I hope for this help ....

-1
source

All Articles