Scripts

Your Postman and Bruno scripts work in Kitten. Import a collection and its pre-request scripts, post-response scripts and tests come along and run as they did before. There's no new API to learn.

  • Postman scripts (pm.*) run as they are.
  • Bruno scripts (bru.*, req, res, test, expect) run as they are.
  • New scripts are plain JavaScript. Write them in either Bruno or Postman style; you can change this in Settings → Scripts.

Open a request's Script tab to read or edit its scripts. Collections and folders can have scripts too.

A script can draw its own view of the response in Response → Visualizer with pm.visualizer.set or bru.visualize. Without one, an HTML response shows there as a web page.

If a script uses one of the few Postman features Kitten doesn't support yet, the request still imports and Kitten points out the line it couldn't run. See what isn't supported yet for Postman and Bruno.