问题描述
所以我有一个编码的UI测试工作正常。我已经创建了一个批处理文件脚本,以便我可以在Windows任务调度程序中运行。它一直显示失败
我尝试过:
cd /
cdC:\Users\alish\source \repos\CodedUITestProject6 \CodedUITestProject6 \obj \Debug \ CodedUITestProject6.dll
@echo off
set max = .set count =。
echo开始测试执行
echo =======================
C: \Program Files(x86)\ Microsoft Visual Studio \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ CodedUITestProject6 \obj\Debug \ CodedUITestProject6.dll / test:CodedUITestMethod1
echo all done
@exit
So i have a coded UI test that works fine. I've create a batch file script so that i can run in windows task scheduler. It keeps showing "Failed"
What I have tried:
cd /
cd "C:\Users\alish\source\repos\CodedUITestProject6\CodedUITestProject6\obj\Debug\CodedUITestProject6.dll "
@echo off
set max=.set count=.
echo starting test execution
echo =======================
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\MSTest.exe" /testcontainer:C:\Users\alish\source\repos\CodedUITestProject6\CodedUITestProject6\obj\Debug\CodedUITestProject6.dll/test:CodedUITestMethod1
echo all done
@exit
推荐答案
这篇关于我的批处理文件脚本运行编码的UI测试不起作用!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!