Skip to content
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

Skip individual requests option during collection run from Scripts #1402

Closed
checkerix opened this issue Nov 12, 2023 · 8 comments
Closed

Skip individual requests option during collection run from Scripts #1402

checkerix opened this issue Nov 12, 2023 · 8 comments
Labels
feature request New feature or request Priority Implement this asap

Comments

@checkerix
Copy link

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

@checkerix checkerix added the question Further information is requested label Nov 12, 2023
@rangav
Copy link
Collaborator

rangav commented Nov 12, 2023

Hi @checkerix

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

@rangav rangav added feature request New feature or request Priority Implement this asap and removed question Further information is requested labels Nov 12, 2023
@rangav
Copy link
Collaborator

rangav commented Nov 12, 2023

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

@rangav
Copy link
Collaborator

rangav commented Nov 12, 2023

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

@rangav rangav changed the title commands in inline scripts to skip individual requests during collection run Skip individual requests option during collection run from Scripts Nov 12, 2023
@rangav
Copy link
Collaborator

rangav commented Nov 14, 2023

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.

@rangav rangav closed this as completed Nov 14, 2023
@checkerix
Copy link
Author

checkerix commented Dec 13, 2023

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
Copy link
Collaborator

rangav commented Dec 13, 2023

  • You can use CLI and run tc list "collectionName" which will display all request names and ids
  • or from scripting you can use tc.request.id

@checkerix
Copy link
Author

Thank you very much!

@rangav
Copy link
Collaborator

rangav commented Dec 13, 2023

You are welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Priority Implement this asap
Projects
None yet
Development

No branches or pull requests

2 participants