thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.64k stars 130 forks source link

Skip individual requests option during collection run from Scripts #1402

Closed checkerix closed 11 months ago

checkerix commented 12 months ago

Question: Before starting a collection run, you can set individual requests to be skipped, but I would like to make this decision in the inline scripts (e.g. dependent on variables). Is this possible?

Are you using the free version/paid version/trial: paid version

rangav commented 12 months ago

Hi @checkerix

Currently not possible, will add this feature in the next update.

rangav commented 12 months ago

Can you also please confirm your subscription by using below form for our internal information. https://www.thunderclient.com/contact

rangav commented 12 months ago

The new proposed api will be - tc.skipRequest("reqId");

rangav commented 11 months ago

This feature is implemented and published to the marketplace, please update to v2.16.0

See all features in this update https://github.com/rangav/thunder-client-support/releases/tag/v2.16.0

Please test and let me know your feedback.

checkerix commented 10 months ago

Hi @rangav Thank you for your very fast implementation of this feature, it works!

I can find the reqId of the endpoint I want to skip by opening the corresponding JSON file in the collection folder and searching for the _id of the correct endpoint. This can be a bit inconvenient with larger collections, also because the endpoints in the file appear in chronological order and not necessarily in the actual order.

Is there a way to get this reqId from the TC user interface?

rangav commented 10 months ago
checkerix commented 10 months ago

Thank you very much!

rangav commented 10 months ago

You are welcome :)