I try to write a Pre-request script in Postman. I want to to make a request so I try to use pm.sendRequest. For example :
pm.sendRequest(\'http://example.com\',
If you are running an old version of Postman, you may run into this issue as I did. From https://www.getpostman.com/docs/v6/postman/scripts/test_examples#older-style-of-writing-postman-tests
The older style of writing Postman tests relies on setting values for the special tests object.
If you are running an older version of Postman, you will not have the pm object available for use.