postman-bdd icon indicating copy to clipboard operation
postman-bdd copied to clipboard

Using latest Postman

Open Lampei opened this issue 8 years ago • 1 comments

The postman team added a "pm.sendRequest" (https://gist.github.com/madebysid/b57985b0649d3407a7aa9de1bd327990). I keep getting "pm.sendRequest is not a function" when I try adding that to globals or to the prerequest script. Do you have any idea how I can add that functionality to my tests? Just trying to get a way to do "setup" really for tests (e.g. getting current totals from API, getting current info on object from API, etc.) then validating in the test.

Lampei avatar Dec 12 '17 14:12 Lampei

@Lampei - It sounds like you may be using an outdated version of Postman that doesn't support pm.sendRequest. Make sure you're using one of the native apps, not the Chrome app. (The Chrome app has been deprecated)

In the app, open the settings dialog, go to the "Update" tab, and click "Check for updates" to verify that you have the latest version installed.

JamesMessinger avatar Dec 13 '17 13:12 JamesMessinger