You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this problem on debian (I tried it on windows but it didn't start); I am using the -a flag, which I expect to work like the "Run all" button in Idea.
I use this pattern in my tests (this works in Idea): I first login, get a token, set it in client.global and use it for several later calls.
Authorization: Bearer {{authToken}}
I debugged the issue and it turns out that global it's not working. Calling this in the script, it prints "undefined":
Edit: I further investigated the problem and it is definitely in the JS part; it seems that the global_variables.json is written only at startup, using global.set never writes it. I am using debian on WSL2
The text was updated successfully, but these errors were encountered:
@riccardocossu for integration test, and HTTP Client CLI is better. httpx is native image binary, and JS is executed by external Node(not rhino embedded) and hard to implement some features.
I have this problem on debian (I tried it on windows but it didn't start); I am using the -a flag, which I expect to work like the "Run all" button in Idea.
I use this pattern in my tests (this works in Idea): I first login, get a token, set it in client.global and use it for several later calls.
Authorization: Bearer {{authToken}}
I debugged the issue and it turns out that global it's not working. Calling this in the script, it prints "undefined":
`client.global.set("authToken",response.body.access_token);
client.log(client.global.get("authToken"));`
Edit: I further investigated the problem and it is definitely in the JS part; it seems that the global_variables.json is written only at startup, using global.set never writes it. I am using debian on WSL2
The text was updated successfully, but these errors were encountered: