0

I'm trying to run a test case programatically using the internal Microsoft.TeamFoundation.TestManagement.Client methods but I found that almost all the methods are internal, so I cannot use them.

Do you have an idean how can I use these class/methods? Of couse I'm referencing to these dll's in my project and I need to use them.

I attached two images of the reflection of the dll.

alt text alt text

Thank you for your help

Sebastian

Sebastian Pederiva
  • 381
  • 2
  • 4
  • 16
  • see this question and answers http://stackoverflow.com/questions/1259222/how-to-access-internal-class-using-reflection –  Jan 12 '11 at 18:32

1 Answers1

0

Probably not what you want to hear, but:
Since the methods are internal, they are not supposed to be used. Even when using reflection to call them is a risk as MS can change the API of these methods at any time (hotfix, service pack, vNext). So anything that you build on top of these undocumented API's is also unsupported (you are totally on your own in case anything goes wrong!)

AFAIK, the only tool supported to actualy run Test Cases is the Test Runner from MTM itself.

Rudi
  • 3,124
  • 26
  • 35
  • So tests can only be run through the MTM GUI? Is there no way to start a test run on a schedule? – Ciaran Gallagher Aug 02 '12 at 14:01
  • You can use build triggers see http://msdn.microsoft.com/en-us/library/ms182465.aspx And after you create the Build definition you can run a scheduled build. – Zee Jul 15 '13 at 10:09