Example #1
0
        public void BeforeStep(ScenarioContext scenarioContext)
        {
            ReportHelper.AddStepInfo(scenarioContext.StepContext.StepInfo.StepDefinitionType.ToString(), scenarioContext.StepContext.StepInfo.Text);

            if (scenarioContext.TestError != null)
            {
                ScreenshotHelper.TakeAndSaveScreenshot(_driver);
                ReportHelper.AddTestResult(scenarioContext.TestError);
            }
        }