Originally by CodingFabian
I am currently investigating slow performance of vaadin testbench tests. I notice that testbench performs the wait for vaadin call even after read only operations.
12:49:04.798 INFO - Executing: [find element: By.id: input_passwort] at URL: /session/3f8fc825-c897-4908-934c-706c481cf603/element)
12:49:04.813 INFO - Done: /session/3f8fc825-c897-4908-934c-706c481cf603/element
12:49:04.818 INFO - Executing: [execute script: if (window.vaadin =# null) { return true;}var clientswindow.vaadin.clients;if (clients) { for (var client in clients) { if (clients[client].isActive()) { return false; } } return true;} else { return false;}, []] at URL: /session/3f8fc825-c897-4908-934c-706c481cf603/execute)
12:49:04.822 INFO - Done: /session/3f8fc825-c897-4908-934c-706c481cf603/execute
This slows the test down, especially when the node running the test is not on localhost, as http roundtrip comes into play. But also without, it is a waste of cpu time to check for vaadin after read only commands.
Imported from https://dev.vaadin.com/ issue #12278
该提问来源于开源项目:vaadin/framework