-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Running single requests uses separate object of collection variables. This makes every request in UI independent. #188
Comments
@mirkogolze
If you click on "200 ok" response status, you should see the response
The collection variables are a the collection scope. If a requests sets it using Can you describe your high level use case? I might be able to suggest some simpler approach. |
SampleCollection: VarTesting.zip SetVar
GetVar
Running the folder in the UI Running the request one by one in the UI
I think now the requests are running with the method |
Thanks @mirkogolze for the detailed writeup of the issue. The collection variables are intended to be scoped inside the collection. There as a bug that was causing this behavior not to work. I have fixed this and this is now available in the latest v0.14.0 release PS: In this release, I've also added support for printing console.log() statements (inside the scripts/tests) in the devtools for easier debugging. |
Thanks. Works now as expected. |
When I run a folder from the UI then the collection variables are used for all requests in the folder. But I don't see the responses.
When I have requests belonging to one to another where one request stores a collection variable, then the next request can't use the value of the stored variable because running it as single request makes them independent.
So I can't test the flow of my collection by running the request one by one and see the result.
With additionally added scripts this is not so easy too, because I can't use
fs
to work with temporary files or so. I only could use databases. But that would be like shooting sparrows with cannons.The text was updated successfully, but these errors were encountered: