New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using 'localhost' makes tests run 10x slower #1269
Comments
Hmmm I tried replicating on my end using this same code: https://github.com/Accruent/robotframework-zoomba/blob/master/samples/DesktopTests.robot (I work in python/robotframework) and I am not getting any noticeable difference between the two (average over 3 runs each). How many lines do you have in your Windows Hosts file (aside from the commented out bits): A large hosts file could cause a slowdown here. |
WinAppDriver is innocent in this case, it is not responsible for translating the localhost. |
I too have noticed that it run slow with default configuration. |
Did some more investigation and it appears this is a .Net core issue. Notes*
|
If I use "http://127.0.0.1:4723" as the remote address when running tests locally, my test run fairly fast.
However, if I use 'http://localhost:4723' all my interactions are extremely slow, and my test execution time goes way up. - All interactions take about 10 times as long.
Sample test code:
https://github.com/Magenic/MAQS/blob/master/Framework/AppiumUnitTests/AppiumWinAppUnitTests.cs#L30
Line to change remote address:
https://github.com/Magenic/MAQS/blob/master/Framework/AppiumUnitTests/AppiumWinAppUnitTests.cs#L56
The text was updated successfully, but these errors were encountered: