Slow start of webtests
Hi all,
I have a strange phenomenon I do not understand.
Assume I start the webtest the first time of the day on a nearly clean system.
For this I have build a wrapping class (python) and actually use the chrome browser:
...
def start(self, name):
Browsers.Item[name].Run(self.base_url)
return self
Next action is, that I click on a text element on the webpage, identifying it via css-selectors, what works very fast usually.
But it nearly always happens, that at the start of the browser the navigating-action is veeeery slow, also the first click on to the element. Sometime both take more than 40 secs!
Some time later on the same system: I start the same test, without rebooting it or resetting or s.th. like this. And than - tadaa - everything works fine and fast. What took 40 secs now takes 5 secs ...
Does anyone have an idea what happens during this slow first tests? and how to avoid it?
Regards
Ulrich
I agree, most likely it has something to do with caching. Some recent versions of Chrome actually keep chrome running as a background process (an optional setting) to speed up browsing. It could be that the first run starts the Chrome process and each run afterwards uses the already started process.