Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
438 views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...