从控制台应用程序运行编码的UI测试

我正在努力从控制台应用程序运行编码的ui测试。

我做了以下(如互联网所说)

2个项目的解决方案:ColorChanger.app / ColorChanger.test

控制台应用程序具有对测试项目和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/