我正在努力从控制台应用程序运行编码的 UI 测试。
我做了以下(如互联网所说)
包含 2 个项目的解决方案: ColorChanger.app/ ColorChanger.测试
控制台应用程序引用了测试项目和 Microsoft.VisualStudio.TestTools.UITesting
我想这样调用测试:
static void Main(string[] args)
{
Playback.Initialize();
var test = new CodedUITest1();
test.change();
Playback.Cleanup();
}
我收到错误“System.IO.FileNotFoundException
Die Datei oder Assembly \"Microsoft.VisualStudio.TestTools.UITest.Framework, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.":"Microsoft.VisualStudio.TestTools.UITest.Framework, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}
很抱歉,它是德语的,但我相信你会明白的 ;)
请您参考如下方法:
您还需要更新内部引用...。试试这个 http://blogs.microsoft.co.il/shair/2010/07/15/running-codedui-test-from-another-application/
