Reputation: 1400
I have set up my Automation test cases in MTM using TFS.
When i build it, the Dlls are also created in the drop folder,
But when I run the test cases , i get the following error :
The test automation associated with the following test case could not be found: [994]. Run the test case again using a build that contains the binary with the test automation
Unable to reach to the solution, Please help.
Upvotes: 0
Views: 1685
Reputation: 1946
Sounds like you don't associate your test plan with a test build.
Check this SO article: Couldn't run my test using Microsoft Test Manager
You can also find a good explanation here: Set up your test plan to use your team build.
[Edit]
Basically, you should see the build in use in MTM then when run your Tests Cases:
[Additional information]
When getting this kind of error messages it is often very useful to activate logging for Test Controller:
Go to the test controller installation directory (C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE).
Open the controller configuration file (QTController.exe.config) and change the trace level to 4 and enable the trace listener as shown below:
<configuration> ..... <system.diagnostics> <switches> <!-- You must use integral values for "value". Use 0 for off, 1 for error, 2 for warn, 3 for info, and 4 for verbose. --> <add name="EqtTraceLevel" value="4" /> </switches> </system.diagnostics> ..... <appSettings> ..... <add key="CreateTraceListener" value="yes"/> </appSettings> </configuration>
After this the log file (Vsttcontroller.log) should get generated in the same installation directory.
Upvotes: 0
Reputation: 23434
You need to run tcm.exe import to keep your test cases in sync with your test artifacts in the dll's.
You are getting the error as the details stored in the Test Case automation tab does not match a method in the DLL specified.
Upvotes: 1
Reputation: 555
It seems like there has been a change in the name of test class or test method, latest build is created with the new changes and also associated to the MTM test plan, but the test case is not updated with the updated automated test, try re-associating test methods from your script to proper test cases present in MTM.
Upvotes: 0