WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Hitting the performance of the solution .

Open ritusenleo opened this issue 1 year ago • 4 comments

At the moment my solution have 9 scenarios. Each scenario have approx <=40 test cases. BDD framework is used .

To find an element by it's "Id" or "Name", it initially takes 4 sec and the problem gets worse when WinAppDriver runs continuously for more than 30 minutes or 1 hour.

While continuously running and clicking the button for every ~4 secs, the time taken to detect the button gets increased. After around 1 hour, to find the same button, it takes 20 secs and the time taken keeps increasing linearly with running time of WinAppDriver.

Even after continuous execution it is unable to get the element .

I want to get rid of this . Please help. Its urgent at the moment.

ritusenleo avatar Feb 01 '24 11:02 ritusenleo

Starting and stopping winappdriver server after every test case should help if you are not doing it already.

anunay1 avatar Feb 01 '24 16:02 anunay1

Actually before starting of one scenario, application and winappdriver is open [Before Feature file] then the tests under the scenario gets executed. After completion of all the test application and driver is disposed [After feature]..

Could you please share any sample code.

ritusenleo avatar Feb 01 '24 16:02 ritusenleo

@anunay1 help on this please...

ritusenleo avatar Feb 06 '24 17:02 ritusenleo

Can you check #1472

anunay1 avatar Feb 16 '24 14:02 anunay1