Example #1
0
        void IResultsAggregator.Begin()
        {
            _metricMultiplexer = new MetricMultiplexer(_metricTemplates);
            _row = new FlexiRow <DimensionValues, IMetric>(() => ((IMetric)_metricMultiplexer).CreateNew());

            _dimensionsKeyBuilder = new DimensionsKeyBuilder(_dimensions);
        }
Example #2
0
        private BreakByMetric(IDimension subDimension, MetricMultiplexer metricsTemplate)
        {
            if (subDimension == null)
            {
                throw new ArgumentNullException(nameof(subDimension));
            }

            _metricsTemplate = metricsTemplate;
            _subDimension    = subDimension;

            _metricAggregates = new FlexiRow <string, IMetric>(((IMetric)_metricsTemplate).CreateNew);
        }
Example #3
0
        private LoadRunnerUi(LoadRunnerParameters parameters, Type iTestScenarioType, IResultsAggregator[] resultsAggregators)
        {
            _metricMultiplexerTemplate = new MetricMultiplexer(new IMetric[]
            {
                new FuncMultiMetric <int>((row, result) =>
                                          result.Checkpoints.ForEach(c => row[c.Name] = (int)c.TimePoint.TotalMilliseconds),
                                          () => default(int)
                                          ),
                new CountMetric(),
                new ErrorCountMetric(),
                new TransactionsPerSecMetric()
            });

            _loadRunnerEngine = new LoadRunnerEngine(parameters, iTestScenarioType, resultsAggregators.Concat(new [] { this }).ToArray());

            InitializeComponent();
        }