VS2012编码的UI测试:无法运行。参考,需要路径?

时间:2022-10-18 20:53:51

I'm trying to run a Coded UI Test from within VS2012.

我正在尝试从VS2012内部运行Coded UI测试。

I've built a Coded UI Test Project.

我已经构建了一个Coded UI测试项目。

I can run it from MSTest at the command line

我可以在命令行从MSTest运行它

mstest /testcontainer:C:\projects\Chilli\bin\Debug\Test.Desktop.UI.dll

When I try to run from within VS2012 I'm getting "Could not load file or assembly '...Playback.dll'"

当我尝试从VS2012内部运行时,我收到“无法加载文件或程序集”... Playback.dll'“

...as soon as I call Playback.Initialize()

...一旦我调用Playback.Initialize()

I'm running VS2012 as administrator. My path includes C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE, \PublicAssemblies and \PrivateAssemblies and these are also included in the project Reference Paths.

我以管理员身份运行VS2012。我的路径包括C:\ Program Files(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE,\ PublicAssemblies和\ PrivateAssemblies,这些也包含在项目参考路径中。

Is there anywhere else I can specify where to look for DLLs? Thanks! nick

有没有其他地方我可以指定在哪里寻找DLL?谢谢!缺口

1 个解决方案

#1


1  

Try setx by cmd so u can set your path, more info here

尝试使用cmd设置setx,这样你就可以在这里设置路径,更多信息

https://serverfault.com/questions/465924/windows-how-do-i-add-a-program-to-the-systems-path-environmental-variable-from

https://serverfault.com/questions/465924/windows-how-do-i-add-a-program-to-the-systems-path-environmental-variable-from

#1


1  

Try setx by cmd so u can set your path, more info here

尝试使用cmd设置setx,这样你就可以在这里设置路径,更多信息

https://serverfault.com/questions/465924/windows-how-do-i-add-a-program-to-the-systems-path-environmental-variable-from

https://serverfault.com/questions/465924/windows-how-do-i-add-a-program-to-the-systems-path-environmental-variable-from