thunder-client-support icon indicating copy to clipboard operation
thunder-client-support copied to clipboard

Testing with JS

Open alpgul opened this issue 3 years ago • 1 comments

Response, cookie, header values should be tested with javascript code.

alpgul avatar Sep 27 '21 19:09 alpgul

Hi @alpgul thanks for feedback, you can test now response and headers. Cookie testing will add to roadmap.

rangav avatar Sep 27 '21 20:09 rangav

Related: https://github.com/rangav/thunder-client-support/issues/194

Hello, @rangav

I've faced the case when I cannot test endpoints without JS or another language where I need to generate data before sending and set up them to the request Headers and Body or change the existing Headers and Body.

I need to generate a sign from several JS functions (or another language) and set the result to the request. These data are generated each seconds and that's impossible to test with static data.

My colleagues use Pre-request Scripts for it: https://learning.postman.com/docs/writing-scripts/pre-request-scripts/

Can you share a progress or planes about this feature?

Thank you for your extension!

dmitrach avatar Oct 21 '22 09:10 dmitrach

@dmitrach We are planning to release pre-request scripting feature very soon - #16, you can express your interest there.

I am closing this issue, as it's a duplicate of #194.

rangav avatar Oct 21 '22 14:10 rangav

Hi, Now Tests via scripting is possible with v2.10.0

https://github.com/rangav/thunder-client-support/releases/tag/v2.10.0

rangav avatar Aug 01 '23 04:08 rangav