1.确认环境变量和MStest 或者VStest的安装路径一致

Selenium+C#+vs+MStest\Vstest 如何使用命令行运行ordertest

Selenium+C#+vs+MStest\Vstest 如何使用命令行运行ordertestSelenium+C#+vs+MStest\Vstest 如何使用命令行运行ordertest

2.用VStest的命令行运行

先cd到ordertest的路径,然后运行以下命令,结果文件会生成到相同路径
 "%VS140COMNTOOLS%..\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "login.orderedtest" /logger:trx

Selenium+C#+vs+MStest\Vstest 如何使用命令行运行ordertest

Selenium+C#+vs+MStest\Vstest 如何使用命令行运行ordertest

3.用MStest的命令行运行

同样Cd到ordertest的路径,然后运行以下命令,结果文件会生成到相同路径

"%VS140COMNTOOLS%..\IDE\mstest.exe"/testcontainer:"login.orderedtest" /resultsfile:"login.trx" 

Selenium+C#+vs+MStest\Vstest 如何使用命令行运行ordertest

Selenium+C#+vs+MStest\Vstest 如何使用命令行运行ordertest

相关文章:

  • 2021-05-17
  • 2022-12-23
  • 2021-12-15
  • 2021-09-29
  • 2022-12-23
  • 2021-11-22
  • 2021-04-16
  • 2021-04-17
猜你喜欢
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2021-12-11
  • 2021-11-18
  • 2021-04-12
相关资源
相似解决方案