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

Display {{variable}} value in History / Display request url in app #255

Closed
duepayer opened this issue Mar 28, 2013 · 4 comments
Closed

Display {{variable}} value in History / Display request url in app #255

duepayer opened this issue Mar 28, 2013 · 4 comments
Assignees

Comments

@duepayer
Copy link

It would be great if there was an option to display the {{variable}} value in the History url field. For example, if the request was sent with {{host}}/version/item/info.json, the History section would display "http://prod.host.com/version/item/info.json". This would be helpful for debugging purposes as it is impossible to know what environment the request was set to at the time of execution without it. After reading through past issues I noticed that this was the original functionality but was changed to only display the {{variable}} in the url field - #73. I'm still not sure what the use case is for only seeing the variable but it would be really helpful if we had the option to view the full request url somewhere in the app.

@a85
Copy link
Contributor

a85 commented Apr 14, 2013

I thought about it a lot too. The request with the variable gives the exact representation of the request which is loaded in the editor. Users would then be aware of selecting the appropriate environment. I think it might be more appropriate to save the active environment when the request is sent and show a notification in the UI if that environment is not set.

@KJanik
Copy link

KJanik commented Jun 12, 2013

From a QA perspective, this would be incredibly useful. I heavily use {{variables}} in my requests due to switching between multiple environments. When something fails, I just grab a screenshot. It would be great if there was a small "expanded" line below the {{variable}} line so the developers can exactly see the request I made without needing my collection and environment. I included a (poor) mockup to clarify the suggestion.

Thank you for the consideration.

postman_expand_request

@a85
Copy link
Contributor

a85 commented Jun 22, 2013

@KJanik You can click the preview request to see exactly what's sent to the server. This would convert all variables to corresponding values.

@jimpudar
Copy link

jimpudar commented May 16, 2020

I still don't think we have a good solution to this issue. I have a request which uses dynamic variables (e.g. {{$randomInt}}) and as far as I can tell there is no way for me to tell what random int got sent with a particular request by observing the history.

Furthermore, the current concept of environments have both initial and current values, suggesting that variables may have different values now than they did when the request was made.

If I click the "Code" button and view the request as cURL or Python, I can see that the dynamic variable is replaced by the current version of that variable, not the value that was actually sent.

Hopefully I'm missing something here?

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

4 participants