mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
- Adding some basic perf test cases.
--HG-- branch : dev
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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
|
||||
|
40
src/Orchard.Profile/Tests/Profiling.feature.cs
generated
40
src/Orchard.Profile/Tests/Profiling.feature.cs
generated
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user