Forum Discussion

mp's avatar
mp
Occasional Contributor
14 years ago

IE Process not visible in Object Browser

hi there,



we're evaluating testcomplete with version 8.5.



when running a keyword test remotely, sometimes it will happen that an IE8 iexplore process will remain running, even though i am doing a terminate on all iexplore processes at the end of the test.



the test also has a first statement to terminate all pre-existing iexplore processes before anything else and the next time it starts it throws an exception in the log:



"Cannot terminate the selected process.
It is a system process, and it cannot be terminated. It is a system process, and it
cannot be terminated"



Testcomplete is opening these IE Windows in the keyword test, so the iexplore processes are run using the same (non-admin) user as testcomplete runs under. I can sometimes even see the IE8 window still open and i see the iexplore process in taskmanager, but i don't see the iexplore process in the object browser, even with no filters on, and showing also system and all user's processes. also i'm not able to select any part of the open IE window with object spy. it simply lacks permissions on it, even though it's running under the same user and the window has been created by a previous run of testcomplete under the same user account.



any ideas ? i wouldn't want to run testcomplete as administrator, don't see why this should be required for my purposes. haven't tried with uac turned off yet, though.



thanks a lot for any input on this

best regards

martin

4 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi, Martin


    Please clarify the following points:


    1. Does the problem occur only for keyword tests?

    To check this, please convert your test to a script (for this purpose, select Convert to script from the Keyword Test editor's context menu) and run the ensuing script. Does it provoke the same exception?


    2. Also, I've noticed from your screenshot that you are trying to terminate the System Idle Process (which is the system process). I recommend that you replace the System Idle Process with the iexplore process and rerun the test.



    3. If step 2 does not help, please describe how you terminate the iexplore process more specifically (how you do this, what objects are used, and so on). It also can help, if you post here the project with your test, so we can exactly see what is going wrong.


    Thanks.

  • mp's avatar
    mp
    Occasional Contributor
    Hi Irina,



    thanks a lot for your input.



    yes, terminating the System Idle Process is bound to produce such an error message, that could not have worked. I'm not sure if I this always applied since I've setup the test several times, I would have thought it was correct at least before I made the screenshot. I've fixed this now. However, I haven't managed to reproduce the problem since so i can't tell if the original problem will reappear. But even though the statement was wrong I should have seen the iexplore process in object browser, which I definitely couldn't. I will keep on running the tests and let you know in case it reappears.



    Thanks anyway,

    best regards

    martin
  • mp's avatar
    mp
    Occasional Contributor

    Hi Irina,



    unfortunately, this issue has been occuring every now and then, still not reproducible though. i have here an example, where an application called EventoNG, that was definitely started by testcomplete, suddenly cannot be "seen" anymore by testcomplete, neither in the object browser, nor with the object spy functionailty. even though windows taskmanager clearly shows the process is running and even has the same user permissions as testomplete itself, it doesn't even show up when activating "show system processes". in my opinion this screenshot is very clearly showing, that testcomplete sees a different set ob processes than windows itself. how can this be ? do you recall any other cases where this behaviour was solved ?



    we're running the latest and greatest testcomplete version.



    i would rather not like to convert my keyword tests to scripts, since this problem cannot be reproduced willfully, and we would like to keep them as keyword tests, except if there's no other way to solve this.





    do i need to open a new ticket under our customer's account, since this forum log is rather old ?



    thank you and best regards

    martin polak
  • Hi,



    We've received the support case regarding this problem from you. We'll continue working on that case.