“.dll不是有效的测试扩展名”从命令提示符自动编码ui测试时 [英] ".dll is not the valid test extension" when automate the coded ui test from command prompt
问题描述
大家好,
我的要求是在机器(WindowsServer2012-R2操作系统)中自动执行CodedUItest(使用visual studio 2017开发),我不应该这样做下载Visual Studio,我不应该使用网络连接。所以,我从我本地机器(windows7操作系统)中的https://www.visualstudio.com/downloads/下载了visual studio Test Agent,并从C中复制了文件: \Program Files(x86)\ Microsoft Visual Studio \\\2017 \ TestAgent to my test machine。
使用命令提示符(MSTest.exe)执行编码的UITest案例在我的本地计算机上工作正常,
而相同的批处理文件在我的测试机器中执行时显示错误.dll文件不是有效的测试扩展名
请帮我解决这个问题。非常感谢您的指导。
谢谢
我的尝试:
Hi All,
My requriement is to automate the CodedUItest (developed by using visual studio 2017)in the machine(WindowsServer2012-R2 OS) where I should not download the Visual Studio and I should not use the network connection.So, I downloaded the visual studio Test Agent from https://www.visualstudio.com/downloads/ in my local machine( windows7 OS) and copied the files from C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent to my test machine.
Coded UITest case execution using command prompt(MSTest.exe) is working fine in my local machine,
whereas same batch file is showing error ".dll file is not the valid test extension" when executed in my test machine
Please help me to fix this. Your direction is most appreciated.
Thanks
What I have tried:
I downloaded the visual studio Test Agent from https://www.visualstudio.com/downloads/ in my local machine( windows7 OS) and copied the files from C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent to my test machine and tried to automate the coded ui test from command prompt but ended with the ".dll is not valid test extension".
推荐答案
我找到的解决方案是去RegEdit。
转到
The solution I have found is to go to RegEdit.
go to
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\<YOUR VERSION>\EnterpriseTools\QualityTools\TestTypes\<FIRST ENTRY>\Extensions
请参阅我的屏幕截图。
制作su除了 .exe 之外,还包括re .dll 。
See my screenshot.
Make sure .dll is included in addition to .exe.
这篇关于“.dll不是有效的测试扩展名”从命令提示符自动编码ui测试时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!