Test execution on Azure windows 10 VM box is very slow
Hi Tim/Yodurr,
I am executing test suite on Azure Windows 10 VM via VSTS build. I am experiencing test execution performance issue as it is taking more time to complete test execution.
A test method which is designed for data driven with 6 set of test data is executed for 6 iterations. To complete all 6 iterations it takes 25 mins and i guess this is huge time. On an average 1 iteration takes ~5mins to complete.
Test case have following steps to perform
- launch the application and login
- Import a file
- Make some Api call's
- validate the status
Any thoughts on this on how to improve performance ?
Thanks, Mahendra
Hi @Manvibha ,
Can you provide additional information on which steps take longer to execute? (e.g. session creation, finding elements, executing actions, etc.).
@Manvibha / @hassanuz I too face this issue... What i notice is WinAppDriver.exe console contents showup VERY slowly as if someone is manually tying it. Here is the video for your reference. If its this slow its kind of unusable on Azure Windows machines.
Hi @shankarkc ,
Can you confirm whether the CPU is being utilized by other applications from Task Manager (CTRL-Shift-ESC).
Thanks
On that machine nothing was running except Winappdriver. So something wrong with wad that need to be fixed. I will check cpu utilization today and update the defect.
On Jan 24, 2018 4:51 AM, "Hassan Uraizee" [email protected] wrote:
Hi @shankarkc https://github.com/shankarkc ,
Can you confirm whether the CPU is being utilized by other applications from Task Manager (CTRL-Shift-ESC).
Thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/WinAppDriver/issues/337#issuecomment-359963977, or mute the thread https://github.com/notifications/unsubscribe-auth/AEb7V7E5ZGA4OD9IWRJlRuoBPxhNRKZ_ks5tNmd-gaJpZM4Ra47D .
I have 160 test cases automated and earlier it use to take more than 9hrs to execute test suite. After I tuned for performance by enhancing few reusable methods which were using Action builders performance have improved a bit and time taken for execution is now ~8hrs. However, working with data grid is slow irrespective of machine and may be there is a room to improve the way elements are identified by winappdriver .
regards, Mahendra
Hi @Manvibha,
Can you break down on which steps/commands/operations does the time is mostly consumed? From your sample steps above the breakdown could look like (arbitrary numbers are used below):
- Launch the application and login (X seconds)
- Launch application (X seconds)
- Create session (X seconds)
- Login (X seconds)
- Find element (X seconds)
- Click element (X seconds)
- etc.
- Launch application (X seconds)
- Import a file (X seconds)
- Find element (X seconds)
- Select menu element (X seconds)
- etc.
- etc.
This will help us identify certain commands that can be improved. In addition it will also help you to potentially refactor your test to avoid duplicating/repeating certain steps that are expensive. This approach helped us optimized our WebDriverAPI test by re-using launched application instance between test cases (avoid closing and re-launching application). This optimization itself reduce the test time by close to 70%.
If issue persists on latest version of WAD please create new ticket.