[LRUG] Testing Browser Connections and Timings via Ruby

David Burrows 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

Cheers,
David

-- 
David Burrows
079 1234 2125
@dburrows

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
> "page.driver.network_traffic".
>
> YMMV etc, but maybe this helps.
>
> Jon
>
> --
> http://jonathanleighton.com/
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20120918/c1a7084d/attachment.html>


More information about the Chat mailing list