none
CloseOnPlaybackCleanup on ApplicationUnderTest is not working in VS2015 Enterprise,

    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 

        
    Wednesday, May 04, 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 05, 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.

    Wednesday, May 04, 2016 10:28 PM
    Moderator
  • 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 05, 2016 4:08 PM