Example #1
0
        public LoadTestEngine()
        {
            _testsRequests = new ConcurrentDictionary <string, ConcurrentBag <HttpRequestDto> >();
            var loadTestAssertionHandlers = new List <LoadTestAssertionHandler>();

            InitializeValidateHandlers();
            InitializeLoadTestLocators();
            Customizations = new LoadTestCustomizations(_loadTestLocators, _loadTestValidateHandler, _testScenarioMixtureDeterminers);
            Assertions     = new LoadTestAssertions(loadTestAssertionHandlers, _loadTestLocators, _loadTestValidateHandler);
            Settings       = new LoadTestSettings();
            InitializeApiClientService();
            LoadTestsRequestsFromFiles();

            _testScenarioExecutor = new TestScenarioExecutor(loadTestAssertionHandlers, _apiClientService);
        }
        public LoadTestEngine()
        {
            _testsRequests = new ConcurrentDictionary <string, ConcurrentBag <HttpRequestDto> >();
            var loadTestAssertionHandlers = new List <LoadTestAssertionHandler>();

            InitializeEnsureHandlers();
            InitializeLoadTestLocators();
            Customizations = new LoadTestCustomizations(_loadTestLocators, _loadTestEnsureHandler,
                                                        _testScenarioMixtureDeterminers);

            // for all tests or mention to be executed only for specific? for beginning for all.
            Assertions = new LoadTestAssertions(loadTestAssertionHandlers, _loadTestLocators, _loadTestEnsureHandler);
            Settings   = new LoadTestSettings();
            LoadTestsRequestsFromFiles();

            _testScenarioExecutor = new TestScenarioExecutor(loadTestAssertionHandlers);
        }