I'm trying to learn my way around Postman and I see in Tests, for example pm.globals.set("id","12345")
is used instead of postman.setGlobalVariable("id","12345")
which is what I have working on mine. The former does not. I want to be able to use pm.globals.set
The new pm.*
API was introduced in version 5.2.0 - https://www.getpostman.com/apps#changelog
Looking at the release notes for that version, the native OS clients have been updated but the Chrome App doesn't show this change. I believe the development for the Chrome App has now stopped.
The older syntax will still continue to work in the new versions but it will be dropped eventually in favour of the new pm.*
functions.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加