diff --git a/src/Orchard.Profile/Tests/HttpClient.cs b/src/Orchard.Profile/Tests/HttpClient.cs index 98e6b65f9..363e3b9a3 100644 --- a/src/Orchard.Profile/Tests/HttpClient.cs +++ b/src/Orchard.Profile/Tests/HttpClient.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Net; using System.Text; using System.Web; +using NUnit.Framework; using TechTalk.SpecFlow; namespace Orchard.Profile.Tests { diff --git a/src/Orchard.Profile/Tests/Profiling.feature b/src/Orchard.Profile/Tests/Profiling.feature index 692963c20..741abe6d5 100644 --- a/src/Orchard.Profile/Tests/Profiling.feature +++ b/src/Orchard.Profile/Tests/Profiling.feature @@ -6,3 +6,15 @@ Scenario: Dashboard Given I am logged in When I go to "/admin" 40 times + +Scenario: Hitting blogs + Given I am logged in + When I go to "/blog0" 10 times + When I go to "/blog1" 10 times + When I go to "/blog2" 10 times + When I go to "/blog3" 10 times + When I go to "/blog4" 10 times + +Scenario: Hitting home page + Given I am logged in + When I go to "/" 40 times diff --git a/src/Orchard.Profile/Tests/Profiling.feature.cs b/src/Orchard.Profile/Tests/Profiling.feature.cs index b84190450..b986aaa0e 100644 --- a/src/Orchard.Profile/Tests/Profiling.feature.cs +++ b/src/Orchard.Profile/Tests/Profiling.feature.cs @@ -2,7 +2,7 @@ // // This code was generated by SpecFlow (http://www.specflow.org/). // SpecFlow Version:1.2.0.0 -// Runtime Version:2.0.50727.4927 +// Runtime Version:2.0.50727.3603 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -61,6 +61,44 @@ this.ScenarioSetup(scenarioInfo); testRunner.Given("I am logged in"); #line 8 testRunner.When("I go to \"/admin\" 40 times"); +#line hidden + testRunner.CollectScenarioErrors(); + } + + [NUnit.Framework.TestAttribute()] + [NUnit.Framework.DescriptionAttribute("Hitting blogs")] + public virtual void HittingBlogs() + { + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Hitting blogs", ((string[])(null))); +#line 10 +this.ScenarioSetup(scenarioInfo); +#line 11 + testRunner.Given("I am logged in"); +#line 12 + testRunner.When("I go to \"/blog0\" 10 times"); +#line 13 + testRunner.When("I go to \"/blog1\" 10 times"); +#line 14 + testRunner.When("I go to \"/blog2\" 10 times"); +#line 15 + testRunner.When("I go to \"/blog3\" 10 times"); +#line 16 + testRunner.When("I go to \"/blog4\" 10 times"); +#line hidden + testRunner.CollectScenarioErrors(); + } + + [NUnit.Framework.TestAttribute()] + [NUnit.Framework.DescriptionAttribute("Hitting home page")] + public virtual void HittingHomePage() + { + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Hitting home page", ((string[])(null))); +#line 18 +this.ScenarioSetup(scenarioInfo); +#line 19 + testRunner.Given("I am logged in"); +#line 20 + testRunner.When("I go to \"/\" 40 times"); #line hidden testRunner.CollectScenarioErrors(); }