共用方式為


Compatibility of Test Settings with Visual Studio 2010

This version includes some changes for test settings (.testsettings files) that were introduced in Visual Studio 2010. These changes are minor for Microsoft Test Manager and for web performance and load test types in Visual Studio Enterprise. However, for unit test and coded UI test types, the changes are more significant.

What’s changed in test settings?

The following table describes the compatibility differences and issues applicable to .testsettings files between Visual Studio 2010 and this version.

Test Settings Compatibility

Test type

Compatibility

Unit test, Coded UI tests

In this version, test settings are not included in your solution when a unit test project or coded UI test project is added. This is a result of the enhancements in the unit test framework to improve extensibility, resilience, and performance. However, you can open an existing Visual Studio 2010 test project with a .testsettings file and it will continue to run.

Additionally, you can add a .testsettings file to your solution if you need to collect specific data from a data and diagnostic adapter or run your test with test controllers; however this is not recommended unless necessary because you loose the performance and resilience in the new unit test framework. For more information, see 如何:從 Microsoft Visual Studio 新增測試設定檔案.

If you do open a Visual Studio 2010 test project with a .testsettings file, or determine that you must add a .testsettings file to your solution, the procedures for selecting the active .testsettings file and editing have changed. For more information about these changes, see 如何:從 Microsoft Visual Studio 編輯測試設定檔案 and To set the active test settings in a unit test project or coded UI test project.

For more information about unit test and coded UI test compatibility with Visual Studio 2010, see 升級 Visual Studio 2010 的單元測試 and 升級 Visual Studio 2010 的自動程式碼 UI 測試.

Web performance and load tests

When you add a Web Performance and Load test project to your solution, the solution will still include a .testsettings file; however, the procedures for selecting the active .testsettings file and editing have changed. For more information, see 如何:從 Microsoft Visual Studio 編輯測試設定檔案 and To set the active test settings in a web performance a load test project.

For more information about web performance and load test compatibility with Visual Studio 2010, see 升級 Visual Studio 2010 的 Web 效能和負載測試.

Manual and automated (Microsoft Test Manager)

Tests settings for Microsoft Test Manager (MTM) remain independent from the test settings used for Visual Studio. As with Visual Studio 2010, MTM includes the ability to create and edit test settings for both manual test settings and automated test settings. For more information, see 在手動測試中收集更多診斷資料 and 使用 Microsoft Test Manager 建立自動化系統測試的測試設定.

The test settings for MTM remains mostly unchanged from Visual Studio 2010. However, the network emulation diagnostic data adapter has been removed.

請參閱

其他資源

從舊版 Visual Studio 升級測試