Closed erwinmoretz closed 7 months ago
Hi @erwinmoretz
You want to skip requests right?
https://github.com/rangav/thunder-client-support/releases/tag/v2.15.0
tc.skipRequest("requestId");
https://github.com/rangav/thunder-client-support/releases/tag/v2.16.0
yes want to skip request.
in my case its the first request, which tests if the toggle is active or inactive. in case of inactive i want to skip, all following testcases in the collection. so there is no requestId which i can write.
Is it possible to stop the runner?
Enable the Stop on fail
setting and save it.
When a request test cases fail, it will stop the collection execution and skip remaining requests.
You can also trigger a test fail from the code and stop the runner.
tc.test("custom fail test", false);
In our case, the test does not fail because I have built a case distinction into the script. Depending on how the parameter is set, other tests are executed. The tests should only stop if the script recognises that the feature switch is switched off.
On what condition you want to stop the runner?
when the requested status delivers 404 it needs to skip the following testcases in the collection. when the status 200, the runner has to continue.
Then you can check the status code in post req script and then add a custom failed test to stop the runner
Closing this issue, feel free to continue discussion if you have more questions
Where to get request id
?
Enable the Stop on fail setting and save it.
How to save it?
Question: Hi Ranga,
we implemented a toggle to some features in our service, to turn them on or off. My question is, is it possible to skip some tests in a testcollection?
i tried it with the command, but it doesnt work.
Are you using the free version/paid version/trial: paid version