Forum Discussion

srikanth2801's avatar
srikanth2801
Contributor
14 years ago

Regarding wait process error.

Hi,

this is srikanth.



p=sys.waitprocess("javaw",2000);



here it is sometimes showing the error like -- you are waiting for the process which is not existing" before 2000 .



in what situations we got this kind of error.

3 Replies


  • Hi,





    The javaw process can be absent from the system - your Java application may be hosted in the "java.exe" process instead. To check whether the process is present, press Ctrl-Alt-Del to launch Task Manager, switch to the Processes tab, and check whether the process is there.





    If the process is present, please follow the steps below:

    1. Reproduce the problem.

    2. Zip your entire project suite folder along with the logs of the failed test execution.

    3. Send us the archive.
  • Hi

    we are invoking the process through testedapps.run and then waiting for that process.

    after the testedapps statement, we are delaying the testcomplete for 2000 ms to get the process populated, and after that step we are waiting for the process and it is giving the error as above.



    help me out regarding this.

  • Hi,





    There is no need to wait for a process after using the Run method. If a tested application can be run by TestComplete, the script execution will not proceed until the application is started. However, if a tested application cannot be run due to some reasons (unavailability, setting the Launch property to false, for example), you need just to check whether the process is present. You can try using the approach described in the Example section of the TestedApp.Run help topic (that is, using the Exists property). If you still experience problems, please zip your entire project suite folder along with the logs of the failed test execution and send us the archive.