Ny unikt per test iteration i setParameter loadtest plugin
Showing
9 changed files
with
635 additions
and
71 deletions
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
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
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
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 | ... | ... |
TestProject1/LoadTest3.loadtest
0 → 100644
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <LoadTest Name="LoadTest3" Description="" Owner="" storage="c:\users\wflg\source\repos\vstt-plugins\testproject1\loadtest3.loadtest" Priority="2147483647" Enabled="true" CssProjectStructure="" CssIteration="" DeploymentItemsEditable="" WorkItemIds="" TraceLevel="None" CurrentRunConfig="Run Settings1" Id="480f5b6d-7ec5-4d81-93a3-c580f36a40fd" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> | ||
3 | <Scenarios> | ||
4 | <Scenario Name="Scenario1" DelayBetweenIterations="0" PercentNewUsers="0" IPSwitching="false" TestMixType="PercentageOfTestsStarted" ApplyDistributionToPacingDelay="true" MaxTestIterations="0" DisableDuringWarmup="false" DelayStartTime="0" AllowedAgents=""> | ||
5 | <ThinkProfile Value="0" Pattern="Off" /> | ||
6 | <LoadProfile Pattern="Constant" InitialUsers="4" /> | ||
7 | <TestMix> | ||
8 | <TestProfile Name="WebTest21" Path="webtest21.webtest" Id="9af8354e-b982-4f5a-80f9-777eaed55003" Percentage="50" Type="Microsoft.VisualStudio.TestTools.WebStress.DeclarativeWebTestElement, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
9 | <TestProfile Name="WebTest22" Path="webtest22.webtest" Id="b8fad392-6953-4eda-9be0-2037277680f6" Percentage="50" Type="Microsoft.VisualStudio.TestTools.WebStress.DeclarativeWebTestElement, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
10 | </TestMix> | ||
11 | <BrowserMix> | ||
12 | <BrowserProfile Percentage="100"> | ||
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 | </BrowserProfile> | ||
22 | </BrowserMix> | ||
23 | <NetworkMix> | ||
24 | <NetworkProfile Percentage="100"> | ||
25 | <Network Name="LAN" BandwidthInKbps="1000000" NetworkProfileConfigurationXml="<Emulation><VirtualChannel name="defaultChannel"><FilterList/><VirtualLink instances="1" name="defaultLink"><LinkRule dir="upstream"><Bandwidth><Speed unit="kbps">1000000</Speed></Bandwidth></LinkRule><LinkRule dir="downstream"><Bandwidth><Speed unit="kbps">1000000</Speed></Bandwidth></LinkRule></VirtualLink></VirtualChannel></Emulation>" /> | ||
26 | </NetworkProfile> | ||
27 | </NetworkMix> | ||
28 | </Scenario> | ||
29 | </Scenarios> | ||
30 | <CounterSets> | ||
31 | <CounterSet Name="LoadTest" CounterSetType="LoadTest" LocId=""> | ||
32 | <CounterCategories> | ||
33 | <CounterCategory Name="LoadTest:Scenario"> | ||
34 | <Counters> | ||
35 | <Counter Name="User Load" HigherIsBetter="true" /> | ||
36 | <Counter Name="Tests Running" HigherIsBetter="true" /> | ||
37 | </Counters> | ||
38 | </CounterCategory> | ||
39 | <CounterCategory Name="LoadTest:Test"> | ||
40 | <Counters> | ||
41 | <Counter Name="Total Tests" HigherIsBetter="true" /> | ||
42 | <Counter Name="Passed Tests" HigherIsBetter="true" /> | ||
43 | <Counter Name="Failed Tests" /> | ||
44 | <Counter Name="Tests/Sec" HigherIsBetter="true" /> | ||
45 | <Counter Name="Passed Tests/Sec" HigherIsBetter="true" /> | ||
46 | <Counter Name="Failed Tests/Sec" /> | ||
47 | <Counter Name="Avg. Requests/Test" HigherIsBetter="true" /> | ||
48 | <Counter Name="Avg. Test Time" /> | ||
49 | <Counter Name="% Time in LoadTestPlugin" /> | ||
50 | <Counter Name="% Time in WebTest code" /> | ||
51 | <Counter Name="% Time in Rules" /> | ||
52 | </Counters> | ||
53 | </CounterCategory> | ||
54 | <CounterCategory Name="LoadTest:Transaction"> | ||
55 | <Counters> | ||
56 | <Counter Name="Total Transactions" HigherIsBetter="true" /> | ||
57 | <Counter Name="Avg. Transaction Time" /> | ||
58 | <Counter Name="Avg. Response Time" /> | ||
59 | <Counter Name="Transactions/Sec" HigherIsBetter="true" /> | ||
60 | </Counters> | ||
61 | </CounterCategory> | ||
62 | <CounterCategory Name="LoadTest:Errors"> | ||
63 | <Counters> | ||
64 | <Counter Name="Http Errors" /> | ||
65 | <Counter Name="Validation Rule Errors" /> | ||
66 | <Counter Name="Extraction Rule Errors" /> | ||
67 | <Counter Name="Requests Timed Out" /> | ||
68 | <Counter Name="Exceptions" /> | ||
69 | <Counter Name="Total Errors" /> | ||
70 | <Counter Name="Errors/Sec" /> | ||
71 | <Counter Name="Threshold Violations/Sec" /> | ||
72 | </Counters> | ||
73 | </CounterCategory> | ||
74 | <CounterCategory Name="LoadTest:Page"> | ||
75 | <Counters> | ||
76 | <Counter Name="Total Pages" HigherIsBetter="true" /> | ||
77 | <Counter Name="Avg. Page Time" /> | ||
78 | <Counter Name="Page Response Time Goal" HigherIsBetter="true" /> | ||
79 | <Counter Name="% Pages Meeting Goal" HigherIsBetter="true" /> | ||
80 | <Counter Name="Pages/Sec" HigherIsBetter="true" /> | ||
81 | </Counters> | ||
82 | </CounterCategory> | ||
83 | <CounterCategory Name="LoadTest:Request"> | ||
84 | <Counters> | ||
85 | <Counter Name="Total Requests" HigherIsBetter="true" /> | ||
86 | <Counter Name="Passed Requests" HigherIsBetter="true" /> | ||
87 | <Counter Name="Failed Requests" /> | ||
88 | <Counter Name="Cached Requests" HigherIsBetter="true" /> | ||
89 | <Counter Name="Requests/Sec" HigherIsBetter="true" /> | ||
90 | <Counter Name="Passed Requests/Sec" HigherIsBetter="true" /> | ||
91 | <Counter Name="Failed Requests/Sec" /> | ||
92 | <Counter Name="Avg. First Byte Time" /> | ||
93 | <Counter Name="Avg. Response Time" /> | ||
94 | <Counter Name="Avg. Connection Wait Time"> | ||
95 | <ThresholdRules> | ||
96 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
97 | <RuleParameters> | ||
98 | <RuleParameter Name="DependentCategory" Value="LoadTest:Page" /> | ||
99 | <RuleParameter Name="DependentCounter" Value="Avg. Page Time" /> | ||
100 | <RuleParameter Name="DependentInstance" Value="_Total" /> | ||
101 | <RuleParameter Name="AlertIfOver" Value="True" /> | ||
102 | <RuleParameter Name="WarningThreshold" Value="0.25" /> | ||
103 | <RuleParameter Name="CriticalThreshold" Value="0.5" /> | ||
104 | </RuleParameters> | ||
105 | </ThresholdRule> | ||
106 | </ThresholdRules> | ||
107 | </Counter> | ||
108 | <Counter Name="Avg. Content Length" /> | ||
109 | </Counters> | ||
110 | </CounterCategory> | ||
111 | <CounterCategory Name="LoadTest:LogEntries"> | ||
112 | <Counters> | ||
113 | <Counter Name="Total Log Entries" /> | ||
114 | <Counter Name="Log Entries/Sec" /> | ||
115 | </Counters> | ||
116 | </CounterCategory> | ||
117 | </CounterCategories> | ||
118 | </CounterSet> | ||
119 | <CounterSet Name="Controller" CounterSetType="Controller" LocId="CounterSet_Controller"> | ||
120 | <CounterCategories> | ||
121 | <CounterCategory Name="Memory"> | ||
122 | <Counters> | ||
123 | <Counter Name="% Committed Bytes In Use" Range="100" /> | ||
124 | <Counter Name="Available MBytes" RangeGroup="Memory Bytes" HigherIsBetter="true"> | ||
125 | <ThresholdRules> | ||
126 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant, Microsoft.VisualStudio.QualityTools.LoadTest"> | ||
127 | <RuleParameters> | ||
128 | <RuleParameter Name="AlertIfOver" Value="False" /> | ||
129 | <RuleParameter Name="WarningThreshold" Value="100" /> | ||
130 | <RuleParameter Name="CriticalThreshold" Value="50" /> | ||
131 | </RuleParameters> | ||
132 | </ThresholdRule> | ||
133 | </ThresholdRules> | ||
134 | </Counter> | ||
135 | <Counter Name="Page Faults/sec" /> | ||
136 | <Counter Name="Pages/sec" /> | ||
137 | <Counter Name="Pool Paged Bytes" RangeGroup="Memory Bytes" /> | ||
138 | <Counter Name="Pool Nonpaged bytes" RangeGroup="Memory Bytes" /> | ||
139 | </Counters> | ||
140 | </CounterCategory> | ||
141 | <CounterCategory Name="Network Interface"> | ||
142 | <Counters> | ||
143 | <Counter Name="Bytes Received/sec" RangeGroup="Network Bytes" /> | ||
144 | <Counter Name="Bytes Sent/sec" RangeGroup="Network Bytes" /> | ||
145 | <Counter Name="Output Queue Length"> | ||
146 | <ThresholdRules> | ||
147 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant, Microsoft.VisualStudio.QualityTools.LoadTest"> | ||
148 | <RuleParameters> | ||
149 | <RuleParameter Name="AlertIfOver" Value="True" /> | ||
150 | <RuleParameter Name="WarningThreshold" Value="1.5" /> | ||
151 | <RuleParameter Name="CriticalThreshold" Value="2" /> | ||
152 | </RuleParameters> | ||
153 | </ThresholdRule> | ||
154 | </ThresholdRules> | ||
155 | </Counter> | ||
156 | <Counter Name="Packets Received/sec" RangeGroup="Network Packets" /> | ||
157 | <Counter Name="Packets Sent/sec" RangeGroup="Network Packets" /> | ||
158 | <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" /> | ||
159 | <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes"> | ||
160 | <ThresholdRules> | ||
161 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
162 | <RuleParameters> | ||
163 | <RuleParameter Name="DependentCategory" Value="Network Interface" /> | ||
164 | <RuleParameter Name="DependentCounter" Value="Current Bandwidth" /> | ||
165 | <RuleParameter Name="DependentInstance" Value="" /> | ||
166 | <RuleParameter Name="AlertIfOver" Value="True" /> | ||
167 | <RuleParameter Name="WarningThreshold" Value="0.6" /> | ||
168 | <RuleParameter Name="CriticalThreshold" Value="0.7" /> | ||
169 | </RuleParameters> | ||
170 | </ThresholdRule> | ||
171 | </ThresholdRules> | ||
172 | </Counter> | ||
173 | </Counters> | ||
174 | <Instances> | ||
175 | <Instance Name="*" /> | ||
176 | </Instances> | ||
177 | </CounterCategory> | ||
178 | <CounterCategory Name="PhysicalDisk"> | ||
179 | <Counters> | ||
180 | <Counter Name="% Disk Read Time" Range="100" /> | ||
181 | <Counter Name="% Disk Time" Range="100" /> | ||
182 | <Counter Name="% Disk Write Time" Range="100" /> | ||
183 | <Counter Name="% Idle Time" Range="100" HigherIsBetter="true"> | ||
184 | <ThresholdRules> | ||
185 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant, Microsoft.VisualStudio.QualityTools.LoadTest"> | ||
186 | <RuleParameters> | ||
187 | <RuleParameter Name="AlertIfOver" Value="False" /> | ||
188 | <RuleParameter Name="WarningThreshold" Value="40" /> | ||
189 | <RuleParameter Name="CriticalThreshold" Value="20" /> | ||
190 | </RuleParameters> | ||
191 | </ThresholdRule> | ||
192 | </ThresholdRules> | ||
193 | </Counter> | ||
194 | <Counter Name="Avg. Disk Bytes/Read" RangeGroup="DiskBytesRate" /> | ||
195 | <Counter Name="Avg. Disk Bytes/Transfer" RangeGroup="DiskBytesRate" /> | ||
196 | <Counter Name="Avg. Disk Bytes/Write" RangeGroup="DiskBytesRate" /> | ||
197 | <Counter Name="Avg. Disk Queue Length" RangeGroup="Disk Queue Length" /> | ||
198 | <Counter Name="Avg. Disk Read Queue Length" RangeGroup="Disk Queue Length" /> | ||
199 | <Counter Name="Avg. Disk Write Queue Length" RangeGroup="Disk Queue Length" /> | ||
200 | <Counter Name="Current Disk Queue Length" RangeGroup="Disk Queue Length" /> | ||
201 | <Counter Name="Avg. Disk sec/Read" RangeGroup="Disk sec" /> | ||
202 | <Counter Name="Avg. Disk sec/Transfer" RangeGroup="Disk sec" /> | ||
203 | <Counter Name="Avg. Disk sec/Write" RangeGroup="Disk sec" /> | ||
204 | <Counter Name="Disk Bytes/sec" RangeGroup="Disk Bytes sec" /> | ||
205 | <Counter Name="Disk Read Bytes/sec" RangeGroup="Disk Bytes sec" /> | ||
206 | <Counter Name="Disk Reads/sec" RangeGroup="Disk Transfers sec" /> | ||
207 | <Counter Name="Disk Transfers/sec" RangeGroup="Disk Transfers sec" /> | ||
208 | <Counter Name="Disk Write Bytes/sec" RangeGroup="Disk Bytes sec" /> | ||
209 | <Counter Name="Disk Writes/sec" RangeGroup="Disk Transfers sec" /> | ||
210 | <Counter Name="Split IO/Sec" RangeGroup="Disk Transfers sec" /> | ||
211 | </Counters> | ||
212 | <Instances> | ||
213 | <Instance Name="*" /> | ||
214 | </Instances> | ||
215 | </CounterCategory> | ||
216 | <CounterCategory Name="Processor"> | ||
217 | <Counters> | ||
218 | <Counter Name="% Processor Time" Range="100"> | ||
219 | <ThresholdRules> | ||
220 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant, Microsoft.VisualStudio.QualityTools.LoadTest"> | ||
221 | <RuleParameters> | ||
222 | <RuleParameter Name="AlertIfOver" Value="True" /> | ||
223 | <RuleParameter Name="WarningThreshold" Value="75" /> | ||
224 | <RuleParameter Name="CriticalThreshold" Value="90" /> | ||
225 | </RuleParameters> | ||
226 | </ThresholdRule> | ||
227 | </ThresholdRules> | ||
228 | </Counter> | ||
229 | <Counter Name="% Privileged Time" Range="100" /> | ||
230 | <Counter Name="% User Time" Range="100" /> | ||
231 | </Counters> | ||
232 | <Instances> | ||
233 | <Instance Name="_Total" /> | ||
234 | </Instances> | ||
235 | </CounterCategory> | ||
236 | <CounterCategory Name="System"> | ||
237 | <Counters> | ||
238 | <Counter Name="Context Switches/sec" /> | ||
239 | <Counter Name="Processes" /> | ||
240 | <Counter Name="Processor Queue Length" /> | ||
241 | <Counter Name="Threads" /> | ||
242 | </Counters> | ||
243 | </CounterCategory> | ||
244 | <CounterCategory Name="Process"> | ||
245 | <Counters> | ||
246 | <Counter Name="% Processor Time" RangeGroup="Processor Time" /> | ||
247 | <Counter Name="% Privileged Time" RangeGroup="Processor Time" /> | ||
248 | <Counter Name="% User Time" RangeGroup="Processor Time" /> | ||
249 | <Counter Name="Handle Count" /> | ||
250 | <Counter Name="Thread Count" /> | ||
251 | <Counter Name="Private Bytes" RangeGroup="Memory Bytes" /> | ||
252 | <Counter Name="Virtual Bytes" RangeGroup="Memory Bytes" /> | ||
253 | <Counter Name="Working Set" RangeGroup="Memory Bytes" /> | ||
254 | </Counters> | ||
255 | <Instances> | ||
256 | <Instance Name="QTController" /> | ||
257 | <Instance Name="QTController64" /> | ||
258 | </Instances> | ||
259 | </CounterCategory> | ||
260 | </CounterCategories> | ||
261 | <DefaultCountersForAutomaticGraphs> | ||
262 | <DefaultCounter CategoryName="Processor" CounterName="% Processor Time" InstanceName="_Total" GraphName="" /> | ||
263 | <DefaultCounter CategoryName="Memory" CounterName="Available MBytes" InstanceName="" GraphName="" /> | ||
264 | </DefaultCountersForAutomaticGraphs> | ||
265 | </CounterSet> | ||
266 | <CounterSet Name="Agent" CounterSetType="Agent" LocId="CounterSet_Agent"> | ||
267 | <CounterCategories> | ||
268 | <CounterCategory Name="Memory"> | ||
269 | <Counters> | ||
270 | <Counter Name="% Committed Bytes In Use" Range="100" /> | ||
271 | <Counter Name="Available MBytes" RangeGroup="Memory Bytes" HigherIsBetter="true"> | ||
272 | <ThresholdRules> | ||
273 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant, Microsoft.VisualStudio.QualityTools.LoadTest"> | ||
274 | <RuleParameters> | ||
275 | <RuleParameter Name="AlertIfOver" Value="False" /> | ||
276 | <RuleParameter Name="WarningThreshold" Value="100" /> | ||
277 | <RuleParameter Name="CriticalThreshold" Value="50" /> | ||
278 | </RuleParameters> | ||
279 | </ThresholdRule> | ||
280 | </ThresholdRules> | ||
281 | </Counter> | ||
282 | <Counter Name="Page Faults/sec" /> | ||
283 | <Counter Name="Pages/sec" /> | ||
284 | <Counter Name="Pool Paged Bytes" RangeGroup="Memory Bytes" /> | ||
285 | <Counter Name="Pool Nonpaged bytes" RangeGroup="Memory Bytes" /> | ||
286 | </Counters> | ||
287 | </CounterCategory> | ||
288 | <CounterCategory Name="Network Interface"> | ||
289 | <Counters> | ||
290 | <Counter Name="Bytes Received/sec" RangeGroup="Network Bytes" /> | ||
291 | <Counter Name="Bytes Sent/sec" RangeGroup="Network Bytes" /> | ||
292 | <Counter Name="Output Queue Length"> | ||
293 | <ThresholdRules> | ||
294 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant, Microsoft.VisualStudio.QualityTools.LoadTest"> | ||
295 | <RuleParameters> | ||
296 | <RuleParameter Name="AlertIfOver" Value="True" /> | ||
297 | <RuleParameter Name="WarningThreshold" Value="1.5" /> | ||
298 | <RuleParameter Name="CriticalThreshold" Value="2" /> | ||
299 | </RuleParameters> | ||
300 | </ThresholdRule> | ||
301 | </ThresholdRules> | ||
302 | </Counter> | ||
303 | <Counter Name="Packets Received/sec" RangeGroup="Network Packets" /> | ||
304 | <Counter Name="Packets Sent/sec" RangeGroup="Network Packets" /> | ||
305 | <Counter Name="Current Bandwidth" RangeGroup="Network Bytes" /> | ||
306 | <Counter Name="Bytes Total/sec" RangeGroup="Network Bytes"> | ||
307 | <ThresholdRules> | ||
308 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters, Microsoft.VisualStudio.QualityTools.LoadTest, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
309 | <RuleParameters> | ||
310 | <RuleParameter Name="DependentCategory" Value="Network Interface" /> | ||
311 | <RuleParameter Name="DependentCounter" Value="Current Bandwidth" /> | ||
312 | <RuleParameter Name="DependentInstance" Value="" /> | ||
313 | <RuleParameter Name="AlertIfOver" Value="True" /> | ||
314 | <RuleParameter Name="WarningThreshold" Value="0.6" /> | ||
315 | <RuleParameter Name="CriticalThreshold" Value="0.7" /> | ||
316 | </RuleParameters> | ||
317 | </ThresholdRule> | ||
318 | </ThresholdRules> | ||
319 | </Counter> | ||
320 | </Counters> | ||
321 | <Instances> | ||
322 | <Instance Name="*" /> | ||
323 | </Instances> | ||
324 | </CounterCategory> | ||
325 | <CounterCategory Name="PhysicalDisk"> | ||
326 | <Counters> | ||
327 | <Counter Name="% Disk Read Time" Range="100" /> | ||
328 | <Counter Name="% Disk Time" Range="100" /> | ||
329 | <Counter Name="% Disk Write Time" Range="100" /> | ||
330 | <Counter Name="% Idle Time" Range="100" HigherIsBetter="true"> | ||
331 | <ThresholdRules> | ||
332 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant, Microsoft.VisualStudio.QualityTools.LoadTest"> | ||
333 | <RuleParameters> | ||
334 | <RuleParameter Name="AlertIfOver" Value="False" /> | ||
335 | <RuleParameter Name="WarningThreshold" Value="40" /> | ||
336 | <RuleParameter Name="CriticalThreshold" Value="20" /> | ||
337 | </RuleParameters> | ||
338 | </ThresholdRule> | ||
339 | </ThresholdRules> | ||
340 | </Counter> | ||
341 | <Counter Name="Avg. Disk Bytes/Read" RangeGroup="DiskBytesRate" /> | ||
342 | <Counter Name="Avg. Disk Bytes/Transfer" RangeGroup="DiskBytesRate" /> | ||
343 | <Counter Name="Avg. Disk Bytes/Write" RangeGroup="DiskBytesRate" /> | ||
344 | <Counter Name="Avg. Disk Queue Length" RangeGroup="Disk Queue Length" /> | ||
345 | <Counter Name="Avg. Disk Read Queue Length" RangeGroup="Disk Queue Length" /> | ||
346 | <Counter Name="Avg. Disk Write Queue Length" RangeGroup="Disk Queue Length" /> | ||
347 | <Counter Name="Current Disk Queue Length" RangeGroup="Disk Queue Length" /> | ||
348 | <Counter Name="Avg. Disk sec/Read" RangeGroup="Disk sec" /> | ||
349 | <Counter Name="Avg. Disk sec/Transfer" RangeGroup="Disk sec" /> | ||
350 | <Counter Name="Avg. Disk sec/Write" RangeGroup="Disk sec" /> | ||
351 | <Counter Name="Disk Bytes/sec" RangeGroup="Disk Bytes sec" /> | ||
352 | <Counter Name="Disk Read Bytes/sec" RangeGroup="Disk Bytes sec" /> | ||
353 | <Counter Name="Disk Reads/sec" RangeGroup="Disk Transfers sec" /> | ||
354 | <Counter Name="Disk Transfers/sec" RangeGroup="Disk Transfers sec" /> | ||
355 | <Counter Name="Disk Write Bytes/sec" RangeGroup="Disk Bytes sec" /> | ||
356 | <Counter Name="Disk Writes/sec" RangeGroup="Disk Transfers sec" /> | ||
357 | <Counter Name="Split IO/Sec" RangeGroup="Disk Transfers sec" /> | ||
358 | </Counters> | ||
359 | <Instances> | ||
360 | <Instance Name="*" /> | ||
361 | </Instances> | ||
362 | </CounterCategory> | ||
363 | <CounterCategory Name="Processor"> | ||
364 | <Counters> | ||
365 | <Counter Name="% Processor Time" Range="100"> | ||
366 | <ThresholdRules> | ||
367 | <ThresholdRule Classname="Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant, Microsoft.VisualStudio.QualityTools.LoadTest"> | ||
368 | <RuleParameters> | ||
369 | <RuleParameter Name="AlertIfOver" Value="True" /> | ||
370 | <RuleParameter Name="WarningThreshold" Value="75" /> | ||
371 | <RuleParameter Name="CriticalThreshold" Value="90" /> | ||
372 | </RuleParameters> | ||
373 | </ThresholdRule> | ||
374 | </ThresholdRules> | ||
375 | </Counter> | ||
376 | <Counter Name="% Privileged Time" Range="100" /> | ||
377 | <Counter Name="% User Time" Range="100" /> | ||
378 | </Counters> | ||
379 | <Instances> | ||
380 | <Instance Name="0" /> | ||
381 | <Instance Name="_Total" /> | ||
382 | </Instances> | ||
383 | </CounterCategory> | ||
384 | <CounterCategory Name="System"> | ||
385 | <Counters> | ||
386 | <Counter Name="Context Switches/sec" /> | ||
387 | <Counter Name="Processes" /> | ||
388 | <Counter Name="Processor Queue Length" /> | ||
389 | <Counter Name="Threads" /> | ||
390 | </Counters> | ||
391 | </CounterCategory> | ||
392 | <CounterCategory Name="Process"> | ||
393 | <Counters> | ||
394 | <Counter Name="% Processor Time" RangeGroup="Processor Time" /> | ||
395 | <Counter Name="% Privileged Time" RangeGroup="Processor Time" /> | ||
396 | <Counter Name="% User Time" RangeGroup="Processor Time" /> | ||
397 | <Counter Name="Handle Count" /> | ||
398 | <Counter Name="Thread Count" /> | ||
399 | <Counter Name="Private Bytes" RangeGroup="Memory Bytes" /> | ||
400 | <Counter Name="Virtual Bytes" RangeGroup="Memory Bytes" /> | ||
401 | <Counter Name="Working Set" RangeGroup="Memory Bytes" /> | ||
402 | </Counters> | ||
403 | <Instances> | ||
404 | <Instance Name="devenv" /> | ||
405 | <Instance Name="QTAgentService" /> | ||
406 | <Instance Name="QTAgent" /> | ||
407 | <Instance Name="QTAgent32" /> | ||
408 | <Instance Name="QTDCAgent" /> | ||
409 | <Instance Name="QTDCAgent32" /> | ||
410 | <Instance Name="QTAgent_35" /> | ||
411 | <Instance Name="QTAgent_40" /> | ||
412 | <Instance Name="QTAgent32_35" /> | ||
413 | <Instance Name="QTAgent32_40" /> | ||
414 | </Instances> | ||
415 | </CounterCategory> | ||
416 | </CounterCategories> | ||
417 | <DefaultCountersForAutomaticGraphs> | ||
418 | <DefaultCounter CategoryName="Processor" CounterName="% Processor Time" InstanceName="0" GraphName="" RunType="Local" /> | ||
419 | <DefaultCounter CategoryName="Processor" CounterName="% Processor Time" InstanceName="_Total" GraphName="" RunType="Remote" /> | ||
420 | <DefaultCounter CategoryName="Memory" CounterName="Available MBytes" InstanceName="" GraphName="" /> | ||
421 | </DefaultCountersForAutomaticGraphs> | ||
422 | </CounterSet> | ||
423 | </CounterSets> | ||
424 | <RunConfigurations> | ||
425 | <RunConfiguration Name="Run Settings1" Description="" ResultsStoreType="Database" TimingDetailsStorage="AllIndividualDetails" SaveTestLogsOnError="true" SaveTestLogsFrequency="1" MaxErrorDetails="200" MaxErrorsPerType="1000" MaxThresholdViolations="1000" MaxRequestUrlsReported="1000" UseTestIterations="true" RunDuration="300" 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"> | ||
426 | <CounterSetMappings> | ||
427 | <CounterSetMapping ComputerName="[CONTROLLER MACHINE]"> | ||
428 | <CounterSetReferences> | ||
429 | <CounterSetReference CounterSetName="LoadTest" /> | ||
430 | <CounterSetReference CounterSetName="Controller" /> | ||
431 | </CounterSetReferences> | ||
432 | </CounterSetMapping> | ||
433 | <CounterSetMapping ComputerName="[AGENT MACHINES]"> | ||
434 | <CounterSetReferences> | ||
435 | <CounterSetReference CounterSetName="Agent" /> | ||
436 | </CounterSetReferences> | ||
437 | </CounterSetMapping> | ||
438 | </CounterSetMappings> | ||
439 | <LoadGeneratorLocations> | ||
440 | <GeoLocation Location="Default" Percentage="100" /> | ||
441 | </LoadGeneratorLocations> | ||
442 | </RunConfiguration> | ||
443 | </RunConfigurations> | ||
444 | <LoadTestPlugins> | ||
445 | <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
Sätter parametrar i testcontextet för tester i mixen hämtat från en CSV fil"> | ||
446 | <RuleParameters> | ||
447 | <RuleParameter Name="Connection_String" Value="C:\tmp\test1.txt" /> | ||
448 | <RuleParameter Name="Has_col_name" Value="False" /> | ||
449 | <RuleParameter Name="Autosplit" Value="False" /> | ||
450 | <RuleParameter Name="Parameter_Name" Value="Par1" /> | ||
451 | <RuleParameter Name="LogFilePathString" Value="C:\Temp\Fungerande.log" /> | ||
452 | <RuleParameter Name="LogFileAppendID" Value="False" /> | ||
453 | <RuleParameter Name="LogFileAppendName" Value="False" /> | ||
454 | <RuleParameter Name="Use_Random" Value="False" /> | ||
455 | <RuleParameter Name="Use_Unique" Value="False" /> | ||
456 | <RuleParameter Name="Use_UniqueIteration" Value="False" /> | ||
457 | <RuleParameter Name="Use_Loop" Value="True" /> | ||
458 | <RuleParameter Name="Log_To_File" Value="False" /> | ||
459 | <RuleParameter Name="Test_Names" Value="WebTest21" /> | ||
460 | <RuleParameter Name="Scenario_Names" Value="" /> | ||
461 | <RuleParameter Name="Agent_Names" Value="" /> | ||
462 | <RuleParameter Name="Use_UniqueTestIteration" Value="True" /> | ||
463 | </RuleParameters> | ||
464 | </LoadTestPlugin> | ||
465 | <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
Sätter parametrar i testcontextet för tester i mixen hämtat från en CSV fil"> | ||
466 | <RuleParameters> | ||
467 | <RuleParameter Name="Connection_String" Value="C:\tmp\test2.txt" /> | ||
468 | <RuleParameter Name="Has_col_name" Value="False" /> | ||
469 | <RuleParameter Name="Autosplit" Value="False" /> | ||
470 | <RuleParameter Name="Parameter_Name" Value="Par2" /> | ||
471 | <RuleParameter Name="LogFilePathString" Value="C:\Temp\Fungerande.log" /> | ||
472 | <RuleParameter Name="LogFileAppendID" Value="False" /> | ||
473 | <RuleParameter Name="LogFileAppendName" Value="False" /> | ||
474 | <RuleParameter Name="Use_Random" Value="False" /> | ||
475 | <RuleParameter Name="Use_Unique" Value="False" /> | ||
476 | <RuleParameter Name="Use_UniqueIteration" Value="False" /> | ||
477 | <RuleParameter Name="Use_Loop" Value="True" /> | ||
478 | <RuleParameter Name="Log_To_File" Value="False" /> | ||
479 | <RuleParameter Name="Test_Names" Value="WebTest22" /> | ||
480 | <RuleParameter Name="Scenario_Names" Value="" /> | ||
481 | <RuleParameter Name="Agent_Names" Value="" /> | ||
482 | <RuleParameter Name="Use_UniqueTestIteration" Value="True" /> | ||
483 | </RuleParameters> | ||
484 | </LoadTestPlugin> | ||
485 | </LoadTestPlugins> | ||
486 | </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
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
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> | ... | ... |
TestProject1/WebTest22.webtest
0 → 100644
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
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 |
-
Please register or sign in to post a comment