public TestScenarioMixtureDeterminer(List <ITestScenarioMixtureDeterminer> testScenarioMixtureDeterminers, LoadTestSettings settings, ConcurrentBag <TestScenario> testScenarios) { _testScenarioMixtureDeterminers = testScenarioMixtureDeterminers; _settings = settings; _testScenarios = testScenarios; }
public void InitializeTestScenarioMixtureDeterminer(LoadTestSettings settings, ConcurrentBag <TestScenario> testScenarios) { _testScenarios = testScenarios; if (settings.LoadTestType == LoadTestType.ExecuteForTime) { foreach (var testScenario in _testScenarios) { testScenario.TimesToBeExecuted = int.MaxValue; } } }
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); }
public void InitializeTestScenarioMixtureDeterminer(LoadTestSettings settings, ConcurrentBag <TestScenario> testScenarios) { _testScenarios = testScenarios; _totalWeight = _testScenarios.Sum(c => c.Weight); }
public bool ShouldUse(LoadTestSettings settings) => settings.MixtureMode == MixtureMode.Weights;