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
Is your feature request related to a problem? Please describe.
I need to skip scenarios on runtime as the system-under-test differs. Therefore I would like to have the Python-runner to support the PR: getgauge/gauge#2502
Describe the solution you'd like
Apply the changes done in C# also for Python.
If you want to have a go at implementing this, I am happy to make it a little easier by updating the protobufs to the latest so the message API is exposed to be consumed within the plugin :-)
If you want to have a go at implementing this, I am happy to make it a little easier by updating the protobufs to the latest so the message API is exposed to be consumed within the plugin :-)
Currently I am struggeling to understand where I need to throw and catch the "SkipScenarioException" in order to send the Gauge.Message to skip execution.
If I catch the skip exception before the global exception, I would be able to overwrite the flag response.executionResult.skipScenario. Am I on the right track? 😄
The gauge-dotnet impl (the first impl of this) basically looks at the exception type/name and sets the flag along with the equivalent ofresponse.executionResult.success = true (in contrast to for other types of exceptions.
Activity
chadlwilson commentedon Sep 26, 2024
If you want to have a go at implementing this, I am happy to make it a little easier by updating the protobufs to the latest so the message API is exposed to be consumed within the plugin :-)
sschulz92 commentedon Sep 27, 2024
Currently I am struggeling to understand where I need to throw and catch the "SkipScenarioException" in order to send the Gauge.Message to skip execution.
My assumption:
If I catch the skip exception before the global exception, I would be able to overwrite the flag
response.executionResult.skipScenario. Am I on the right track? 😄chadlwilson commentedon Sep 27, 2024
I think something like that, yes.
The
gauge-dotnetimpl (the first impl of this) basically looks at the exception type/name and sets the flag along with the equivalent ofresponse.executionResult.success = true(in contrast to for other types of exceptions.https://github.com/getgauge/gauge-dotnet/pull/210/files#diff-664ffb133211070e87590f3c0c836d8a2f3b56c9b17c81c24a08479e5d26848dR58-R80
When the exception is raised by the user, the reason is reported with a message.
https://github.com/getgauge/gauge-csharp-lib/pull/42/files#diff-8c944c5931788afb31fb92049426343c0f2f96f846906dbb4b65b485ad811c6cR16