Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Using latest Postman #20

Open
Lampei opened this issue Dec 12, 2017 · 1 comment
Open

Using latest Postman #20

Lampei opened this issue Dec 12, 2017 · 1 comment

Comments

@Lampei
Copy link
Contributor

Lampei commented Dec 12, 2017

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.

@JamesMessinger
Copy link
Owner

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants