Visual Studio编码的UI测试将无法运行-启动对象为空 [英] Visual Studio Coded UI test won't run - startup object empty

查看:49
本文介绍了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.)

这篇关于Visual Studio编码的UI测试将无法运行-启动对象为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆