private bool RunOneTest(string testName, BaseTest test) { bool result = true; Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); try { logger.Info("Executing test: " + testName); result = test.Execute(); if (!result) { logger.Error("Error in running test: " + testName); } else { logger.Info("Successful in running test: " + testName); } } catch (Exception e) { result = false; logger.Error("Error while running test: " + testName + ". Exception: " + e); } stopWatch.Stop(); MetricsHelper.PushTestMetric(Convert.ToInt64(stopWatch.Elapsed.TotalSeconds), this.SuiteName, testName, result.ToString()); return(result); }