1. Enable mstestshim.exe for 64 bit test binaries
c:/TestAutomation>MsTest/CorFlags.exe /32bit- /force mstest/MSTestShim.exe
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version
2.0.50727.42
Copyright (c) Microsoft Corporation.
All rights reserved.
c:/TestAutomation>
2. Run
the test cases using mstestshim.exe
Open command
prompt to c:/testautomation and run the following command
C:/TestAutomation>MsTest/MSTestShim.exe /testcontainer:c:/testautomation/Microsoft.AdCenter.Test.RnR.AdpredictTestCases.dll /test:AdPredict_P0_Multi_Model_4_Partition_B18 /noisolation
This will run cases named like AdPredict_P0_Multi_Model_4_Partition_B18*
If you want to run all cases in Microsoft.AdCenter.Test.RnR.AdpredictTestCases.dll, just run below command:
C:/TestAutomation>MsTest/MSTestShim.exe /testcontainer:c:/testautomation/Microsoft.AdCenter.Test.RnR.AdpredictTestCases.dll /test:* /noisolation
3. After each run, you will get a detailed .trx file for the test report.
本文档介绍如何通过使用MSTestShim.exe来运行64位测试二进制文件的方法。首先,需要启用MSTestShim.exe进行64位测试;其次,通过指定命令行参数来运行特定的测试用例或全部测试用例;最后,每次运行后都会生成详细的测试报告文件(.trx)。
475

被折叠的 条评论
为什么被折叠?



