Locked Coded UI test developed on VS 2010 is not working on VS 2012

  • Tuesday, September 18, 2012 7:12 AM
     
     

    Hi MS,

    Could you please help me in this regard.

     I developed a coded UI test using VS 2010/Windows7/IE8. Upon moving the entire solution to another PC where VS 2012 /Window8/IE10 are installed I am not able to see the code running instead, it is throwing following messages.

    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


    Thanks you

All Replies

  • Tuesday, September 18, 2012 7:44 AM
     
     Answered

    Hi Uday,

    I think your trying to run codeduitest project pressing F5 (or clicking on run button in IDE) in VS 2012 which is not supporting.

    Insted of that right click on test method which you want to run and using "Run" command from the pane.

    or you can do the same thing from Test ->Windows -> TestExplorer

    Please find the url for more info.

    http://msdn.microsoft.com/en-us/library/ms182470.aspx

    Regards,

    Lakshmi.

  • Wednesday, October 24, 2012 6:24 AM
     
     

    @Lakshmi

    Thx, saved me plenty of time ;-)