Closed sswaroopgupta closed 6 years ago
Expected behavior When Gauge.Messages is written in the hooks, it should appear in html-report
Actual behavior Only messages written in before and after step are available
Steps to replicate
Add implementation
[BeforeSuite] public void BeforeSuite(ExecutionContext context) { Specification specification = context.CurrentSpecification; GaugeMessages.WriteMessage("BSuite"+context.CurrentSpecification.Name); } [AfterSuite] public void AfterSuite(ExecutionContext context) { GaugeMessages.WriteMessage("ASuite" + context.CurrentScenario.Name); } [BeforeScenario] public void BeforeScenario(ExecutionContext context) { GaugeMessages.WriteMessage("BScenario"+context.CurrentScenario.Name); } [BeforeSpec] public void BeforeSpec(ExecutionContext context) { GaugeMessages.WriteMessage("BSpec" + context.CurrentScenario.Name); } [AfterScenario] public void AfterScenario(ExecutionContext context) { GaugeMessages.WriteMessage("AScenario" + context.CurrentScenario.Name); } [AfterSpec] public void AfterSpec(ExecutionContext context) { GaugeMessages.WriteMessage("ASpec" + context.CurrentScenario.Name); } [BeforeStep] public void BeforeStep(ExecutionContext context) { GaugeMessages.WriteMessage("BStep" + context.CurrentScenario.Name); } [AfterStep] public void AfterStep(ExecutionContext context) { GaugeMessages.WriteMessage("AStep" + context.CurrentScenario.Name); }
Only the before and after step messages are displayed
Version
Gauge version: 0.9.9 Commit Hash: 8db625f Plugins ------- csharp (0.10.4.nightly-2018-05-29)
Fixed in
Gauge version: 1.0.1.nightly-2018-08-01 Commit Hash: 6aa1ce2 Plugins ------- csharp (0.10.5.nightly-2018-08-02)
Expected behavior When Gauge.Messages is written in the hooks, it should appear in html-report
Actual behavior Only messages written in before and after step are available
Steps to replicate
Add implementation
Version