gdcorp-commerce/postman-runner

Possible Expose Response Object To Calling Function When API PostmanRequestRunner.run Method In Invoked

Opened this issue · 4 comments

Hi There,

I have been trying out your library for the last few days. Super work

Albeit I feel it's missing one or two very important features

  1. I'd like to know what the full request object was post environment variables substitution
  2. I'd like to do validations on the response object within the Run method

Is it possible that these two items are returned as part of the return from executing the API PostmanRequestRunner.run?

I'm almost certain that exposing these items would open the library to a wider audience.

vchau commented

Good suggestion @bhreinb. I will try to get to this soon. Feel free to fork and send a pull request if you need the change sooner. It should be relatively straightforward.

vchau commented

@bhreinb Does this work for your use case? f3d00ec

Hi @vchau

I'll try it out and revert back to you. Thx a mill :)

Hi @vchau

I tried this and it seem to work good for my use case. I'd love to get this as soon as you can make it available? Thanks so much for your help with this.