microsoft / WinAppDriver

Windows Application Driver
MIT License
3.67k stars 1.4k forks source link

Automated Tests take an excessively long time to run using Test Agent hosted on Virtual Machine #1633

Open cwk2 opened 2 years ago

cwk2 commented 2 years ago

I am using WinAppDriver for desktop app automation - when I debug tests locally they run very fast.

However, I am finding that the Test Agents take an age to run a test, with approx 10-20 seconds between button clicks and navigation inside the app.

I have tried giving more resources to my Test Agent VM, and in fact created a machine with 8 virtual cores and 30GB RAM, but the tests ran at exactly the same speed.

As a test I have tried making my laptop a Test Agent and sending the job to my machine, where it runs very quickly.

Can anybody make any recommendations here as to why the tests might run sub optimally on a headless VM and how this was got around?

anunay1 commented 2 years ago

Is it self hosted agent or microsoft hosted agent

cwk2 commented 2 years ago

Self hosted