Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Commit 8f72f27

Browse files
author
Anastasia Baranchenkova
committed
Add perftest for exceptions
1 parent 66b86d5 commit 8f72f27

File tree

8 files changed

+1101
-19
lines changed

8 files changed

+1101
-19
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Microsoft.AspNet.Mvc;
2+
3+
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
4+
5+
namespace Aspnet5_EmptyApp_46.Controllers
6+
{
7+
public class ExceptionController : Controller
8+
{
9+
public string Throw()
10+
{
11+
throw new System.Exception("Unhandled Exception from controller.");
12+
}
13+
}
14+
}

test/PerfTest/Aspnet5_EmptyApp_46/Startup.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Aspnet5_EmptyApp_46
55
{
6-
public class Startup2
6+
public class Startup
77
{
88
// For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=398940
99
public void ConfigureServices(IServiceCollection services)
@@ -17,14 +17,14 @@ public void Configure(IApplicationBuilder app)
1717
// Add MVC to the request pipeline.
1818
app.UseMvc(routes =>
1919
{
20-
//routes.MapRoute(
21-
// name: "default",
22-
// template: "{controller}/{action}/{id?}",
23-
// defaults: new { controller = "Home", action = "Index" });
24-
2520
routes.MapRoute(
2621
name: "Request",
2722
template: "{controller}/{action}/{loadTimeInMs}");
23+
24+
routes.MapRoute(
25+
name: "default",
26+
template: "{controller}/{action}/{id?}");
27+
//defaults: new { controller = "Home", action = "Index" });
2828
});
2929
}
3030
}

test/PerfTest/Aspnet5_EmptyApp_46/StartupWithAI.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
namespace Aspnet5_EmptyApp_46
88
{
9-
public class Startup
9+
public class Startup2
1010
{
11-
public Startup(IHostingEnvironment env)
11+
public Startup2(IHostingEnvironment env)
1212
{
1313
// Setup configuration sources.
1414
Configuration = new Configuration()
@@ -37,14 +37,14 @@ public void Configure(IApplicationBuilder app)
3737
// Add MVC to the request pipeline.
3838
app.UseMvc(routes =>
3939
{
40-
//routes.MapRoute(
41-
// name: "default",
42-
// template: "{controller}/{action}/{id?}",
43-
// defaults: new { controller = "Home", action = "Index" });
44-
4540
routes.MapRoute(
4641
name: "Request",
4742
template: "{controller}/{action}/{loadTimeInMs}");
43+
44+
routes.MapRoute(
45+
name: "default",
46+
template: "{controller}/{action}/{id?}");
47+
//defaults: new { controller = "Home", action = "Index" });
4848
});
4949
}
5050
}

test/PerfTest/PerfTest/DoRequestLoad.loadtest renamed to test/PerfTest/PerfTest/LoadTests/DoRequestLoad.loadtest

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LoadTest Name="DoRequestLoad" Description="" Owner="" storage="c:\projects\github\aspnetv5\test\perftest\perftest\dorequestload.loadtest" Priority="2147483647" Enabled="true" CssProjectStructure="" CssIteration="" DeploymentItemsEditable="" WorkItemIds="" TraceLevel="None" CurrentRunConfig="10MinRun" Id="0caba400-f694-47b3-8c7a-523703b3c661" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
2+
<LoadTest Name="DoRequestLoad" Description="" Owner="" storage="c:\projects\github\aspnetv5\test\perftest\perftest\loadtests\dorequestload.loadtest" Priority="2147483647" Enabled="true" CssProjectStructure="" CssIteration="" DeploymentItemsEditable="" WorkItemIds="" TraceLevel="None" CurrentRunConfig="Run" Id="0caba400-f694-47b3-8c7a-523703b3c661" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
33
<Scenarios>
44
<Scenario Name="BasicRequestTest" DelayBetweenIterations="0" PercentNewUsers="0" IPSwitching="false" TestMixType="PercentageOfTestsStarted" ApplyDistributionToPacingDelay="true" MaxTestIterations="0" DisableDuringWarmup="false" DelayStartTime="0" AllowedAgents="">
55
<ThinkProfile Value="0" Pattern="Off" />
66
<LoadProfile Pattern="Constant" InitialUsers="5" />
77
<TestMix>
8-
<TestProfile Name="DoRequest" Path="dorequest.webtest" Id="b06a2618-3c02-4383-8f9e-c896980b8dd4" Percentage="100" Type="Microsoft.VisualStudio.TestTools.WebStress.DeclarativeWebTestElement, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
8+
<TestProfile Name="DoRequest" Path="..\webtests\dorequest.webtest" Id="b06a2618-3c02-4383-8f9e-c896980b8dd4" Percentage="100" Type="Microsoft.VisualStudio.TestTools.WebStress.DeclarativeWebTestElement, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
99
</TestMix>
1010
<BrowserMix>
1111
<BrowserProfile Percentage="100">
@@ -1029,7 +1029,7 @@
10291029
</CounterSet>
10301030
</CounterSets>
10311031
<RunConfigurations>
1032-
<RunConfiguration Name="10MinRun" Description="" ResultsStoreType="Database" TimingDetailsStorage="None" SaveTestLogsOnError="true" SaveTestLogsFrequency="0" MaxErrorDetails="200" MaxErrorsPerType="1000" MaxThresholdViolations="1000" MaxRequestUrlsReported="1000" UseTestIterations="false" RunDuration="600" WarmupTime="60" CoolDownTime="0" TestIterations="100" WebTestConnectionModel="ConnectionPerUser" WebTestConnectionPoolSize="50" SampleRate="5" ValidationLevel="High" SqlTracingConnectString="" SqlTracingConnectStringDisplayValue="" SqlTracingDirectory="" SqlTracingEnabled="false" SqlTracingFileCount="2" SqlTracingRolloverEnabled="true" SqlTracingMinimumDuration="500" RunUnitTestsInAppDomain="true" CoreCount="0">
1032+
<RunConfiguration Name="Run" Description="" ResultsStoreType="Database" TimingDetailsStorage="None" SaveTestLogsOnError="true" SaveTestLogsFrequency="0" MaxErrorDetails="200" MaxErrorsPerType="1000" MaxThresholdViolations="1000" MaxRequestUrlsReported="1000" UseTestIterations="false" RunDuration="600" WarmupTime="60" CoolDownTime="0" TestIterations="100" WebTestConnectionModel="ConnectionPerUser" WebTestConnectionPoolSize="50" SampleRate="5" ValidationLevel="High" SqlTracingConnectString="" SqlTracingConnectStringDisplayValue="" SqlTracingDirectory="" SqlTracingEnabled="false" SqlTracingFileCount="2" SqlTracingRolloverEnabled="true" SqlTracingMinimumDuration="500" RunUnitTestsInAppDomain="true" CoreCount="0">
10331033
<CounterSetMappings>
10341034
<CounterSetMapping ComputerName="CN-PERFTESTS">
10351035
<CounterSetReferences>

0 commit comments

Comments
 (0)