- Adding some basic perf test cases.

--HG--
branch : dev
This commit is contained in:
Suha Can
2010-05-13 12:18:07 -07:00
parent e876cf8928
commit cbdadf1862
3 changed files with 52 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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

View File

@@ -2,7 +2,7 @@
// <auto-generated>
// 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();
}