Forum Discussion

iamraj09's avatar
iamraj09
Contributor
9 years ago

How to keep the window active through out the operation.

Hello Everyone,

 

I have written scripts to measure the performance of a software which approximatley includes 70 test cases. It works fine when I run the test cases, but when I run them for the second time in randomly in few test cases the whole application window starts to flicker continuosly and it won't allow us to click on any button or proceed further.

 

Please let me know how to keep the window active throughout the operation using scripts. Thanks in advance.

 

Best Regards,

Guru.

4 Replies

  • scsvel's avatar
    scsvel
    Frequent Contributor

    Try to close and reopen the application before executing the whole set again. Sometimes application behave differently if the memory/CPU usage exceeds some limit.

    • iamraj09's avatar
      iamraj09
      Contributor

      Thank you for the response ....I did what you said ...but it is the same again ....and these test cases are working fine on the other version of the software...So it doesnt seem that it is a problem with CPU memory. So can you tell me how to keep the window active using scripts.?

      • scsvel's avatar
        scsvel
        Frequent Contributor
        Set shell = CreateObject("WScript.Shell")
        shell.AppActivate "title"

        You can activate app like this and activate before calling each reusable function.