You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on an API product. Some endpoints are associated with 3rd party endpoints. Sometimes we may receive an error that does not belong to our product. In this case, I should be able to bypass this scenario without failing the whole feature.
If there was a feature which allow me skip the scenario with certain case , it would be awesome. It could be static method like Gauge.skip("skip reason");
The text was updated successfully, but these errors were encountered:
chadlwilson
changed the title
I need a feature that skip the scenario, if the scenario have failure
Support programmatically skipped scenarios (e.g if a scenario has a dependency failure)
Oct 14, 2024
Although more similar to Java the gauge-dotnet one is a bit harder to unpack as an example as the logic is spread into a shared library which other plugins don't have.
Basic steps for consistency
create a SkipScenarioException type available to users to throw in the plugins API which includes a reason/message for the skip.
emit the message back to Gauge.
catch these exceptions during step execution and hooks.
instead of failing the scenario set the step to passed and set executionResult.skipScenario flag to true (it should default to false)
I am working on an API product. Some endpoints are associated with 3rd party endpoints. Sometimes we may receive an error that does not belong to our product. In this case, I should be able to bypass this scenario without failing the whole feature.
If there was a feature which allow me skip the scenario with certain case , it would be awesome. It could be static method like Gauge.skip("skip reason");
The text was updated successfully, but these errors were encountered: