Forum Discussion

nakshatra's avatar
nakshatra
Contributor
6 years ago

Leave site pop up is getting displayed if I use stop test item on error.

Hi, I am trying to execute 10 test cases and I am using  approach 1 which was mentioned  in below link. https://support.smartbear.com/testcomplete/docs/testing-with/running/control-test-flow/stop...
  • tristaanogre's avatar
    tristaanogre
    6 years ago

    For help with your code, it would be useful for you to share it here.

    However, here is the method we use for our own "tear down".  

     

    function closeIEInstance() {
        var counter = 0;
        var browser;
        browser = Sys.WaitBrowser('iexplore', 1000);
        while((browser.Exists) && (counter < 60)){
            counter++;
            browser.Terminate();
            browser = Sys.WaitBrowser('iexplore', 1000);
        }  
    }