I have a question Gauge automation framework.
I am trying to get the status of the Scenario i.e., Passed or Failed in the afterScenario hook and store it using DataStore, any idea how to get that?
I use my framework in Python, but any programming language will do.
@Sam You could check the current scenario status in
AfterScenariohook using theExecutionContextstore status of that scenario inSpecDataStoreand then access that in theBeforeScenariohook of later scenario. The scenario and hooks could be tagged so specific hook runs only for specific scenarios.Example: