addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditemptyheartfacebookfolderfullheartglobegmailgoogleimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartrashtriangle-downtriangle-uptwitteruseryahoo

Jasmine for ReST API testing?

From: John
Sent on: Tuesday, March 20, 2012 4:19 PM
Our ReST server is getting to be fairly sophisticated and we're looking to improve our tests that run directly against the ReST interfaces. We use WebDriver to do end-to-end testing, verifying the UI as well as the server, but that's a bit slow and cumbersome, and it doesn't help to assure that new ReST APIs behave as expected before the UI tries to use them.

We're most familiar with WebDriver and Geb as tools for driving high-level tests, but since these new tests are at the level of AJAX calls, it seems we should consider building tests using Javascript. The Jasmine framework seems that it work for our needs. It seems any Javascript framework will require some work on tooling to run in a headless environment (as we don't currently use Node.JS), but I wonder if anyone has used the Rhino engine with HTMLUnit to execute headless testing with Javascript.

More broadly, the question is: what would you recommend for testing ReST interfaces?

Our Sponsors

  • Adobe

    Adobe is changing the world through digital experiences!

  • Formidable

    React.js consultants, JavaScript leaders + OSS innovators.

  • Twilio

    Easily integrate text messaging, phone calls and VOIP into your app!

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy