Perf - updating profiling specflow test

Doing 4 groups of 10, to see get a sense of variance

--HG--
branch : perf
This commit is contained in:
Louis DeJardin
2010-11-24 18:53:47 -08:00
parent 0ff15f262a
commit 540723d492
2 changed files with 28 additions and 21 deletions

View File

@@ -22,5 +22,8 @@ Scenario: Hitting blogs
When I go to "/blog4" 10 times
Scenario: Hitting home page
Given I am logged in
When I go to "/" 40 times
//Given I am logged in
When I go to "/" 10 times
When I go to "/" 10 times
When I go to "/" 10 times
When I go to "/" 10 times

View File

@@ -1,7 +1,7 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:1.3.2.0
// SpecFlow Version:1.4.0.0
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
@@ -9,12 +9,12 @@
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
namespace Orchard.Specs.Le.Tests
namespace Orchard.Profile.Tests
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("Profiling")]
@@ -31,7 +31,7 @@ namespace Orchard.Specs.Le.Tests
{
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Profiling", "In order to profile the site\r\nAs a developer\r\nI want to generate a fixed number o" +
"f repeatable requests", ((string[])(null)));
"f repeatable requests", GenerationTargetLanguage.CSharp, ((string[])(null)));
testRunner.OnFeatureStart(featureInfo);
}
@@ -61,13 +61,13 @@ namespace Orchard.Specs.Le.Tests
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
testRunner.Given("I am logged in");
testRunner.Given("I am logged in");
#line 8
testRunner.When("I go to \"/admin\"");
testRunner.When("I go to \"/admin\"");
#line 9
testRunner.When("I go to \"/blog0\"");
testRunner.When("I go to \"/blog0\"");
#line 10
testRunner.When("I go to \"/\"");
testRunner.When("I go to \"/\"");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -80,9 +80,9 @@ testRunner.When("I go to \"/\"");
#line 12
this.ScenarioSetup(scenarioInfo);
#line 13
testRunner.Given("I am logged in");
testRunner.Given("I am logged in");
#line 14
testRunner.When("I go to \"/admin\" 40 times");
testRunner.When("I go to \"/admin\" 40 times");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -95,17 +95,17 @@ testRunner.When("I go to \"/admin\" 40 times");
#line 16
this.ScenarioSetup(scenarioInfo);
#line 17
testRunner.Given("I am logged in");
testRunner.Given("I am logged in");
#line 18
testRunner.When("I go to \"/blog0\" 10 times");
testRunner.When("I go to \"/blog0\" 10 times");
#line 19
testRunner.When("I go to \"/blog1\" 10 times");
testRunner.When("I go to \"/blog1\" 10 times");
#line 20
testRunner.When("I go to \"/blog2\" 10 times");
testRunner.When("I go to \"/blog2\" 10 times");
#line 21
testRunner.When("I go to \"/blog3\" 10 times");
testRunner.When("I go to \"/blog3\" 10 times");
#line 22
testRunner.When("I go to \"/blog4\" 10 times");
testRunner.When("I go to \"/blog4\" 10 times");
#line hidden
testRunner.CollectScenarioErrors();
}
@@ -117,10 +117,14 @@ testRunner.When("I go to \"/blog4\" 10 times");
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Hitting home page", ((string[])(null)));
#line 24
this.ScenarioSetup(scenarioInfo);
#line 25
testRunner.Given("I am logged in");
#line 26
testRunner.When("I go to \"/\" 40 times");
testRunner.When("I go to \"/\" 10 times");
#line 27
testRunner.When("I go to \"/\" 10 times");
#line 28
testRunner.When("I go to \"/\" 10 times");
#line 29
testRunner.When("I go to \"/\" 10 times");
#line hidden
testRunner.CollectScenarioErrors();
}