从控制台应用程序运行编码的UI测试 [英] Run Coded UI test from console application
问题描述
我正在努力从控制台应用程序运行编码的ui测试.
I'm fighting running a coded ui test from a console application.
我做了以下事情(如互联网所说)
I did the following (As the internet says)
有2个项目的解决方案: ColorChanger.app/ ColorChanger.test
Solution with 2 Projects: ColorChanger.app / ColorChanger.test
控制台应用程序具有对测试项目和Microsoft.VisualStudio.TestTools.UITesting的引用
the console application has a reference to the test project and to Microsoft.VisualStudio.TestTools.UITesting
我想这样调用测试:
static void Main(string[] args)
{
Playback.Initialize();
var test = new CodedUITest1();
test.change();
Playback.Cleanup();
}
我收到错误消息"System.IO.FileNotFoundException
I get the error "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"}
对不起,它是德语的,但是我保证您会得到;)
I'm sorry it's in german but I'm shure you'll get it ;)
推荐答案
您还需要更新内部引用.试试这个 http://blogs.microsoft.co.il/shair/2010/07/15/running-codedui-test-from-another-application/
You need to update the internal references as well.. . Try this http://blogs.microsoft.co.il/shair/2010/07/15/running-codedui-test-from-another-application/
这篇关于从控制台应用程序运行编码的UI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!