Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.69k stars 1.97k forks source link

Chaining requests in TEST tab does not work #4481

Open MichalFiserWultra opened 2 years ago

MichalFiserWultra commented 2 years ago

Expected Behavior

I expect value from response will be used by other requests.

Actual Behavior

Response value is used in other requests in DEBUG tab but if i want to use that function in TEST tab (test suite) then it does not work after cleaning history.

Reproduction Steps

1 clear history 2 go to TEST tab and create test suite 3 set request sequence (1st value reproducing request, 2nd consuming response value request) 4 run

... and second request fails which is not happening in DEBUG tab

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

v2021.7.2

What operating system are you using?

macOS

Operating System Version

Monterey 12.2

Installation method

homebrew

Last Known Working Insomnia version

No response

VadimMuhtarov commented 2 years ago

I have the same problem. Separate requests on DEBUG tab work fine, but the same requests on TEST tab one after another can't operate dynamic variables correctly in them. Example: Req1 - create token Req2 - take this token and create verification code Req3 - take this code and validate it DEBUG: 201, 201, 200 TEST: 201, 423, 200 or 201, 201, 422

Version: Insomnia 2022.3.0 Build date: 4/28/2022 OS: Darwin x64 19.6.0 Electron: 17.3.1 Node: 16.13.0 V8: 9.8.177.13-electron.0 Architecture: x64

LIVelasco commented 2 years ago

Is there any update on this?

gioacchino-mauro commented 1 year ago

same problem on Insomnia 2023.2.0-beta.1

TimFung93 commented 1 year ago

any update on this?

dvdr00t commented 1 year ago

I am experiencing the same problem. Setting Template Tags in DEBUG tab is working correctly, however Template tags are not propagated to the TEST tab.

Therefore, running tests from inso cli does not work as expected.

tochkam commented 11 months ago

Same issue. This problem turns Insomnia into the tool for manual testing only. That's the showstopper. Any update?

tim-lar commented 11 months ago

Same issue - Insomnia is so close to being a really helpful tool for our test suite, but this issue makes the entire process labour-intensive.

bhellema commented 8 months ago

Checking to see if we can get this prioritized if possible. Maybe there's a workaround for this?

gasdia73 commented 4 months ago

I'm having the same problem, it's so sad having to undust postman again