Sdílet prostřednictvím


Přechod z .testsettings na .runsettings

Konfigurační soubor testu můžete upgradovat z .testsettings na .runsettings pomocí nástroje SettingsMigrator, který se nainstaluje společně se sadou Visual Studio. V závislosti na umístění instalace sady Visual Studio najdete nástroj pro migraci nastavení v následující cestě:

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\TestPlatform\SettingsMigrator.exe

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\TestPlatform\SettingsMigrator.exe

Ve správném umístění adresáře můžete nástroj spustit ve formátu níže:

SettingsMigrator.exe <Full path to testsettings file to be migrated>
SettingsMigrator.exe <Full path to testsettings file to be migrated> <Full path to runsettings file to be created>

Příklady

SettingsMigrator.exe E:\MyTest\MyTestSettings.testsettings
SettingsMigrator.exe E:\MyTest\MyTestSettings.testsettings E:\MyTest\MyNewRunSettings.runsettings

Pokud si chcete přečíst další informace o tom, jak .testsettings možnosti převést na .runsettings najdete další podrobnosti implementace v opensourcovém úložišti testovací platformy na GitHubu.