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

Running collection with packages results in pm.require is not a function #3229

Open
BillChirico opened this issue May 15, 2024 · 1 comment

Comments

@BillChirico
Copy link

BillChirico commented May 15, 2024

  1. Newman Version (can be found via newman -v): 6.1.2
  2. OS details (type, version, and architecture): Windows 10
  3. Are you using Newman as a library, or via the CLI? CLI through Powershell
  4. Did you encounter this recently, or has this bug always been there: First time trying
  5. Expected behaviour: To support the require function on pm. This is critical to our CI/CD integration testing.
  6. Command / script used to run Newman: newman run clients-api-collection.json -e cloud-dev-environment.json
  7. Sample collection, and auxiliary files (minus the sensitive details): 01. TypeError pm.require is not a function at test-script inside "[Test Setup] / CreateNewClient"
  8. Screenshots (if applicable):
    image
@esbenboye
Copy link

esbenboye commented May 17, 2024

I'm having the same issue with the following info;

Newman Version (can be found via newman -v): 6.1.2
OS details (type, version, and architecture): Ubuntu 22.04.3 LTS
Are you using Newman as a library, or via the CLI? CLI
Did you encounter this recently, or has this bug always been there: First time trying
Command / script used to run Newman: newman run ./PostmanDemo.postman_collection.json
Sample collection attached: PostmanDemo.postman_collection.json
Screenshot;
Skærmbillede 2024-05-17 101027

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

2 participants