Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collection script cannot be referenced in item #1023

Open
luiscarlosjayk opened this issue Apr 24, 2020 · 0 comments
Open

collection script cannot be referenced in item #1023

luiscarlosjayk opened this issue Apr 24, 2020 · 0 comments

Comments

@luiscarlosjayk
Copy link

Documentation says that you can define an event at Collection level and you can then reference it in an item, helping not duplicating (DRY).
Seems there's an error on this feature.

You can replicate the error by trying to run the example in:
https://github.com/postmanlabs/postman-collection/blob/develop/examples/collection-v2.json

You will see an error in terminal like this:

→ 200 ok
  GET http://echo.getpostman.com/status/200 [200 OK, 205B, 245ms]
  1⠄ ReferenceError in test-script

→ 200 ok
  POST http://echo.getpostman.com/post [200 OK, 205B, 96ms]
  2⠄ ReferenceError in test-script

If you manually copy/paste the event in each item then error doesn't happen.

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

No branches or pull requests

1 participant