//public static TestStep EndTestStep(TestCase testCase,TestStep testStep, String testStepName, bool status, DriverContext driverContext) //{ // testStep.SetStepEndTime(new StringHelper().GetFormattedDateTimeNow()); // testStep.SetTestStep(testStepName); // testStep.SetStatus(status); // if (!testCase.GetTestCaseName().StartsWith("API_")) // { // testStep.SetImageContent(driverContext.TakeScreenshot().ToString()); // } // return testStep; //} public static TestStep EndTestStep(TestCase testCase, TestStep testStep, String testStepName, bool status, string imageContent) { testStep.SetStepEndTime(new StringHelper().GetFormattedDateTimeNow()); testStep.SetJiraStepEndTime(new StringHelper().GetFormattedDateTimeNow("jira")); testStep.SetTestStep(testStepName); testStep.SetStatus(status); if (!string.IsNullOrEmpty(imageContent)) { //testStep.SetImageContent(driverContext.TakeScreenshot().ToString()); testStep.SetImageContent(imageContent); } return(testStep); }