Visual Studio编码的UI测试将无法运行-启动对象为空
创建了一个录制的编码用户界面测试-可以正常运行,但今天将无法运行。
Created a recorded Coded UI test - it worked fine but won't run today.
错误:无法直接启动具有类库输出类型的项目。为了调试该项目,请将可执行项目添加到引用该库的此解决方案中项目。将可执行项目设置为启动项目。
Error: "A project with an Output Type of Class Library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project."
Googled,并确保将此测试设置为启动项目。但是,当我转到项目的属性时,应用程序选项卡下的启动对象设置为(未设置)。
Googled and made sure this test is setup as startup project. However, when I go to the properties of the project, "Startup object" under Application tab is set to "(Not set)".
有人可以帮忙吗?谢谢!
Can someone please help? Thanks!
您需要使用 运行或 调试右键(右键单击)菜单,测试浏览器窗口或测试菜单中的 strong>命令。绿色的开始按钮和 Debug 菜单上的命令不会启动编码的UI测试。 (他们确实在Visual Studio 2010中启动了编码UI。)
You need to use the "Run" or "Debug" commands from the context (right click) menu, or from the Test Explorer window or from the Test menu. The green Start button and the commands on the Debug menu do not start Coded UI tests. (They did start Coded UI In Visual Studio 2010.)