Forum Discussion

egiacomi's avatar
egiacomi
Contributor
6 years ago
Solved

Desktop application testing on virtual machine

Hi,

I have a project on TestComplete that tests a Desktop Application . 

If I run the project on virtual machine i have some problem about object recognition instead if i run the project on a physical pc I haven't any problem .

The virtual machine has the same resolution of th physical pc .

which could be the causes?

 

Emanuele

  • Seems like a networking issue with our public gateway. No fault of ReadyAPI.

7 Replies

  • Different operating system?  Different DPI setting? Any number ofthings could change that.

    • egiacomi's avatar
      egiacomi
      Contributor

      I have the same operating system (win10) and the same resolution(fullHD).

      Can videoboard settings complicate the object recognition ? like antialias,overposition ..

    • egiacomi's avatar
      egiacomi
      Contributor

      Hi TanyaYatskovska ,

      I solve partially  the issue, the vm has an hardware less powerful in front a physical pc, after some tests i try to increment the delay between events to 3000 ms and this change solves more or less 80% of errors .

      For the other errors at the moment I haven't a solution , an example is this :

       

      P.S.

      the VM has 4 CPU and 8 GB of ram . 

      Thanks for the support

      Emanuele

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        That would do it.  So, the object recognition errors are due to timing, where the application isn't displaying the forms as rapidly as you expect it to.  

        Couple of things you can do to correct... you found one.  The Auto-Wait timeout in Tools | Options will help with that. 

        You can also write into your code judicious places where you use a WaitChild or WaitAliasChild call to wait for an object to show before proceeding. 

         

        But I think, generally, you're on the right track here.