How to: Export Test Results

06/26/2007

2 minutes to read

In this article

Every time that you run one or more tests, the results of the test run are automatically saved to disk in a file with the extension .trx. This makes it possible to retrieve test data for any tests you have run in the past. For information about retrieving test data, see How to: Import Test Results.

You can also explicitly store the results of a test run by creating another .trx file with a name that you have chosen; this is known as exporting. You can also specify the folder in which to store it. Specifying a name and a folder makes it easier to find and reuse a test run that is of particular value to you.

Exporting test results does not affect whether or how Visual Studio automatically saves test results. When you export a test run as described here, you create an additional copy of the test results in a file that you designate.