thunderclient / thunder-client-support

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

Skip request is not working both on cli running or collection running usaing UI #1575

Open thiagosouza opened 2 months ago

thiagosouza commented 2 months ago

Describe the bug I need to skip some requests in my tests. So I am trying the skip request functionality, but it is not working. I verified everything I could with no success.

To Reproduce create two requests and in the first one add a pre-request script with the following code

if(someReasonToSkip)
  await tc.skipRequest(tc.request.id);

Expected behavior It was supposed to not execute the second request, but it is running it anyways.

Platform:

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

rangav commented 2 months ago

@thiagosouza thanks for reporting the bug, Will verify and get back to you asap.

rangav commented 1 month ago

I just now tested it's working.

Can you please create a sample collection and export and share the file.

try using actual request id - tc.skipRquest("reqID")