mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #139] introduce some script language to parse the response and pass environment variable as request parameter #56
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yrong on GitHub (Sep 6, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/139
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
@yrong commented on GitHub (Sep 7, 2019):
with postman we can parse result with javascript and save data to somewhere
var jsonData = JSON.parse(responseBody); tests["uuid found"] = jsonData.uuid; postman.setEnvironmentVariable("production_id", jsonData.uuid);then in the next request we can reference the saved data
POST http://{{api_host}}:{{api_port}}/api/knowledge_point/{{production_id}}This feature is vital for the CI flow
@Nachiappa commented on GitHub (Sep 15, 2019):
Hi @liyasthomas ,
Do we have environment setup in current postwoman to implement this ?
@liyasthomas commented on GitHub (Sep 15, 2019):
@Nachiappa at present, there's no environment support.
@Nachiappa commented on GitHub (Sep 15, 2019):
Ok . Should we manage it in a separate ticket as an enhancement task?
@liyasthomas commented on GitHub (Sep 15, 2019):
That sounds okay.
I think it would be great to have this feature implemented. Environment setup along with import/export functionalities soothes things up.
@Nachiappa commented on GitHub (Sep 15, 2019):
@liyasthomas Please review https://github.com/liyasthomas/postwoman/issues/147
@jgroom33 commented on GitHub (Oct 8, 2019):
If possible, all responses should automatically be parsed. No code should be required to parse a response. All responses should be available for reference via {{ foo.response.bar }} in a subsequent call.
This assumes that each call has a label defined (i.e. foo)
@NBTX commented on GitHub (Oct 25, 2019):
Please refer to #218