Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to automatically generate har files? [closed]

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?

like image 555
valen Avatar asked May 08 '12 18:05

valen


People also ask

How do you create a HAR file when reproducing an issue?

To generate the HAR file for Internet ExplorerOpen Internet Explorer and go to the page where the issue is occurring. Click the Network tab. Reproduce the issue that you were experiencing before, while the network requests are being recorded. Once done click the Save button.

Does HAR file capture passwords?

HAR files can capture sensitive information, such as user names, passwords, and keys. Be sure to remove any sensitive information from a HAR file before you send it to AWS Support.

Where can I find HAR logs?

Collecting HAR/VAR Logs in ChromePress F12 (Windows) or press Option+Command+I (Mac). Go to Network and make sure that the Preserve log checkbox is ticked. Select Console and make sure Preserve Log checkbox is ticked. Replicate the issue.


2 Answers

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.

like image 163
seanhussey Avatar answered Sep 28 '22 00:09

seanhussey


Have a look at the BrowserMob Proxy or run a private instance of WebPageTest and use WPT Monitor with it

like image 31
Andy Davies Avatar answered Sep 28 '22 02:09

Andy Davies