locked
CloseOnPlaybackCleanup on ApplicationUnderTest is not working in VS2015 Enterprise, RRS feed

  • Question

  • after running below method still my WCF application closes. not sure why. where it worked well with BrowserWindow . can you pls guide me

    [TestMethod]
            [TestCategory(TestCategories.FunctionalGenesys)]
            public void ApplicationLaunch()
            {
                // Step 1: Launch

                ApplicationUnderTest aut = ApplicationUnderTest.Launch(@"C:\test.bat");

                aut.CloseOnPlaybackCleanup = false;
            }

    OS : Win 7 Enterprise Service Pack 1 

        
    • Moved by Dave PatrickMVP Wednesday, May 4, 2016 10:29 PM
    • Edited by AhmedMD Thursday, May 5, 2016 3:04 PM
    • Changed type Just Karl Friday, May 6, 2016 10:15 PM It's a question.
    Wednesday, May 4, 2016 8:35 PM

Answers

  • Ahmed, I found alternate solution on this by Launching the application manually or put it under windows startup/schedule so its open before you run your tests and this way after executing the tests CodedUI/MSTest will not close the application under test.

    Hope this helps ;)

    • Marked as answer by AhmedMD Tuesday, May 10, 2016 3:12 PM
    Thursday, May 5, 2016 4:08 PM

All replies

  • I'd try them over here.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Proposed as answer by Just Karl Friday, May 6, 2016 10:15 PM
    Wednesday, May 4, 2016 10:28 PM
  • Ahmed, I found alternate solution on this by Launching the application manually or put it under windows startup/schedule so its open before you run your tests and this way after executing the tests CodedUI/MSTest will not close the application under test.

    Hope this helps ;)

    • Marked as answer by AhmedMD Tuesday, May 10, 2016 3:12 PM
    Thursday, May 5, 2016 4:08 PM