How to capture page load times in Selenium-IDE using the app.telemetry page speed monitor

二次信任 提交于 2019-12-11 06:53:31

问题


I am trying to do a quick and dirty page load test with Selenium IDE and using a plugin called app.telemetry page speed monitor. The tool provides a display in the tool bar of Firefox,(0.36 in red) but I'm not sure how to capture that data via Selenium IDE? Any thoughts.

This is the plugin: https://addons.mozilla.org/en-US/firefox/addon/apptelemetry/


回答1:


Check this out:

open      | lol.com
storeEval | window.performance.timing['loadEventEnd']-window.performance.timing['navigationStart'] | result
echo      | ${result}

It will get page loading speed from trying to find the IP of the lol.com till the page is fully loaded (full time). And you do not need any plugins. If you want to get only speed of server response use:

storeEval | window.performance.timing['responseEnd']-window.performance.timing['requestStart'] | result

If you want to get some more specific time take a look at:



来源:https://stackoverflow.com/questions/38660056/how-to-capture-page-load-times-in-selenium-ide-using-the-app-telemetry-page-spee

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!