Visual Studio Coded UI test won't run - startup object empty

ⅰ亾dé卋堺 提交于 2019-12-29 01:50:09

问题


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 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!


回答1:


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.)



来源:https://stackoverflow.com/questions/24499015/visual-studio-coded-ui-test-wont-run-startup-object-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!