Step to end test
with the new if (end-if) condition(great work btw) i was thinking that it would be great to add a step that ends the test itself
with the new if (end-if) condition(great work btw) i was thinking that it would be great to add a step that ends the test itself
Log in to comment and vote
Comments6
kashan
Dec 4
•Merged request
•1 vote
Conditions to exit a test run
The ability to exit a test run and not go further and run next step if a certain condition passes or fail
Paweł Bylina
Jan 29, 2025
@kashan You can achieve this right now by using custom JS assertion and throwing an exception. When a given condition is true, how should tests be finished? As passed?
Paweł Bylina
Mar 17
@ysarmiento-teldat What’s your use case for this?
ysarmiento-teldat
Mar 18
using it to end the test after if condition so it goes to the next (suite)
Paweł Bylina
Mar 18
Would you like to choose the test's final status in this “Force end” step (passed/failed)?
What is the purpose of that kind of test?
What will this test actually test?
Any real-world scenario to better understand it?
Thanks!
Ecasaseca
Mar 20
If the condition is met, the test can end here; if not, you can reach the end by following other steps.