locked
How can I pull the ScreenCapture.xesc video from TFS? RRS feed

  • Question

  • I have a test that runs and creates a video recording. The video recording is an attachment to the test result. 

    Is it possible for me to automate pulling that video down so that I can store it on a shared location? Is there some TFS API I can use to automate this?

    Thanks,
    Brandon

    Thursday, September 20, 2012 6:49 PM

Answers

  • Hi Brandon,

    For your issue, I think you need to go through the attachments of the test result, then copy the .xesc file to a shared folder you would like. See:

    ITestCaseResultCollection tcResults = testRun.QueryResults();
    
    foreach (ITestCaseResult tcResult in tcResults)
    
    {
    
      IAttachmentCollection tcAtts = tcResult.Attachments;
    
      foreach (ITestAttachment tcAtt in tcAtts)
    
      {
    
        //do something you would like to
    
      }
    
    }
    
    Thanks.

    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us

    Monday, September 24, 2012 5:39 AM
    Moderator