Fixed issue #2
Showing
7 changed files
with
101 additions
and
7 deletions
... | @@ -340,7 +340,7 @@ namespace LIL_VSTT_Plugins | ... | @@ -340,7 +340,7 @@ namespace LIL_VSTT_Plugins |
340 | { | 340 | { |
341 | int testIteration = getTestIterationNumber(e.TestName); | 341 | int testIteration = getTestIterationNumber(e.TestName); |
342 | e.UserContext["TestIteration"] = testIteration; | 342 | e.UserContext["TestIteration"] = testIteration; |
343 | e.TestContextProperties.Add("TestIteration", testIteration); | 343 | e.TestContextProperties["TestIteration"] = testIteration; |
344 | setParameters(this.getSeqUser(testIteration - 1), e); | 344 | setParameters(this.getSeqUser(testIteration - 1), e); |
345 | } | 345 | } |
346 | } | 346 | } | ... | ... |
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
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> |
5 | <DeploymentItem filename="TestProject1\Userdata.csv" /> | ||
6 | </Deployment> | ||
5 | <Execution hostProcessPlatform="MSIL"> | 7 | <Execution hostProcessPlatform="MSIL"> |
6 | <TestTypeSpecific> | 8 | <TestTypeSpecific> |
7 | <UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b"> | 9 | <UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b"> | ... | ... |
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\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"> | 2 | <LoadTest Name="LoadTest1" Description="" Owner="" storage="c:\ws\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="4" /> | 6 | <LoadProfile Pattern="Constant" InitialUsers="4" /> |
7 | <TestMix> | 7 | <TestMix> |
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" /> | 8 | <TestProfile Name="WebTest21" Path="webtest21.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"> |
... | @@ -444,12 +444,13 @@ | ... | @@ -444,12 +444,13 @@ |
444 | <RuleParameter Name="LogFileAppendName" Value="False" /> | 444 | <RuleParameter Name="LogFileAppendName" Value="False" /> |
445 | <RuleParameter Name="Use_Random" Value="False" /> | 445 | <RuleParameter Name="Use_Random" Value="False" /> |
446 | <RuleParameter Name="Use_Unique" Value="False" /> | 446 | <RuleParameter Name="Use_Unique" Value="False" /> |
447 | <RuleParameter Name="Use_UniqueIteration" Value="True" /> | 447 | <RuleParameter Name="Use_UniqueIteration" Value="False" /> |
448 | <RuleParameter Name="Use_Loop" Value="False" /> | 448 | <RuleParameter Name="Use_Loop" Value="False" /> |
449 | <RuleParameter Name="Log_To_File" Value="False" /> | 449 | <RuleParameter Name="Log_To_File" Value="False" /> |
450 | <RuleParameter Name="Test_Names" Value="" /> | 450 | <RuleParameter Name="Test_Names" Value="" /> |
451 | <RuleParameter Name="Scenario_Names" Value="" /> | 451 | <RuleParameter Name="Scenario_Names" Value="" /> |
452 | <RuleParameter Name="Agent_Names" Value="" /> | 452 | <RuleParameter Name="Agent_Names" Value="" /> |
453 | <RuleParameter Name="Use_UniqueTestIteration" Value="True" /> | ||
453 | </RuleParameters> | 454 | </RuleParameters> |
454 | </LoadTestPlugin> | 455 | </LoadTestPlugin> |
455 | </LoadTestPlugins> | 456 | </LoadTestPlugins> | ... | ... |
TestProject1/LoadTest5.loadtest
0 → 100644
This diff is collapsed.
Click to expand it.
... | @@ -82,6 +82,9 @@ | ... | @@ -82,6 +82,9 @@ |
82 | <None Include="LoadTest3.loadtest"> | 82 | <None Include="LoadTest3.loadtest"> |
83 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | 83 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
84 | </None> | 84 | </None> |
85 | <None Include="LoadTest5.loadtest"> | ||
86 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
87 | </None> | ||
85 | <None Include="LoadTest4.loadtest"> | 88 | <None Include="LoadTest4.loadtest"> |
86 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | 89 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
87 | </None> | 90 | </None> |
... | @@ -91,6 +94,14 @@ | ... | @@ -91,6 +94,14 @@ |
91 | <None Include="WebTest21.webtest"> | 94 | <None Include="WebTest21.webtest"> |
92 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | 95 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
93 | </None> | 96 | </None> |
97 | <None Include="WebTest6.webtest"> | ||
98 | <SubType>Designer</SubType> | ||
99 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
100 | </None> | ||
101 | <None Include="WebTest5.webtest"> | ||
102 | <SubType>Designer</SubType> | ||
103 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
104 | </None> | ||
94 | <None Include="WebTest4.webtest"> | 105 | <None Include="WebTest4.webtest"> |
95 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 106 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
96 | <SubType>Designer</SubType> | 107 | <SubType>Designer</SubType> |
... | @@ -98,9 +109,9 @@ | ... | @@ -98,9 +109,9 @@ |
98 | <None Include="WebTest3.webtest"> | 109 | <None Include="WebTest3.webtest"> |
99 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 110 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
100 | </None> | 111 | </None> |
101 | <Resource Include="Userdata.csv"> | 112 | <Content Include="Userdata.csv"> |
102 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | 113 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
103 | </Resource> | 114 | </Content> |
104 | <None Include="WebTest1.webtest"> | 115 | <None Include="WebTest1.webtest"> |
105 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | 116 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
106 | </None> | 117 | </None> | ... | ... |
TestProject1/WebTest5.webtest
0 → 100644
This diff is collapsed.
Click to expand it.
TestProject1/WebTest6.webtest
0 → 100644
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <WebTest Name="WebTest6" Id="122acb09-9cc2-4809-903b-a7fee7f1e5c3" 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="WebTest5.10d2bf93-1ab4-4a60-b4ff-f80b74d5d7e4.rec.webtestresult" ResultsLocale=""> | ||
3 | <Items> | ||
4 | <Request Method="GET" Guid="484965f3-86e1-4ee6-a227-7d5c0b97dddd" Version="1.1" Url="https://u01915.kap.rsv.se:17021/webztv/login.do" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="https://u01915.kap.rsv.se:17021/webztv/secure/pcIndex.html?method=test" ReportingName="" IgnoreHttpStatusCode="False"> | ||
5 | <DependentRequests> | ||
6 | <Request Method="GET" Guid="00504724-ed20-48bc-9afb-9d047ab70c16" Version="1.1" Url="https://u01915.kap.rsv.se:17021/webztv/secure/rest/env/buildinfo" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False"> | ||
7 | <Headers> | ||
8 | <Header Name="Accept" Value="application/json, text/plain, */*" /> | ||
9 | <Header Name="Referer" Value="https://u01915.kap.rsv.se:17021/webztv/secure/pcIndex.html?method=test" /> | ||
10 | </Headers> | ||
11 | </Request> | ||
12 | <Request Method="GET" Guid="8d83add9-d60e-4fe6-85ba-d2e73154b21a" Version="1.1" Url="https://u01915.kap.rsv.se:17021/webztv/secure/rest/env/userinfo" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False"> | ||
13 | <Headers> | ||
14 | <Header Name="Accept" Value="application/json, text/plain, */*" /> | ||
15 | <Header Name="Referer" Value="https://u01915.kap.rsv.se:17021/webztv/secure/pcIndex.html?method=test" /> | ||
16 | </Headers> | ||
17 | </Request> | ||
18 | <Request Method="GET" Guid="70a80406-b288-40e6-b498-c322a0f69fba" Version="1.1" Url="https://u01915.kap.rsv.se:17021/webztv/secure/rest/env/userinfo" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False"> | ||
19 | <Headers> | ||
20 | <Header Name="Accept" Value="application/json, text/plain, */*" /> | ||
21 | <Header Name="Referer" Value="https://u01915.kap.rsv.se:17021/webztv/secure/pcIndex.html?method=test" /> | ||
22 | </Headers> | ||
23 | </Request> | ||
24 | <Request Method="GET" Guid="ebe292e4-18c6-4626-82ef-afca812c8833" Version="1.1" Url="https://u01915.kap.rsv.se:17021/webztv/secure/rest/env/userinfo" ThinkTime="50" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False"> | ||
25 | <Headers> | ||
26 | <Header Name="Accept" Value="application/json, text/plain, */*" /> | ||
27 | <Header Name="Referer" Value="https://u01915.kap.rsv.se:17021/webztv/secure/pcIndex.html?method=test" /> | ||
28 | </Headers> | ||
29 | </Request> | ||
30 | </DependentRequests> | ||
31 | <Headers> | ||
32 | <Header Name="Referer" Value="https://u01915.kap.rsv.se:17021/webztv/public/startpage.html" /> | ||
33 | </Headers> | ||
34 | <QueryStringParameters> | ||
35 | <QueryStringParameter Name="method" Value="test" RecordedValue="test" CorrelationBinding="{{QueryStringParam6.method}}" UrlEncode="False" UseToGroupResults="False" /> | ||
36 | </QueryStringParameters> | ||
37 | </Request> | ||
38 | <Request Method="GET" Guid="57c5c6f4-6ec7-461e-85f2-5ff56e9a7a5f" Version="1.1" Url="https://u01915.kap.rsv.se:17021/webztv/secure/rest/ws/ztvtestws" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False"> | ||
39 | <Headers> | ||
40 | <Header Name="Accept" Value="application/json, text/plain, */*" /> | ||
41 | <Header Name="Referer" Value="https://u01915.kap.rsv.se:17021/webztv/secure/webservicetests.html" /> | ||
42 | </Headers> | ||
43 | </Request> | ||
44 | </Items> | ||
45 | <ContextParameters> | ||
46 | <ContextParameter Name="CertFile" Value="U:\projekt\MjukaCertifikat\Interna certifikat_2016\P12\Auth - FN10007 EN10007.p12" /> | ||
47 | </ContextParameters> | ||
48 | <ValidationRules> | ||
49 | <ValidationRule Classname="Microsoft.VisualStudio.TestTools.WebTesting.Rules.ValidateResponseUrl, Microsoft.VisualStudio.QualityTools.WebTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" DisplayName="Response URL" Description="Validates that the response URL after redirects are followed is the same as the recorded response URL. QueryString parameters are ignored." Level="Low" ExectuionOrder="BeforeDependents" /> | ||
50 | <ValidationRule Classname="Microsoft.VisualStudio.TestTools.WebTesting.Rules.ValidationRuleResponseTimeGoal, Microsoft.VisualStudio.QualityTools.WebTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" DisplayName="Response Time Goal" Description="Validates that the response time for the request is less than or equal to the response time goal as specified on the request. Response time goals of zero will be ignored." Level="Low" ExectuionOrder="AfterDependents"> | ||
51 | <RuleParameters> | ||
52 | <RuleParameter Name="Tolerance" Value="0" /> | ||
53 | </RuleParameters> | ||
54 | </ValidationRule> | ||
55 | </ValidationRules> | ||
56 | <WebTestPlugins> | ||
57 | <WebTestPlugin Classname="LIL_VSTT_Plugins.ServiceManagerWebTestPlugin, LIL_VSTT_Plugins, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null" DisplayName="Service Manager Config" Description="(C) Copyright 2015 LIGHTS IN LINE AB
Sätter config värden i Service Manager instansen för hela testet."> | ||
58 | <RuleParameters> | ||
59 | <RuleParameter Name="exp100" Value="True" /> | ||
60 | <RuleParameter Name="maxIdle" Value="100" /> | ||
61 | <RuleParameter Name="keepAlive" Value="False" /> | ||
62 | <RuleParameter Name="timeOut" Value="5000" /> | ||
63 | <RuleParameter Name="interVal" Value="1000" /> | ||
64 | <RuleParameter Name="useNagle" Value="False" /> | ||
65 | <RuleParameter Name="useTls12" Value="True" /> | ||
66 | </RuleParameters> | ||
67 | </WebTestPlugin> | ||
68 | <WebTestPlugin Classname="LIL_VSTT_Plugins.ClientCertificatePlugin, LIL_VSTT_Plugins, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null" DisplayName="Client Certificate" Description="(C) Copyright 2016 LIGHTS IN LINE AB
Sätter webtestet att använda ett specifikt client cert för SSL. Certifikatet behöver inte installeras i certstore först."> | ||
69 | <RuleParameters> | ||
70 | <RuleParameter Name="pCertificatePath" Value="" /> | ||
71 | <RuleParameter Name="pCertificatePathParameter" Value="CertFile" /> | ||
72 | <RuleParameter Name="pCertificatePassword" Value="abcd1234" /> | ||
73 | <RuleParameter Name="pCertificatePasswordParameter" Value="" /> | ||
74 | <RuleParameter Name="pDebug" Value="False" /> | ||
75 | <RuleParameter Name="pInstallTrusted" Value="True" /> | ||
76 | <RuleParameter Name="pInstallUntrusted" Value="True" /> | ||
77 | </RuleParameters> | ||
78 | </WebTestPlugin> | ||
79 | </WebTestPlugins> | ||
80 | </WebTest> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment