首先需要配置确认环境变量中配置了mstest.exe 或者vstest.exe 的路径 

Selenium和c#做自动化时遇到的问题2: 设置Windows定时任务

Selenium和c#做自动化时遇到的问题2: 设置Windows定时任务


Selenium和c#做自动化时遇到的问题2: 设置Windows定时任务

bat 文件运行 

"%VS140COMNTOOLS%..\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "smoketest.orderedtest" /logger:trx

powershell 运行

$vsTools=$env:VS140COMNTOOLS
$vsIDE=$vsTools.replace("Tools","IDE")

& "$vsIDE`mstest.exe"  /testcontainer:"$assemblyLocation\regress.orderedtest" /resultsfile:$resultFile

设置windows 定时任务每天自动执行

Selenium和c#做自动化时遇到的问题2: 设置Windows定时任务Selenium和c#做自动化时遇到的问题2: 设置Windows定时任务

-noexit "& ""C:\TFS93\2.0\Main\Test\UI\Selenium\NextGen2017\NextGenUIAutomation\UIAuto.ps1"""


相关文章:

  • 2021-10-17
  • 2022-12-23
  • 2021-05-30
  • 2022-01-19
  • 2022-01-15
  • 2022-02-16
  • 2022-12-23
猜你喜欢
  • 2021-05-13
  • 2021-12-11
  • 2022-01-24
  • 2021-07-11
  • 2022-12-23
  • 2021-05-01
相关资源
相似解决方案