Ejemplo n.º 1
0
 public void NavigateToDemandPlanning()
 {
     LoadTestEngine.Settings.LoadTestType                       = LoadTestType.ExecuteForTime;
     LoadTestEngine.Settings.MixtureMode                        = MixtureMode.Equal;
     LoadTestEngine.Settings.NumberOfProcesses                  = 5;
     LoadTestEngine.Settings.PauseBetweenStartSeconds           = 0;
     LoadTestEngine.Settings.SecondsToBeExecuted                = 60;
     LoadTestEngine.Settings.ShouldExecuteRecordedRequestPauses = true;
     LoadTestEngine.Settings.IgnoreUrlRequestsPatterns.Add(".*theming.js.*");
     LoadTestEngine.Settings.IgnoreUrlRequestsPatterns.Add(".*loginHash.*");
     LoadTestEngine.Settings.TestScenariosToBeExecutedPatterns.Add("Bellatrix.Web.Tests.Controls.DemandPlanningTests.RunForecast");
     LoadTestEngine.Assertions.AssertAllRequestStatusesAreSuccessful();
     LoadTestEngine.Assertions.AssertAllRecordedEnsureAssertions();
     LoadTestEngine.Execute("loadTestResults.html");
 }
Ejemplo n.º 2
0
 public void PurchasingDemoWebSiteLoadTest()
 {
     LoadTestEngine.Settings.LoadTestType                       = LoadTestType.ExecuteForTime;
     LoadTestEngine.Settings.MixtureMode                        = MixtureMode.Equal;
     LoadTestEngine.Settings.NumberOfProcesses                  = 5;
     LoadTestEngine.Settings.PauseBetweenStartSeconds           = 0;
     LoadTestEngine.Settings.SecondsToBeExecuted                = 60;
     LoadTestEngine.Settings.ShouldExecuteRecordedRequestPauses = true;
     LoadTestEngine.Settings.IgnoreUrlRequestsPatterns.Add(".*theming.js.*");
     LoadTestEngine.Settings.IgnoreUrlRequestsPatterns.Add(".*loginHash.*");
     LoadTestEngine.Settings.TestScenariosToBeExecutedPatterns.Add("Bellatrix.Web.GettingStarted.LoadTestingReuseWebTests.PurchaseRocketWithoutPageObjects");
     LoadTestEngine.Settings.TestScenariosToBeExecutedPatterns.Add("Bellatrix.Web.GettingStarted.LoadTestingReuseWebTests.PurchaseRocketWithPageObjects");
     LoadTestEngine.Assertions.AssertAllRequestStatusesAreSuccessful();
     LoadTestEngine.Assertions.AssertAllRecordedEnsureAssertions();
     LoadTestEngine.Execute("loadTestResults.html");
 }
        public void PurchasingDemoWebSiteLoadTest()
        {
            var loadTestEngine = new LoadTestEngine();

            loadTestEngine.Settings.LoadTestType                       = LoadTestType.ExecuteForTime;
            loadTestEngine.Settings.MixtureMode                        = MixtureMode.Equal;
            loadTestEngine.Settings.NumberOfProcesses                  = 2;
            loadTestEngine.Settings.PauseBetweenStartSeconds           = 0;
            loadTestEngine.Settings.SecondsToBeExecuted                = 30;
            loadTestEngine.Settings.ShouldExecuteRecordedRequestPauses = true;
            loadTestEngine.Settings.IgnoreUrlRequestsPatterns.Add(".*theming.js.*");
            loadTestEngine.Settings.IgnoreUrlRequestsPatterns.Add(".*loginHash.*");
            loadTestEngine.Settings.TestScenariosToBeExecutedPatterns.Add(
                ".*.CompletePurchaseSuccessfully_WhenNewClient_SingleItem");
            loadTestEngine.Assertions.AssertAllRequestStatusesAreSuccessful();
            loadTestEngine.Assertions.AssertAllRecordedEnsureAssertions();
            loadTestEngine.Execute("loadTestResults.html");
        }