Skip to content
sripathikrishnan edited this page Sep 28, 2011 · 5 revisions

Can I use Noregress as a Client Library for Page Speed Online API?

Yes. See package org.noregress.pagespeed.*

How to add assertions supported by PageSpeed?

See classes org.noregress.PageResult and org.noregress.pagespeed.PageSpeedResult. The latter class exposes the entire Page Speed API.

It should be possible to use Noregress with other services - such as WebPageTest.org, or a local installation of YSlow. These services will have a different API than PageSpeed. The test cases should not have to change if the underlying service changes - which is why org.noregress.PageResult does not expose all the methods that PageSpeed offers.

But if you are okay tying yourself to Google's Page Speed API - go ahead and directly use PageSpeedResult for your assertions.

Are there any restrictions to Noregress?

Yes, there are.

  1. Noregress wraps Google's API, so you should read and comply with their terms and conditions
  2. You can only test 250 pages per day. This limit is set by Google's Page Speed API
  3. The pages need to be accessible over public internet. You cannot use this library behind the firewall
  4. You cannot use this library for password protected pages