TestAgent - How to run CUITe based on category

Oct 21, 2013 at 10:06 AM
Edited Oct 22, 2013 at 11:50 AM
Hi

I want to run script using MSTest.exe,
below is the command i m running successfully, but when i want to run based on "category" then it show "no Tests to execute"
 [TestCategory("ControlTest") ,TestMethod]
in Batch file,
cd\
C:
@echo off 
if exist C:\Users\<Username>\Documents\Visual Studio 2012\Projects\Project_1\TestResults\testResults.trx
(
    del  "C:\Users\<Username>\Documents\Visual Studio 2012\Projects\Project_1\TestResults\testResults.trx"
)

cd C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\
MSTest /testcontainer:"C:\Users\<Username>\Documents\Visual Studio 2012\Projects\Project_1\Project_1\bin\Debug\Project_1.dll"  /resultsfile:"C:\Users\<Username>\Documents\Visual Studio 2012\Projects\Project_1\TestResults\testResults.trx" /category:ControlTest
pause
Any idea, how to run script which testcategory is "ControlTest"
Thanks
Neeraj
Oct 22, 2013 at 12:14 PM
Hi All,

Any help ?


Thanks
Neeraj