cancel
Showing results for 
Search instead for 
Did you mean: 

Desktop application testing on virtual machine

SOLVED
Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Desktop application testing on virtual machine

You can bump that timeout as high as you need to.  It's a timeout so if the object returns before the time is up, it will stop waiting.  

Thanks for the response.  Please mark a reply on this thread as a solution if we were able to help you.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
7 REPLIES 7
Community Hero

Re: Desktop application testing on virtual machine

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


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Highlighted
Contributor

Re: Desktop application testing on virtual machine

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

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

Community Manager

Re: Desktop application testing on virtual machine

Hi @egiacomi,

What exact object recognition issues did you face? I will appreciate if you post here the screenshots illustrating the issue.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Contributor

Re: Desktop application testing on virtual machine

Hi @TanyaGorbunova ,

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 :
error.PNG

 

P.S.

the VM has 4 CPU and 8 GB of ram . 

Thanks for the support

Emanuele

Community Hero

Re: Desktop application testing on virtual machine

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.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Contributor

Re: Desktop application testing on virtual machine

I have already implemented in my project WaitChild call . 

I set auto-wait timeout to 10000 ms .

At the moment i haven't other ideas to the last errors  but I'll continue to do other tests hoping to find the solution .

 

Emanuele

Community Hero

Re: Desktop application testing on virtual machine

You can bump that timeout as high as you need to.  It's a timeout so if the object returns before the time is up, it will stop waiting.  

Thanks for the response.  Please mark a reply on this thread as a solution if we were able to help you.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors