I stumbled upon this post because I am trying to automate some web tests.
You can run> mstest / TestContainer: some.webtest from the visual studio command line, of course, but if you click this in a batch file, then the default command line does not have visual studio tools.
You can search for mstest.exe, but this location may not be the same on the machine, so it is unreasonable for hard code in c: \
Rani Miller replied that God sent me (thanks!) - he offered %VS90COMNTOOLS%\..\IDE\MSTest.exe
But this will not work if you have VS 2010. Just replace 90 with 100. My batch file, which I can schedule as a task for nightly launch, looks like this:
SET SOURCEe=c:\myTestProjectFolder\ CD %SOURCE% "%VS100COMNTOOLS%..\IDE\mstest.exe" /TestContainer:some.webtest
Dave Kennedy Oct 14 '10 at 23:53 2010-10-14 23:53
source share