Exemplo n.º 1
0
        private bool CompareCounterResults()
        {
            _logHelper = new LoggingHelper("PERFORMANCE COMPARISON RESULTS");
            _logHelper.Content += string.Format("Counter\tPrevious Run\tCurrent Run*\tResult\r\n");

            var result = false;
            try
            {
                result = CompareCounterResult("Processor", "_Total", "% Processor Time", true);
            }
            catch (Exception e)
            {
                _logHelper.WriteToLog();
                throw e;
            }
            _logHelper.Content += string.Format("*plus tolerance amount\r\n");
            _logHelper.WriteToLog();

            return result;
        }
Exemplo n.º 2
0
        private bool CompareStatisticsResults()
        {
            
            _logHelper = new LoggingHelper("STATISTICS COMPARISON RESULTS");
            _logHelper.Content += string.Format("Counter\tPrevious Run\tCurrent Run*\tResult\r\n");

            var result = false;
            try
            {
                result = CompareStatisticsResult("Http200");
            }
            catch (Exception e)
            {
                _logHelper.WriteToLog();
                throw e;
            }
            

            _logHelper.Content += string.Format("*plus tolerance amount\r\n");
            _logHelper.WriteToLog();
            return result;
        }