public void ScenarioTearDown(ScenarioContext _scenarioContext)
        {
            var status     = TestContext.CurrentContext.Result.Outcome.Status;
            var stacktrace = string.IsNullOrEmpty(TestContext.CurrentContext.Result.Message)
                    ? ""
                    : $"<pre>{TestContext.CurrentContext.Result.Message}</pre>";
            Status logstatus;

            switch (status)
            {
            case TestStatus.Failed:
                logstatus = Status.Fail;
                break;

            case TestStatus.Inconclusive:
                logstatus = Status.Warning;
                break;

            case TestStatus.Skipped:
                logstatus = Status.Skip;
                break;

            default:
                logstatus = Status.Pass;
                break;
            }
            ExtentReportsHelper.CreateTestStepBDD(CommonHelper.CaptureScreen(), $"The Scenario '{_scenarioContext.ScenarioInfo.Title}' ended with status {logstatus}").Info(stacktrace);
        }
        public void BeforeSteps()
        {
            var stepType = ScenarioStepContext.Current.StepInfo.StepDefinitionType.ToString();

            ExtentReportsHelper.CreateTestStepBDD(stepType, ScenarioStepContext.Current.StepInfo.Text);
        }