Tuesday, February 7, 2012

MSTEST - How to get the ID of a test

Sometimes you will come across situations where you need to find the ID of a testcase.
A common scenario is if you see an errors like:
Error adding test case xxx to test run: There is no test with specified Id {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.
The easiest way to find the ID of a testcase is to use either of these options:
Option 1
  • Run the desired test
  • Open the trx file in xml editor to view the ID of the test
 Option 2
  • Create a test list in the test list  editor
  • Add the desired test to the test list
  • Open the vsmdi file in xml editor to view the ID of the added test
 Option 3
  • Create an Ordered test
  • Add the desired test to the Ordered test
  • Open the Ordered test in xml editor to view the ID of the added test

 

No comments:

Post a Comment