[LRUG] Testing Browser Connections and Timings via Ruby
david at designsuperbuild.com
Tue Sep 18 11:50:11 PDT 2012
Thanks Frederick/Jon, looks like Poltergeist may well be a better tool for
the job, will investigate further
079 1234 2125
http://www.designsuperbuild.com/ | @dsgnsprbld
On Tue, Sep 18, 2012 at 5:32 PM, Jon Leighton <j at jonathanleighton.com>wrote:
> On 18/09/12 16:55, Frederick Cheung wrote:
> >> Hi All,
> >> 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.
> > 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
> Yes: PhantomJS has an onResourceReceived callback which fires every time
> a chunk of a resource on the page is received. It take one argument
> which is an object containing, amongst other things a timestamp.
> Poltergeist also exposed this data. You can access it by calling
> YMMV etc, but maybe this helps.
> Chat mailing list
> Chat at lists.lrug.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chat