public void Log(Exception ex, string message)
        {
            var details = CurrentTest.AddScreenCapture(GetScreenshot());

            CurrentTest.Log(LogStatus.Fail, "Exception occured!", details);
            CurrentTest.Log(LogStatus.Fail, message, ex);
            HasError = true;
        }
        public bool Log(bool success, string msg, string details = "")
        {
            if (!success)
            {
                details += CurrentTest.AddScreenCapture(GetScreenshot());
                HasError = true;
            }

            CurrentTest.Log(success ? LogStatus.Pass : LogStatus.Fail, msg, details);
            return(success);
        }
        public void Log(ReportLogStatus status, string message, string details = "")
        {
            var logStatus = GetLogStatus(status);

            if (logStatus == LogStatus.Fail || logStatus == LogStatus.Error)
            {
                var sc = GetScreenshot();
                details += CurrentTest.AddScreenCapture(sc);
                HasError = true;
            }
            CurrentTest.Log(logStatus, message, details);
        }
 public void AddScreenShot(string msg)
 {
     CurrentTest.Log(LogStatus.Info, msg, CurrentTest.AddScreenCapture(GetScreenshot()));
     Thread.Sleep(50);
 }