从控制台应用程序运行编码的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/

最新更新