Is there any way to automatically generate har files?

valen picture valen · May 8, 2012 · Viewed 7.3k times · Source

I'm trying to automate page load time testing. I'm imagining running a cron job every couple hours that will load various pages from my website, retrieve the associated har files, and process the data. The part I can't figure out is how to programatically generate har files ... the only way I know of now is manually through chrome developer tools. Does anyone know if this can be done, and if so how?

Answer

seanhussey picture seanhussey · May 8, 2013

We just did this recently with Firebug and NetExport:

http://www.softwareishard.com/blog/netexport/

You can configure NetExport to automatically export HAR files to a specified directory (compression optional). This has been useful for us in getting samples of resource loading data for particular web apps.