Storing TFS-IDs in testcases to use TFS API

Experiences, small talk, and other automation gossip.
mytamhuyet
Posts: 1
Joined: Mon Jan 28, 2019 3:41 pm

Storing TFS-IDs in testcases to use TFS API

Post by mytamhuyet » Mon Jan 28, 2019 3:57 pm

Hi,

i developed some peace of coded to report the results of Ranorex Testsuite to a Teamfoundation Server. For this scenario I need a mapping between a testcase in Ranorex and the testcase in TFS (work item id).

I did this in an easy way and put the TFS-ID in the title of the Ranorex testcase. I.E. this looks like "10865_Testcasename". After the testsuites finishes I pass the ActivityStack to my TFSReporter class an do the reporting.
This is not very comfortable if you have a data driven testcase with n iterations.

Do you have any ideas how to solve this problem? Another idea was to store the TFS-ID in a parameter of a testcase/Iteration.