How to: Attach a File while Running a Test
While you run a test using Test Runner, you have the option to attach files to the test, such as requirements for the application or log files that the application generates. The files can be attached to a test step.
The files can be useful as supporting material related to bugs to help isolate code defects. For more information, see How to: Submit a Bug using Test Runner.
Visual Studio Ultimate, Visual Studio Premium, Visual Studio Test Professional
To attach a document to a test using the Microsoft Test Runner
Choose Add attachment to step result on the toolbar.
Browse to the file that you want to attach and choose Open.
The document is attached to the test.