<html><head></head><body bgcolor="#FFFFFF"><div><br></div><div><br>On 18 Sep 2012, at 16:51, David Burrows <<a href="mailto:david@designsuperbuild.com">david@designsuperbuild.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Hi All,<div><br></div><div>I've got an app that I regularly need to test/monitor front end page performance and external (browser side) service connection data, some of which are iframe embeds. Up until this point I've been doing it by hand (Chrome Inspector Network panel + HAR exports) thinking at some point I'd automate. That day has come but I'm having trouble finding an easy way to do it so I thought I'd ask the LRUG omni-mind.</div>
<div><br></div></div></blockquote><div><br></div><div>I think that if you load pages in phantomjs (eg via poltergeist) that you can get all the data that goes into the network activity panel</div><div><br></div><div>Fred</div><div><br></div><div><br></div><br><blockquote type="cite"><div><div>At the moment I've got a vaguely usable solution that involves the test setup starting a WEBrick::HTTPProxyServer in a separate thread that writes request/response data to a logfile - the tests then run via a Selenium driver set up to use that proxy, wait a bit for everything to finish loading , then parse the logfile to see if all connections have been made correctly. Not much usable timing data in that but may just need a bit of hacking. </div>
<div><br></div><div>I've had a look at the Web Timing API but this only seems to give me page load details not page element (.js, .json, .jsonp) times and doesn't really go into enough detail.</div><div><br></div>
<div>I've also had a look at the Chrome Remote Debugging API but it looks as if it would be quite a bit of work to get this integrated in testing.</div><div><br></div><div>Any ideas or pointers to things I've missed?</div>
<div>Cheers,</div><div>David</div><div><br><div><div>-- </div><div>David Burrows</div><div>079 1234 2125</div><div>@dburrows</div><div><br></div><div><a href="http://www.designsuperbuild.com/" target="_blank">http://www.designsuperbuild.com/</a> | @dsgnsprbld</div>
<br>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Chat mailing list</span><br><span><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a></span><br><span><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a></span><br></div></blockquote></body></html>