How to read xml attachment from TFS test case to Test method?


We have test cases in TFS. I would like to pass test parameters in xml file to each test cases.So for that we have an 'attachment' option in each and every test case in TFS. Now how to read that xml file into our test method and make each test case automated in MTM(Microsoft test manager). Is this possible?


Unfortunately, it is not supported to get parameter values from workitem attachments directly in MTM.

The attachment in TFS test case could be reached using an url: http://SERVERNAME:8080/tfs/MyCollection/_apis/wit/attachments/e14b962c-b8bc-4e3e-b4f8-398a89c08522. The e14b962c-b8bc-4e3e-b4f8-398a89c08522 is the attachment GUID. But When this below, it does not support to do so.


Here is an user voice that you could vote about your request: <a href="https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/18643267-get-test-parameter-value-from-test-case-attachment" rel="nofollow">https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/18643267-get-test-parameter-value-from-test-case-attachment</a>


  • Missing vcxproj.filters files in projects converted from VS 2010 to VS 2012
  • Git-Tf Moving parts of a large Tfs Project
  • OpsHub TFS to VSOnline Migration Utility - Will WorkItem # not stay the same?
  • How do I implement the TensorFrames Spark package on Data Science Experience?
  • Publish a bug report to Visual Studio Online anonymously
  • Old tokens stopped working after updating Owin from 3.0.0 to 3.0.1
  • How to set Parameter in WorkItem to be reached within BPMN Process in jbpm-WorkBench
  • Cannot connect Teamcity to Team Foundation Service / TFSPreview.com - Error “You must update your cl
  • Outlook email subject only updating after loosing focus
  • Execute SQL script after SSIS build or check-in
  • Accessing KieSession from jbpm6 WorkItemHandler
  • TFS 2017 vNext Build Get workspace with powershell
  • Publishing test results through command line test runner in VSTS
  • Cannot open files with FileOpener2, but not getting an error in Android
  • How to download attachment from gmail in C# using IMAP?
  • What is the recommended way for sending personalized images in html emails?
  • TFS Builds: Running the builds as administrator
  • TFS edit build log using custom activity
  • Serverless Framework Dynamo DB Table Resource Definition with Sort Key
  • Return null in boolean to checkbox state converter in XAML
  • Azure table query partial partitionkey guid match
  • SIP API media codecs
  • powershell Get-Counter -ComputerName parameter on Windows 7
  • Xamarin MonoAndroid Azure mobile service InsertAsync
  • Does Apportable support to build library binary (.a/.so)?
  • Private IP address in reserved subnet range
  • How To Customize ASP.NET Chart Databound To SqlDataSource
  • how to avoid repetitive constructor in children
  • Unable to decode certificate at client new X509Certificate2()
  • Should I or shouldn't I use the CachingConnectionFactory with hornetq 2.4.1
  • Saving Changes After In-App Purchase Has Been Purchased
  • Needing to do .toArray() to get output of mongodb .find() on key name not value
  • How to install a .deb file on a jailbroken iphone programmatically?
  • Join two tables and save into third-sql
  • Symfony2: How to get request parameter
  • Convert array of 8 bytes to signed long in C++
  • ORA-29908: missing primary invocation for ancillary operator
  • Understanding cpu registers
  • Recursive/Hierarchical Query Using Postgres
  • Running Map reduces the dimensions of the matrices