Hi everybody,
I want to synchronize my TestCases with my TestSuites with TCM.exe.
I've read on this side that you can set the Area and Iteration Path by setting the following attributes:
[CssProjectStructure("vstfs:///Classification/Node/<guid>")]
[CssIteration("vstfs:///Classification/Node/<guid>")]
This is what I ended up with:
private const string strTest_GUID = "vstfs:///Classification/Node/36038e36-3df3-48c7-80fd-9260d020ca32"; private const string strTest_Iteration = "vstfs:///Classification/Node/fd659228-03db-4b2c-af4c-3a360d5bab1b"; [Timeout(10000)] [TestCategory("Test")] [CssProjectStructure(strTest_GUID)] [CssIteration(strTest_Iteration)] [Owner("Max")] [TestMethod] public void Test_Methode_1() { Assert.IsTrue(false, "Failure!"); }
Afterwards I tried to synchronize this methode with the following TCM command:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE>TCM.exe testcase /import /storage:"C:\tfs\Application\Bin\TestAssembly.dll" /syncsuite:1234 /category:"Test"
The result is, that the Area Path was set right but the Iteration Path has a wrong value. There is a tree structure in the Iteration Path like: Root -> Node -> Subnode. The GUID from above is the Subnode GUID, but TCM sets the Iteration Path to Root. Is there anything I can do about it or is it a common bug?
Regards
Johannes