mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #4010] [feature]: pw.env.set should accept integer value #1416
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#1416
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 @shipko on GitHub (Apr 26, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4010
Is there an existing issue for this?
Summary
I ran into a compatibility issue when importing collections from postman.
The standard query running in postman
pm.environment.set("test", 123)does not work when adapting to hoppscotch.The script
pw.env.set("test", 123)does not work because only string variables are accepted as values.I suggest adding the ability to add integer variables as well
Why should this be worked on?
Simple engineers may not guess about this feature, the standard function does not work, the credibility of the product will be undermined
@dan4ndrade commented on GitHub (Feb 21, 2025):
Up!
I had the same trouble with numbers.
The workaround is to use .toString() to save the value in environment variables.