Commit 55f0f128 55f0f128af6af74c79e91352de1561105f261a1e by Christian Gerdes

Ny unikt per test iteration i setParameter loadtest plugin

1 parent 99213065
1  1 
2 Microsoft Visual Studio Solution File, Format Version 12.00 2 Microsoft Visual Studio Solution File, Format Version 12.00
3 # Visual Studio 2013 3 # Visual Studio 14
4 VisualStudioVersion = 12.0.31101.0 4 VisualStudioVersion = 14.0.24720.0
5 MinimumVisualStudioVersion = 10.0.40219.1 5 MinimumVisualStudioVersion = 10.0.40219.1
6 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8ADAFB91-C10D-42C8-8499-30B3692C27F3}" 6 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8ADAFB91-C10D-42C8-8499-30B3692C27F3}"
7 ProjectSection(SolutionItems) = preProject 7 ProjectSection(SolutionItems) = preProject
8 LIL_VSTT_Plugins.vsmdi = LIL_VSTT_Plugins.vsmdi 8 LIL_VSTT_Plugins.vsmdi = LIL_VSTT_Plugins.vsmdi
9 Local.testsettings = Local.testsettings 9 Local.testsettings = Local.testsettings
10 TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
11 EndProjectSection 10 EndProjectSection
12 EndProject 11 EndProject
13 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LIL_VSTT_Plugins", "LIL_VSTT_Plugins\LIL_VSTT_Plugins.csproj", "{06A22593-601E-4386-917A-9835DE30E14E}" 12 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LIL_VSTT_Plugins", "LIL_VSTT_Plugins\LIL_VSTT_Plugins.csproj", "{06A22593-601E-4386-917A-9835DE30E14E}"
......
...@@ -101,6 +101,7 @@ namespace LIL_VSTT_Plugins ...@@ -101,6 +101,7 @@ namespace LIL_VSTT_Plugins
101 private bool myUseRandom = true; 101 private bool myUseRandom = true;
102 private bool myUseUnique = false; 102 private bool myUseUnique = false;
103 private bool myUseUniqueIteration = false; 103 private bool myUseUniqueIteration = false;
104 private bool myUseUniqueTestIteration = false;
104 private bool myLogToFile = false; 105 private bool myLogToFile = false;
105 private bool myLogAppendID = false; 106 private bool myLogAppendID = false;
106 private bool myLogAppendName = false; 107 private bool myLogAppendName = false;
...@@ -110,8 +111,11 @@ namespace LIL_VSTT_Plugins ...@@ -110,8 +111,11 @@ namespace LIL_VSTT_Plugins
110 111
111 private StringCollection myParams = new StringCollection(); 112 private StringCollection myParams = new StringCollection();
112 private Random random = new Random(); 113 private Random random = new Random();
114 private Dictionary<string, int> testIterations = new Dictionary<string, int>();
113 private LoadTest m_loadTest; 115 private LoadTest m_loadTest;
114 116
117 #region guiparams
118
115 [DisplayName("CSV filens sökväg")] 119 [DisplayName("CSV filens sökväg")]
116 [Description("Ange den fullständiga sökvägen till CSV filen. Observera att filen behöver finnas på alla agenterna också om du inte kör lokalt.")] 120 [Description("Ange den fullständiga sökvägen till CSV filen. Observera att filen behöver finnas på alla agenterna också om du inte kör lokalt.")]
117 [DefaultValue("C:\\Userdata.csv")] 121 [DefaultValue("C:\\Userdata.csv")]
...@@ -194,7 +198,7 @@ namespace LIL_VSTT_Plugins ...@@ -194,7 +198,7 @@ namespace LIL_VSTT_Plugins
194 } 198 }
195 199
196 [DisplayName("Välj unikt per Iteration?")] 200 [DisplayName("Välj unikt per Iteration?")]
197 [Description("Ange True om du vill att varje LoadTest VU ska ha sitt eget unika värde för varje iteration, dvs aldrig återanvändas av någon under testet.")] 201 [Description("Ange True om du vill att varje LoadTest VU ska ha sitt eget unika värde för varje iteration av alla tester, dvs aldrig återanvändas av någon VU i något test. Gäller före unikt per test iteration.")]
198 [DefaultValue(false)] 202 [DefaultValue(false)]
199 public bool Use_UniqueIteration 203 public bool Use_UniqueIteration
200 { 204 {
...@@ -202,6 +206,15 @@ namespace LIL_VSTT_Plugins ...@@ -202,6 +206,15 @@ namespace LIL_VSTT_Plugins
202 set { myUseUniqueIteration = value; } 206 set { myUseUniqueIteration = value; }
203 } 207 }
204 208
209 [DisplayName("Välj unikt per Test Iteration?")]
210 [Description("Ange True om du vill att varje LoadTest VU ska ha sitt eget unika värde för varje iteration av respektive test, dvs aldrig återanvändas av någon VU som kör samma test.")]
211 [DefaultValue(false)]
212 public bool Use_UniqueTestIteration
213 {
214 get { return myUseUniqueTestIteration; }
215 set { myUseUniqueTestIteration = value; }
216 }
217
205 [DisplayName("Välj sekventiell loop?")] 218 [DisplayName("Välj sekventiell loop?")]
206 [Description("Ange true om du vill börja om från början om sekventiell läsning får slut på värden. Gäller även Unik läsning.")] 219 [Description("Ange true om du vill börja om från början om sekventiell läsning får slut på värden. Gäller även Unik läsning.")]
207 [DefaultValue(false)] 220 [DefaultValue(false)]
...@@ -247,6 +260,8 @@ namespace LIL_VSTT_Plugins ...@@ -247,6 +260,8 @@ namespace LIL_VSTT_Plugins
247 set { myAgentNames = value; } 260 set { myAgentNames = value; }
248 } 261 }
249 262
263 #endregion
264
250 public void Initialize(LoadTest loadTest) 265 public void Initialize(LoadTest loadTest)
251 { 266 {
252 // Only run on specific agents if specified 267 // Only run on specific agents if specified
...@@ -260,6 +275,8 @@ namespace LIL_VSTT_Plugins ...@@ -260,6 +275,8 @@ namespace LIL_VSTT_Plugins
260 m_loadTest = loadTest; 275 m_loadTest = loadTest;
261 if (myUseUniqueIteration) 276 if (myUseUniqueIteration)
262 m_loadTest.TestStarting += new EventHandler<TestStartingEventArgs>(loadTestStartingUniqueIteration); 277 m_loadTest.TestStarting += new EventHandler<TestStartingEventArgs>(loadTestStartingUniqueIteration);
278 else if(myUseUniqueTestIteration)
279 m_loadTest.TestStarting += new EventHandler<TestStartingEventArgs>(loadTestStartingUniqueTestIteration);
263 else if (myUseUnique) 280 else if (myUseUnique)
264 m_loadTest.TestStarting += new EventHandler<TestStartingEventArgs>(loadTestStartingUnique); 281 m_loadTest.TestStarting += new EventHandler<TestStartingEventArgs>(loadTestStartingUnique);
265 else if (myUseRandom) 282 else if (myUseRandom)
...@@ -317,10 +334,22 @@ namespace LIL_VSTT_Plugins ...@@ -317,10 +334,22 @@ namespace LIL_VSTT_Plugins
317 setParameters(this.getSeqUser(e.TestIterationNumber - 1), e); 334 setParameters(this.getSeqUser(e.TestIterationNumber - 1), e);
318 } 335 }
319 336
337 void loadTestStartingUniqueTestIteration(object sender, TestStartingEventArgs e)
338 {
339 if (shouldRun(e))
340 {
341 int testIteration = getTestIterationNumber(e.TestName);
342 e.UserContext["TestIteration"] = testIteration;
343 e.TestContextProperties.Add("TestIteration", testIteration);
344 setParameters(this.getSeqUser(testIteration - 1), e);
345 }
346 }
347
320 void setParameters(string user, TestStartingEventArgs e) 348 void setParameters(string user, TestStartingEventArgs e)
321 { 349 {
322 if (shouldRun(e)) 350 if (shouldRun(e))
323 { 351 {
352
324 // Add context parameters to the starting test 353 // Add context parameters to the starting test
325 int numParams = 1; 354 int numParams = 1;
326 if (myHasColName == true && myColNames.Contains(',')) numParams = countColumns(myColNames); 355 if (myHasColName == true && myColNames.Contains(',')) numParams = countColumns(myColNames);
...@@ -338,6 +367,21 @@ namespace LIL_VSTT_Plugins ...@@ -338,6 +367,21 @@ namespace LIL_VSTT_Plugins
338 } 367 }
339 } 368 }
340 369
370 int getTestIterationNumber(string testName)
371 {
372 int num = 1;
373 lock (testIterations)
374 {
375 if (testIterations.ContainsKey(testName) == false)
376 {
377 testIterations[testName] = 0;
378 }
379 num = testIterations[testName] + 1;
380 testIterations[testName] = num;
381 }
382 return num;
383 }
384
341 int countColumns(string input) 385 int countColumns(string input)
342 { 386 {
343 int count = 1; 387 int count = 1;
......
...@@ -2,9 +2,26 @@ ...@@ -2,9 +2,26 @@
2 <TestSettings name="Local" id="f9146b42-ca07-41ed-9af4-6ec2afc90583" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> 2 <TestSettings name="Local" id="f9146b42-ca07-41ed-9af4-6ec2afc90583" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
3 <Description>These are default test settings for a local test run.</Description> 3 <Description>These are default test settings for a local test run.</Description>
4 <Deployment enabled="false" /> 4 <Deployment enabled="false" />
5 <Execution> 5 <Execution hostProcessPlatform="MSIL">
6 <TestTypeSpecific /> 6 <TestTypeSpecific>
7 <AgentRule name="Execution Agents"> 7 <UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b">
8 <AssemblyResolution>
9 <TestDirectory useLoadContext="true" />
10 </AssemblyResolution>
11 </UnitTestRunConfig>
12 <WebTestRunConfiguration testTypeId="4e7599fa-5ecb-43e9-a887-cd63cf72d207">
13 <Browser name="Internet Explorer 9.0" MaxConnections="6">
14 <Headers>
15 <Header name="User-Agent" value="Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)" />
16 <Header name="Accept" value="*/*" />
17 <Header name="Accept-Language" value="{{$IEAcceptLanguage}}" />
18 <Header name="Accept-Encoding" value="GZIP" />
19 </Headers>
20 </Browser>
21 </WebTestRunConfiguration>
22 </TestTypeSpecific>
23 <AgentRule name="LocalMachineDefaultRole">
8 </AgentRule> 24 </AgentRule>
9 </Execution> 25 </Execution>
26 <Properties />
10 </TestSettings> 27 </TestSettings>
...\ No newline at end of file ...\ No newline at end of file
......
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <LoadTest Name="LoadTest1" Description="" Owner="" storage="c:\users\gerdes\documents\visual studio 2010\lil_vstt_plugins\testproject1\loadtest1.loadtest" Priority="2147483647" Enabled="true" CssProjectStructure="" CssIteration="" DeploymentItemsEditable="" WorkItemIds="" TraceLevel="None" CurrentRunConfig="Run Settings1" Id="0e35c1c4-9214-4fc4-907f-42e11a00845a" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> 2 <LoadTest Name="LoadTest1" Description="" Owner="" storage="c:\users\wflg\source\repos\vstt-plugins\testproject1\loadtest1.loadtest" Priority="2147483647" Enabled="true" CssProjectStructure="" CssIteration="" DeploymentItemsEditable="" WorkItemIds="" TraceLevel="None" CurrentRunConfig="Run Settings1" Id="0e35c1c4-9214-4fc4-907f-42e11a00845a" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
3 <Scenarios> 3 <Scenarios>
4 <Scenario Name="Scenario1" DelayBetweenIterations="1" PercentNewUsers="0" IPSwitching="true" TestMixType="PercentageOfUsersRunning" ApplyDistributionToPacingDelay="true" MaxTestIterations="0" DisableDuringWarmup="false" DelayStartTime="0" AllowedAgents=""> 4 <Scenario Name="Scenario1" DelayBetweenIterations="1" PercentNewUsers="0" IPSwitching="true" TestMixType="PercentageOfUsersRunning" ApplyDistributionToPacingDelay="true" MaxTestIterations="0" DisableDuringWarmup="false" DelayStartTime="0" AllowedAgents="">
5 <ThinkProfile Value="0.2" Pattern="NormalDistribution" /> 5 <ThinkProfile Value="0.2" Pattern="NormalDistribution" />
6 <LoadProfile Pattern="Constant" InitialUsers="10" /> 6 <LoadProfile Pattern="Constant" InitialUsers="4" />
7 <TestMix> 7 <TestMix>
8 <TestProfile Name="WebTest1" Path="webtest1.webtest" Id="c649760b-6dd8-4210-8a6d-3c6596d08668" Percentage="100" Type="Microsoft.VisualStudio.TestTools.WebStress.DeclarativeWebTestElement, Microsoft.VisualStudio.QualityTools.LoadTest, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 8 <TestProfile Name="WebTest2" Path="webtest2.webtest" Id="9af8354e-b982-4f5a-80f9-777eaed55003" Percentage="100" Type="Microsoft.VisualStudio.TestTools.WebStress.DeclarativeWebTestElement, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
9 </TestMix> 9 </TestMix>
10 <BrowserMix> 10 <BrowserMix>
11 <BrowserProfile Percentage="100"> 11 <BrowserProfile Percentage="100">
12 <Browser Name="Internet Explorer 7.0" MaxConnections="2"> 12 <Browser Name="Internet Explorer 11.0" MaxConnections="6">
13 <Headers> 13 <Headers>
14 <Header Name="User-Agent" Value="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" /> 14 <Header Name="User-Agent" Value="Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" />
15 <Header Name="Accept" Value="*/*" /> 15 <Header Name="Accept" Value="*/*" />
16 <Header Name="Accept-Language" Value="{{$IEAcceptLanguage}}" /> 16 <Header Name="Accept-Language" Value="{{$IEAcceptLanguage}}" />
17 <Header Name="Accept-Encoding" Value="GZIP" /> 17 <Header Name="Accept-Encoding" Value="GZIP" />
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
92 <Counter Name="Avg. Response Time" /> 92 <Counter Name="Avg. Response Time" />
93 <Counter Name="Avg. Connection Wait Time"> 93 <Counter Name="Avg. Connection Wait Time">
94 <ThresholdRules> 94 <ThresholdRules>
95 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 95 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
96 <RuleParameters> 96 <RuleParameters>
97 <RuleParameter Name="DependentCategory" Value="LoadTest:Page" /> 97 <RuleParameter Name="DependentCategory" Value="LoadTest:Page" />
98 <RuleParameter Name="DependentCounter" Value="Avg. Page Time" /> 98 <RuleParameter Name="DependentCounter" Value="Avg. Page Time" />
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
157 <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" /> 157 <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" />
158 <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes"> 158 <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes">
159 <ThresholdRules> 159 <ThresholdRules>
160 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 160 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
161 <RuleParameters> 161 <RuleParameters>
162 <RuleParameter Name="DependentCategory" Value="Network Interface" /> 162 <RuleParameter Name="DependentCategory" Value="Network Interface" />
163 <RuleParameter Name="DependentCounter" Value="Current Bandwidth" /> 163 <RuleParameter Name="DependentCounter" Value="Current Bandwidth" />
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
303 <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" /> 303 <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" />
304 <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes"> 304 <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes">
305 <ThresholdRules> 305 <ThresholdRules>
306 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 306 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
307 <RuleParameters> 307 <RuleParameters>
308 <RuleParameter Name="DependentCategory" Value="Network Interface" /> 308 <RuleParameter Name="DependentCategory" Value="Network Interface" />
309 <RuleParameter Name="DependentCounter" Value="Current Bandwidth" /> 309 <RuleParameter Name="DependentCounter" Value="Current Bandwidth" />
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
416 </CounterSet> 416 </CounterSet>
417 </CounterSets> 417 </CounterSets>
418 <RunConfigurations> 418 <RunConfigurations>
419 <RunConfiguration Name="Run Settings1" Description="" ResultsStoreType="Database" TimingDetailsStorage="AllIndividualDetails" SaveTestLogsOnError="true" SaveTestLogsFrequency="1" MaxErrorDetails="200" MaxErrorsPerType="1000" MaxThresholdViolations="1000" MaxRequestUrlsReported="1000" UseTestIterations="true" RunDuration="600" WarmupTime="0" CoolDownTime="0" TestIterations="20" WebTestConnectionModel="ConnectionPerUser" WebTestConnectionPoolSize="50" SampleRate="5" ValidationLevel="High" SqlTracingConnectString="" SqlTracingConnectStringDisplayValue="" SqlTracingDirectory="" SqlTracingEnabled="false" SqlTracingMinimumDuration="500" RunUnitTestsInAppDomain="true"> 419 <RunConfiguration Name="Run Settings1" Description="" ResultsStoreType="Database" TimingDetailsStorage="AllIndividualDetails" SaveTestLogsOnError="true" SaveTestLogsFrequency="1" MaxErrorDetails="200" MaxErrorsPerType="1000" MaxThresholdViolations="1000" MaxRequestUrlsReported="1000" UseTestIterations="true" RunDuration="600" WarmupTime="0" CoolDownTime="0" TestIterations="8" WebTestConnectionModel="ConnectionPerUser" WebTestConnectionPoolSize="50" SampleRate="5" ValidationLevel="High" SqlTracingConnectString="" SqlTracingConnectStringDisplayValue="" SqlTracingDirectory="" SqlTracingEnabled="false" SqlTracingFileCount="2" SqlTracingRolloverEnabled="true" SqlTracingMinimumDuration="500" RunUnitTestsInAppDomain="true" CoreCount="0" UseMultipleIPs="false" TestAgentConfiguration="Default" AgentDiagnosticsLevel="Warning">
420 <CounterSetMappings> 420 <CounterSetMappings>
421 <CounterSetMapping ComputerName="[CONTROLLER MACHINE]"> 421 <CounterSetMapping ComputerName="[CONTROLLER MACHINE]">
422 <CounterSetReferences> 422 <CounterSetReferences>
...@@ -432,4 +432,25 @@ ...@@ -432,4 +432,25 @@
432 </CounterSetMappings> 432 </CounterSetMappings>
433 </RunConfiguration> 433 </RunConfiguration>
434 </RunConfigurations> 434 </RunConfigurations>
435 <LoadTestPlugins>
436 <LoadTestPlugin Classname="LIL_VSTT_Plugins.SetTestParameter, LIL_VSTT_Plugins, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null" DisplayName="Set Test Context Parameters" Description="(C) Copyright 2011 LIGHTS IN LINE AB&#xD;&#xA;Sätter parametrar i testcontextet för tester i mixen hämtat från en CSV fil">
437 <RuleParameters>
438 <RuleParameter Name="Connection_String" Value="C:\tmp\Userdata.csv" />
439 <RuleParameter Name="Has_col_name" Value="False" />
440 <RuleParameter Name="Autosplit" Value="False" />
441 <RuleParameter Name="Parameter_Name" Value="Parameter1" />
442 <RuleParameter Name="LogFilePathString" Value="C:\Temp\Fungerande.log" />
443 <RuleParameter Name="LogFileAppendID" Value="False" />
444 <RuleParameter Name="LogFileAppendName" Value="False" />
445 <RuleParameter Name="Use_Random" Value="False" />
446 <RuleParameter Name="Use_Unique" Value="False" />
447 <RuleParameter Name="Use_UniqueIteration" Value="True" />
448 <RuleParameter Name="Use_Loop" Value="False" />
449 <RuleParameter Name="Log_To_File" Value="False" />
450 <RuleParameter Name="Test_Names" Value="" />
451 <RuleParameter Name="Scenario_Names" Value="" />
452 <RuleParameter Name="Agent_Names" Value="" />
453 </RuleParameters>
454 </LoadTestPlugin>
455 </LoadTestPlugins>
435 </LoadTest> 456 </LoadTest>
...\ No newline at end of file ...\ No newline at end of file
......
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <LoadTest Name="LoadTest2" Description="" Owner="" storage="c:\users\gerdes\documents\visual studio 2010\lil_vstt_plugins\testproject1\loadtest2.loadtest" Priority="2147483647" Enabled="true" CssProjectStructure="" CssIteration="" DeploymentItemsEditable="" WorkItemIds="" TraceLevel="None" CurrentRunConfig="Run Settings1" Id="fc290026-ccfc-431e-9205-3b60d7d6f429" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> 2 <LoadTest Name="LoadTest2" Description="" Owner="" storage="c:\users\wflg\source\repos\vstt-plugins\testproject1\loadtest2.loadtest" Priority="2147483647" Enabled="true" CssProjectStructure="" CssIteration="" DeploymentItemsEditable="" WorkItemIds="" TraceLevel="None" CurrentRunConfig="Run Settings1" Id="fc290026-ccfc-431e-9205-3b60d7d6f429" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
3 <Scenarios> 3 <Scenarios>
4 <Scenario Name="Scenario1" DelayBetweenIterations="1" PercentNewUsers="0" IPSwitching="true" TestMixType="PercentageOfUsersRunning" ApplyDistributionToPacingDelay="true" MaxTestIterations="0" DisableDuringWarmup="false" DelayStartTime="0" AllowedAgents=""> 4 <Scenario Name="Scenario1" DelayBetweenIterations="1" PercentNewUsers="0" IPSwitching="true" TestMixType="PercentageOfUsersRunning" ApplyDistributionToPacingDelay="true" MaxTestIterations="0" DisableDuringWarmup="false" DelayStartTime="0" AllowedAgents="">
5 <ThinkProfile Value="0.2" Pattern="NormalDistribution" /> 5 <ThinkProfile Value="0.2" Pattern="NormalDistribution" />
6 <LoadProfile Pattern="Constant" InitialUsers="1" /> 6 <LoadProfile Pattern="Constant" InitialUsers="1" />
7 <TestMix> 7 <TestMix>
8 <TestProfile Name="TestMethod1" Path="bin\release\testproject1.dll" Id="59863143-3238-122e-4d8a-637b491cc755" Percentage="100" Type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 8 <TestProfile Name="WebTest1" Path="webtest1.webtest" Id="c649760b-6dd8-4210-8a6d-3c6596d08668" Percentage="100" Type="Microsoft.VisualStudio.TestTools.WebStress.DeclarativeWebTestElement, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
9 </TestMix> 9 </TestMix>
10 <BrowserMix> 10 <BrowserMix>
11 <BrowserProfile Percentage="100"> 11 <BrowserProfile Percentage="100">
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
92 <Counter Name="Avg. Response Time" /> 92 <Counter Name="Avg. Response Time" />
93 <Counter Name="Avg. Connection Wait Time"> 93 <Counter Name="Avg. Connection Wait Time">
94 <ThresholdRules> 94 <ThresholdRules>
95 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 95 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
96 <RuleParameters> 96 <RuleParameters>
97 <RuleParameter Name="DependentCategory" Value="LoadTest:Page" /> 97 <RuleParameter Name="DependentCategory" Value="LoadTest:Page" />
98 <RuleParameter Name="DependentCounter" Value="Avg. Page Time" /> 98 <RuleParameter Name="DependentCounter" Value="Avg. Page Time" />
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
157 <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" /> 157 <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" />
158 <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes"> 158 <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes">
159 <ThresholdRules> 159 <ThresholdRules>
160 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 160 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
161 <RuleParameters> 161 <RuleParameters>
162 <RuleParameter Name="DependentCategory" Value="Network Interface" /> 162 <RuleParameter Name="DependentCategory" Value="Network Interface" />
163 <RuleParameter Name="DependentCounter" Value="Current Bandwidth" /> 163 <RuleParameter Name="DependentCounter" Value="Current Bandwidth" />
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
303 <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" /> 303 <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" />
304 <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes"> 304 <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes">
305 <ThresholdRules> 305 <ThresholdRules>
306 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 306 <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
307 <RuleParameters> 307 <RuleParameters>
308 <RuleParameter Name="DependentCategory" Value="Network Interface" /> 308 <RuleParameter Name="DependentCategory" Value="Network Interface" />
309 <RuleParameter Name="DependentCounter" Value="Current Bandwidth" /> 309 <RuleParameter Name="DependentCounter" Value="Current Bandwidth" />
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
416 </CounterSet> 416 </CounterSet>
417 </CounterSets> 417 </CounterSets>
418 <RunConfigurations> 418 <RunConfigurations>
419 <RunConfiguration Name="Run Settings1" Description="" ResultsStoreType="Database" TimingDetailsStorage="AllIndividualDetails" SaveTestLogsOnError="true" SaveTestLogsFrequency="1" MaxErrorDetails="200" MaxErrorsPerType="1000" MaxThresholdViolations="1000" MaxRequestUrlsReported="1000" UseTestIterations="true" RunDuration="600" WarmupTime="0" CoolDownTime="0" TestIterations="20" WebTestConnectionModel="ConnectionPerUser" WebTestConnectionPoolSize="50" SampleRate="5" ValidationLevel="High" SqlTracingConnectString="" SqlTracingConnectStringDisplayValue="" SqlTracingDirectory="" SqlTracingEnabled="false" SqlTracingMinimumDuration="500" RunUnitTestsInAppDomain="true"> 419 <RunConfiguration Name="Run Settings1" Description="" ResultsStoreType="Database" TimingDetailsStorage="AllIndividualDetails" SaveTestLogsOnError="true" SaveTestLogsFrequency="1" MaxErrorDetails="200" MaxErrorsPerType="1000" MaxThresholdViolations="1000" MaxRequestUrlsReported="1000" UseTestIterations="true" RunDuration="600" WarmupTime="0" CoolDownTime="0" TestIterations="20" WebTestConnectionModel="ConnectionPerUser" WebTestConnectionPoolSize="50" SampleRate="5" ValidationLevel="High" SqlTracingConnectString="" SqlTracingConnectStringDisplayValue="" SqlTracingDirectory="" SqlTracingEnabled="false" SqlTracingFileCount="2" SqlTracingRolloverEnabled="true" SqlTracingMinimumDuration="500" RunUnitTestsInAppDomain="true" CoreCount="0" UseMultipleIPs="false" TestAgentConfiguration="Default" AgentDiagnosticsLevel="Warning">
420 <CounterSetMappings> 420 <CounterSetMappings>
421 <CounterSetMapping ComputerName="[CONTROLLER MACHINE]"> 421 <CounterSetMapping ComputerName="[CONTROLLER MACHINE]">
422 <CounterSetReferences> 422 <CounterSetReferences>
...@@ -432,44 +432,4 @@ ...@@ -432,44 +432,4 @@
432 </CounterSetMappings> 432 </CounterSetMappings>
433 </RunConfiguration> 433 </RunConfiguration>
434 </RunConfigurations> 434 </RunConfigurations>
435 <LoadTestPlugins>
436 <LoadTestPlugin Classname="LIL_VSTT_Plugins.SetTestParameter, LIL_VSTT_Plugins, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null" DisplayName="Set Test Context Parameters" Description="(C) Copyright 2011 LIGHTS IN LINE AB&#xD;&#xA;Sätter parametrar i testcontextet för tester i mixen hämtat från en CSV fil">
437 <RuleParameters>
438 <RuleParameter Name="Connection_String" Value="C:\Users\gerdes\Userdata.csv" />
439 <RuleParameter Name="Has_col_name" Value="True" />
440 <RuleParameter Name="Autosplit" Value="False" />
441 <RuleParameter Name="Parameter_Name" Value="UserName2" />
442 <RuleParameter Name="LogFilePathString" Value="C:\Users\gerdes\Fungerande2.log" />
443 <RuleParameter Name="LogFileAppendID" Value="True" />
444 <RuleParameter Name="LogFileAppendName" Value="False" />
445 <RuleParameter Name="Use_Random" Value="False" />
446 <RuleParameter Name="Use_Unique" Value="False" />
447 <RuleParameter Name="Use_UniqueIteration" Value="False" />
448 <RuleParameter Name="Use_Loop" Value="True" />
449 <RuleParameter Name="Log_To_File" Value="True" />
450 <RuleParameter Name="Test_Names" Value="" />
451 <RuleParameter Name="Scenario_Names" Value="" />
452 <RuleParameter Name="Agent_Names" Value="" />
453 </RuleParameters>
454 </LoadTestPlugin>
455 <LoadTestPlugin Classname="LIL_VSTT_Plugins.SetTestParameter, LIL_VSTT_Plugins, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null" DisplayName="Set Test Context Parameters" Description="(C) Copyright 2011 LIGHTS IN LINE AB&#xD;&#xA;Sätter parametrar i testcontextet för tester i mixen hämtat från en CSV fil">
456 <RuleParameters>
457 <RuleParameter Name="Connection_String" Value="C:\Users\gerdes\Userdata.csv" />
458 <RuleParameter Name="Has_col_name" Value="True" />
459 <RuleParameter Name="Autosplit" Value="False" />
460 <RuleParameter Name="Parameter_Name" Value="UserName" />
461 <RuleParameter Name="LogFilePathString" Value="C:\Users\gerdes\Fungerande.log" />
462 <RuleParameter Name="LogFileAppendID" Value="True" />
463 <RuleParameter Name="LogFileAppendName" Value="False" />
464 <RuleParameter Name="Use_Random" Value="False" />
465 <RuleParameter Name="Use_Unique" Value="False" />
466 <RuleParameter Name="Use_UniqueIteration" Value="False" />
467 <RuleParameter Name="Use_Loop" Value="True" />
468 <RuleParameter Name="Log_To_File" Value="True" />
469 <RuleParameter Name="Test_Names" Value="" />
470 <RuleParameter Name="Scenario_Names" Value="" />
471 <RuleParameter Name="Agent_Names" Value="" />
472 </RuleParameters>
473 </LoadTestPlugin>
474 </LoadTestPlugins>
475 </LoadTest> 435 </LoadTest>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -46,7 +46,9 @@ ...@@ -46,7 +46,9 @@
46 <Prefer32Bit>false</Prefer32Bit> 46 <Prefer32Bit>false</Prefer32Bit>
47 </PropertyGroup> 47 </PropertyGroup>
48 <ItemGroup> 48 <ItemGroup>
49 <Reference Include="Microsoft.VisualStudio.QualityTools.LoadTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 49 <Reference Include="Microsoft.VisualStudio.QualityTools.LoadTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
50 <Private>False</Private>
51 </Reference>
50 <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> 52 <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
51 <Reference Include="Microsoft.VisualStudio.QualityTools.WebTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 53 <Reference Include="Microsoft.VisualStudio.QualityTools.WebTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
52 <Reference Include="System" /> 54 <Reference Include="System" />
...@@ -71,7 +73,13 @@ ...@@ -71,7 +73,13 @@
71 <None Include="LoadTest1.loadtest"> 73 <None Include="LoadTest1.loadtest">
72 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 74 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
73 </None> 75 </None>
74 <None Include="WebTest2.webtest"> 76 <None Include="LoadTest3.loadtest">
77 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
78 </None>
79 <None Include="WebTest22.webtest">
80 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
81 </None>
82 <None Include="WebTest21.webtest">
75 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 83 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
76 </None> 84 </None>
77 <None Include="WebTest3.webtest"> 85 <None Include="WebTest3.webtest">
......
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <WebTest Name="WebTest2" Id="9af8354e-b982-4f5a-80f9-777eaed55003" Owner="" Priority="2147483647" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="" StopOnError="False" RecordedResultFile="WebTest2.0af40a55-b204-4b39-8847-71e26a47524d.rec.webtestresult"> 2 <WebTest Name="WebTest2" Id="9af8354e-b982-4f5a-80f9-777eaed55003" Owner="" Priority="2147483647" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="WebTest2.0af40a55-b204-4b39-8847-71e26a47524d.rec.webtestresult" ResultsLocale="">
3 <Items> 3 <Items>
4 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" /> 4 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
5 <TransactionTimer Name="Transaction2"> 5 <TransactionTimer Name="Transaction2">
6 <Items> 6 <Items>
7 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" /> 7 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
8 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" /> 8 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
9 </Items> 9 </Items>
10 </TransactionTimer> 10 </TransactionTimer>
11 </Items> 11 </Items>
12 <ContextParameters>
13 <ContextParameter Name="Parameter1" Value="Testval" />
14 </ContextParameters>
12 <WebTestPlugins> 15 <WebTestPlugins>
13 <WebTestPlugin Classname="LIL_VSTT_Plugins.dataGenTimestamp, LIL_VSTT_Plugins, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null" DisplayName="Data Generator Timestamp" Description="(C) Copyright 2011 LIGHTS IN LINE AB&#xD;&#xA;Genererar en timestamp som context parameter"> 16 <WebTestPlugin Classname="LIL_VSTT_Plugins.dataGenTimestamp, LIL_VSTT_Plugins, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null" DisplayName="Data Generator Timestamp" Description="(C) Copyright 2011 LIGHTS IN LINE AB&#xD;&#xA;Genererar en timestamp som context parameter">
14 <RuleParameters> 17 <RuleParameters>
15 <RuleParameter Name="ParamNameVal" Value="TimeStampParameter1" /> 18 <RuleParameter Name="ParamNameVal" Value="TimeStampParameter1" />
16 <RuleParameter Name="MillisecondsVal" Value="True" /> 19 <RuleParameter Name="MillisecondsVal" Value="False" />
17 <RuleParameter Name="PrePageVal" Value="False" /> 20 <RuleParameter Name="PrePageVal" Value="False" />
18 <RuleParameter Name="PreTransactionVal" Value="False" /> 21 <RuleParameter Name="PreTransactionVal" Value="False" />
19 <RuleParameter Name="PreRequestVal" Value="True" /> 22 <RuleParameter Name="PreRequestVal" Value="False" />
20 </RuleParameters> 23 </RuleParameters>
21 </WebTestPlugin> 24 </WebTestPlugin>
22 </WebTestPlugins> 25 </WebTestPlugins>
......
1 <?xml version="1.0" encoding="utf-8"?>
2 <WebTest Name="WebTest2 - Copy" Id="b8fad392-6953-4eda-9be0-2037277680f6" Owner="" Priority="2147483647" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="WebTest2.0af40a55-b204-4b39-8847-71e26a47524d.rec.webtestresult" ResultsLocale="">
3 <Items>
4 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
5 <TransactionTimer Name="Transaction2">
6 <Items>
7 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
8 <Request Method="GET" Guid="e02258d2-a380-44f4-891d-a8c829b5428c" Version="1.1" Url="http://www.lightsinline.se/" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
9 </Items>
10 </TransactionTimer>
11 </Items>
12 <ContextParameters>
13 <ContextParameter Name="Parameter1" Value="Testval" />
14 </ContextParameters>
15 <WebTestPlugins>
16 <WebTestPlugin Classname="LIL_VSTT_Plugins.dataGenTimestamp, LIL_VSTT_Plugins, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null" DisplayName="Data Generator Timestamp" Description="(C) Copyright 2011 LIGHTS IN LINE AB&#xD;&#xA;Genererar en timestamp som context parameter">
17 <RuleParameters>
18 <RuleParameter Name="ParamNameVal" Value="TimeStampParameter1" />
19 <RuleParameter Name="MillisecondsVal" Value="False" />
20 <RuleParameter Name="PrePageVal" Value="False" />
21 <RuleParameter Name="PreTransactionVal" Value="False" />
22 <RuleParameter Name="PreRequestVal" Value="False" />
23 </RuleParameters>
24 </WebTestPlugin>
25 </WebTestPlugins>
26 </WebTest>
...\ No newline at end of file ...\ No newline at end of file