<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Bill Barnett's blog : VSTS2010</title><link>http://blogs.msdn.com/billbar/archive/tags/VSTS2010/default.aspx</link><description>Tags: VSTS2010</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>VSTS 2010 Feature: More flexible load modeling via new options on Load Test Scenarios</title><link>http://blogs.msdn.com/billbar/archive/2009/06/11/vsts-2010-feature-more-flexible-load-modeling-via-new-options-on-load-test-scenarios.aspx</link><pubDate>Thu, 11 Jun 2009 20:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9727237</guid><dc:creator>billbar@microsoft.com</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/billbar/comments/9727237.aspx</comments><wfw:commentRss>http://blogs.msdn.com/billbar/commentrss.aspx?PostID=9727237</wfw:commentRss><description>&lt;P&gt;&lt;FONT size=2&gt;In VSTS 2010 Beta 1 (available for download &lt;/FONT&gt;&lt;A href="https://msdn.microsoft.com/en-us/subscriptions/securedownloads/default.aspx?pv=18:370" mce_href="https://msdn.microsoft.com/en-us/subscriptions/securedownloads/default.aspx?pv=18:370"&gt;&lt;FONT size=2&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;), there are four new properties on each Scenario in a Load Test that give you more control of the time, location, and duration of the running of the Scenario during the load test.&amp;nbsp;&amp;nbsp;&amp;nbsp; You can access the Scenario property sheet by right-clicking on the desired Scenario’s node in the Load Test Editor tree:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/GettingToScenarioProperties.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/GettingToScenarioProperties.png"&gt;&lt;IMG title=GettingToScenarioProperties style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=553 alt=GettingToScenarioProperties src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/GettingToScenarioProperties_thumb.png" width=343 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/GettingToScenarioProperties_thumb.png"&gt;&lt;/A&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The new properties are:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;“&lt;FONT size=2&gt;Agents to Use”&lt;BR&gt;”Maximum Test Iterations”&lt;BR&gt;”Delay Start Time”&lt;BR&gt;”Disable During Warmup”&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The screen shot below of the Scenario property sheet shows the new Scenario properties along with those that existed in VSTS 2008:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesDefaults.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesDefaults.png"&gt;&lt;IMG title=NewScenarioPropertiesDefaults style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=457 alt=NewScenarioPropertiesDefaults src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesDefaults_thumb.png" width=644 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesDefaults_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The above screen shot shows the initial default values for all four properties which in all four cases means that the new feature is not used and the load test behaves as it would with VSTS 2008 (all other things being the same).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The screen shots below show non-default values for each of these new properties.&amp;nbsp;&amp;nbsp; You can read the property descriptions in the screen shot, so no need to repeat those, but I’ve added some additional comments on the selected property below each screen shot:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesNonDefault.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesNonDefault.png"&gt;&lt;IMG title=NewScenarioPropertiesNonDefault style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=451 alt=NewScenarioPropertiesNonDefault src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesNonDefault_thumb.png" width=646 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesNonDefault_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The agent names that are entered should be the names of agents that are connected to the controller to which the load test will be submitted.&amp;nbsp;&amp;nbsp; They should be the simple computer names of the agents (as seen in the “Computer Name” field in the Control Panel).&amp;nbsp;&amp;nbsp; Unfortunately, at this time, if you switch to submitting the load test to a different controller, you will need to change the value for “Agents to Use” as there is no way to parameterize this list to vary depending on the controller used.&amp;nbsp;&amp;nbsp; This list of agents designates a subset of those the agents that are connected to the controller, and are in the Ready state when the load tests starts (they may be running a different load test or other test run when the load test is queued as long as they become Ready when the load test is taken out of the Pending state and starts running), and that meet any agent selection criteria to allow the test run to be run on the agent.&amp;nbsp;&amp;nbsp; The Scenario will run on all agents in the list that meet these criteria, and the user load for the Scenario will be distributed among these agents either evenly (by default) or according to any agent weightings specified in the Agent properties for the agents (from the “Administer Test Controllers” dialog in Visual Studio).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The screen shot below has a non-default value for “Maximum Test Iterations” which is selected to show the property description:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesMaxIterations.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesMaxIterations.png"&gt;&lt;IMG title=NewScenarioPropertiesMaxIterations style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=449 alt=NewScenarioPropertiesMaxIterations src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesMaxIterations_thumb.png" width=651 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesMaxIterations_thumb.png"&gt;&lt;/A&gt; L&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;This property is a maximum on the &lt;STRONG&gt;total&lt;/STRONG&gt; number of test iterations for tests in the selected Scenario for all users on all agents on which the Scenario is run, and does not mean “Test Iterations per User”.&amp;nbsp;&amp;nbsp; If the Load Test Run Settings dialog specifies a value for Test Iterations that is less than this value, or the timed duration of the load test expires before this maximum is reached the load test will stop.&amp;nbsp;&amp;nbsp; In other words, as the name implies this is a maximum, but not a minimum.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The screen shot below has non-default values for “Delay Start Time” and “Disable During Warmup”.&amp;nbsp;&amp;nbsp; The property description for “Delay Start Time” also describes how the “Disable During Warmup” setting affects when the Scenario actually starts:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesDelayStart.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesDelayStart.png"&gt;&lt;IMG title=NewScenarioPropertiesDelayStart style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=445 alt=NewScenarioPropertiesDelayStart src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesDelayStart_thumb.png" width=654 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureMoreflexibleloadmodelingv_FEFB/NewScenarioPropertiesDelayStart_thumb.png"&gt;&lt;/A&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The description implies but does not explicitly state this: if “Disable During Warmup” is false, the Delay Start Time is measured from the very beginning of the load test including any warm-up period.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;For a complete list of the new Web testing and Load Testing features in VSTS 2010 Beta 1 check out &lt;A href="http://blogs.msdn.com/edglas/archive/2009/05/18/dev10-beta-1-available.aspx" mce_href="http://blogs.msdn.com/edglas/archive/2009/05/18/dev10-beta-1-available.aspx"&gt;Ed Glas's list&lt;/A&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9727237" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/billbar/archive/tags/Unit+test/default.aspx">Unit test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS/default.aspx">VSTS</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Load+test/default.aspx">Load test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/tsbt-tst/default.aspx">tsbt-tst</category><category domain="http://blogs.msdn.com/billbar/archive/tags/testing/default.aspx">testing</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Web+test/default.aspx">Web test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS2010/default.aspx">VSTS2010</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Visual+Studio+2010/default.aspx">Visual Studio 2010</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS+Testing/default.aspx">VSTS Testing</category></item><item><title>VSTS 2010 Feature: Sequential Test Mix</title><link>http://blogs.msdn.com/billbar/archive/2009/06/10/vsts-2010-feature-sequential-test-mix.aspx</link><pubDate>Thu, 11 Jun 2009 00:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9725042</guid><dc:creator>billbar@microsoft.com</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/billbar/comments/9725042.aspx</comments><wfw:commentRss>http://blogs.msdn.com/billbar/commentrss.aspx?PostID=9725042</wfw:commentRss><description>&lt;P&gt;&lt;FONT size=2&gt;VSTS 2010 Load Tests offer several new options that can be set on each Scenario in the load test that give you more control over the execution of the Scenarios within the load test and therefore allows you to more easily create a load test that accurately models the load that your are trying to simulate on your servers under test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The first of these is a new “Text Mix” type based on sequential test order that simply allows you to set up a sequential ordering of the tests that each virtual user will go through.&amp;nbsp;&amp;nbsp; This option is available in the New Load Test and New Scenario Wizards:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/Wizard1.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/Wizard1.png"&gt;&lt;IMG title=Wizard1 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=457 alt=Wizard1 src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/Wizard1_thumb.png" width=659 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/Wizard1_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The diagram shows an example with 4 virtual users and two tests in the Scenario, and the text below the diagram explains the behavior.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;If you select “Based on sequential test order” and click “Next”, the next Wizard page allows to add to and order the tests:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/Wizard2.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/Wizard2.png"&gt;&lt;IMG title=Wizard2 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=458 alt=Wizard2 src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/Wizard2_thumb.png" width=661 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/Wizard2_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Note that there is no need to enter percentages or pacing information as for the other test mix types.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Once you’ve created the load test Scenario through the Wizard with this test mix type, you can later use the Load Test editor’s Test Mix editor to change the Test Mix type, or add, remove, or change the order of the tests:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/SequentialTestMix.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/SequentialTestMix.png"&gt;&lt;IMG title=SequentialTestMix style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=545 alt=SequentialTestMix src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/SequentialTestMix_thumb.png" width=657 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010FeatureNewLoadTestScenariooption_E138/SequentialTestMix_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;For a complete list of the new Web testing and Load Testing features in VSTS 2010 Beta 1 check &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/edglas/archive/2009/05/18/dev10-beta-1-available.aspx" mce_href="http://blogs.msdn.com/edglas/archive/2009/05/18/dev10-beta-1-available.aspx"&gt;&lt;FONT size=2&gt;Ed Glas's list&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;.&amp;nbsp;&amp;nbsp; You can download the beta &lt;/FONT&gt;&lt;A href="https://msdn.microsoft.com/en-us/subscriptions/securedownloads/default.aspx?pv=18:370" mce_href="https://msdn.microsoft.com/en-us/subscriptions/securedownloads/default.aspx?pv=18:370"&gt;&lt;FONT size=2&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9725042" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/billbar/archive/tags/Unit+test/default.aspx">Unit test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS/default.aspx">VSTS</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Load+test/default.aspx">Load test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/tsbt-tst/default.aspx">tsbt-tst</category><category domain="http://blogs.msdn.com/billbar/archive/tags/testing/default.aspx">testing</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Web+test/default.aspx">Web test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS2010/default.aspx">VSTS2010</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Visual+Studio+2010/default.aspx">Visual Studio 2010</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS+Testing/default.aspx">VSTS Testing</category></item><item><title>VSTS 2010 Load Test Feature: Saving Test Logs</title><link>http://blogs.msdn.com/billbar/archive/2009/06/09/vsts-2010-load-test-feature-saving-test-logs.aspx</link><pubDate>Tue, 09 Jun 2009 02:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9710876</guid><dc:creator>billbar@microsoft.com</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/billbar/comments/9710876.aspx</comments><wfw:commentRss>http://blogs.msdn.com/billbar/commentrss.aspx?PostID=9710876</wfw:commentRss><description>&lt;P&gt;&lt;FONT size=2&gt;Now that VSTS 2010 beta 1 is available I and other Load Test development and test team members will be writing a series of blog posts highlighting the new Web and Load testing features.&amp;nbsp;&amp;nbsp; Ed Glas has a blog post that lists the new features &lt;A href="http://blogs.msdn.com/edglas/archive/2009/05/18/dev10-beta-1-available.aspx" mce_href="http://blogs.msdn.com/edglas/archive/2009/05/18/dev10-beta-1-available.aspx"&gt;here&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp; You can download the beta &lt;A href="http://msdn.microsoft.com/en-us/subscriptions/downloads/default.aspx?pv=18:370" mce_href="http://msdn.microsoft.com/en-us/subscriptions/downloads/default.aspx?pv=18:370"&gt;here&lt;/A&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;This post describes in detail the item in Ed’s list “Log entire test result on test failure …”:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;With VSTS 2010, Load Test users now have the option of capturing and saving the entire result of individual tests run within the load test such as a failed Web test or a failed unit test.&amp;nbsp;&amp;nbsp; This feature makes it easier to debug problems that occur when running tests within a load test that do not occur when running the same tests outside the context of a load test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;The New Load Test Wizard exposes a new option “Save Log on Test Failure” which defaults to True:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/LoadTestWizard_1.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/LoadTestWizard_1.png"&gt;&lt;IMG title=LoadTestWizard style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=419 alt=LoadTestWizard src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/LoadTestWizard_thumb_1.png" width=604 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/LoadTestWizard_thumb_1.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Also, in the Load Test editor, the Load Test Run Setting’s property sheet includes this option as well as two other related properties in the new “Logging” category:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/LoadTestRunSettings_1.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/LoadTestRunSettings_1.png"&gt;&lt;IMG title=LoadTestRunSettings style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=381 alt=LoadTestRunSettings src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/LoadTestRunSettings_thumb_1.png" width=552 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/LoadTestRunSettings_thumb_1.png"&gt;&lt;/A&gt; 
&lt;P&gt;&lt;FONT size=2&gt;You can see the description of the new “Save Log Frequency for Completed Tests” property above.&amp;nbsp;&amp;nbsp;&amp;nbsp; The “Maximum Test Logs” setting controls the maximum number of Test Logs that are saved in the load test results database for a single load test.&amp;nbsp;&amp;nbsp;&amp;nbsp; You can increase this value from the default value of 200, but we aware that the test logs could potentially take up a considerable amount of space in the database especially for Web tests that contain many large requests and/or responses since they include the entire body of each Web test request and response (the exception to this is that details for dependent requests are not saved in order to save space).&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT size=2&gt;For example, to see how this works with unit tests in a load test, suppose I have the two following unit test methods:&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT size=2&gt;[TestMethod]&lt;BR&gt;public void UnitTestThatLogsAndPasses()&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteLine("This line written using Debug.WriteLine()");&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trace.WriteLine("This line written using Trace.WriteLine()");&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("This line written using Console.WriteLine()");&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep(1000);&lt;BR&gt;} &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;[TestMethod]&lt;BR&gt;public void UnitTestThatLogsAndFails()&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteLine("This line written using Debug.WriteLine()");&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trace.WriteLine("This line written using Trace.WriteLine()");&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("This line written using Console.WriteLine()");&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep(500);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assert.Fail("This test fails for demo purposes");&lt;BR&gt;}&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT size=2&gt;Then I include these unit tests in a load test with the passing test running 90% of the time:&lt;/FONT&gt; 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/DemoUnitTestLogs.loadtest_2.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/DemoUnitTestLogs.loadtest_2.png"&gt;&lt;IMG title=DemoUnitTestLogs.loadtest style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=368 alt=DemoUnitTestLogs.loadtest src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/DemoUnitTestLogs.loadtest_thumb.png" width=259 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/DemoUnitTestLogs.loadtest_thumb.png"&gt;&lt;/A&gt; 
&lt;P&gt;&lt;FONT size=2&gt;The Test Logs are &lt;U&gt;not&lt;/U&gt; viewable while the load test is running, but can be viewed once the load test has completed and you go to the post-run Load Test Analyzer by responding Yes to this prompt at the end of the load test:&lt;/FONT&gt; 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/GoToPostRun.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/GoToPostRun.png"&gt;&lt;IMG title=GoToPostRun style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=106 alt=GoToPostRun src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/GoToPostRun_thumb.png" width=846 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/GoToPostRun_thumb.png"&gt;&lt;/A&gt; 
&lt;P&gt;&lt;FONT size=2&gt;(You can also bring up the post-run Load Test Analyzer for a load test run from the “Open and Manage Load Test Results” dialog available on the toolbar in the Load Test Editor.)&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT size=2&gt;This should bring you to the Summary page in the Load Test Analyzer; if you then click on the Errors link, the Errors table is displayed and includes links to the Test Logs in the “Details” column (the right-most column – you may need to scroll right to see it):&lt;/FONT&gt; 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/ErrorsTable.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/ErrorsTable.png"&gt;&lt;IMG title=ErrorsTable style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=378 alt=ErrorsTable src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/ErrorsTable_thumb.png" width=851 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/ErrorsTable_thumb.png"&gt;&lt;/A&gt; 
&lt;P&gt;&lt;FONT size=2&gt;Clicking on one of the “Test log” links in this table opens a new Window in Visual Studio to view that unit test result which looks just like viewing the result of a unit test run outside of a load test:&lt;/FONT&gt; 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/UnitTestResult_1.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/UnitTestResult_1.png"&gt;&lt;IMG title=UnitTestResult style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=347 alt=UnitTestResult src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/UnitTestResult_thumb_1.png" width=853 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/UnitTestResult_thumb_1.png"&gt;&lt;/A&gt;&amp;nbsp; 
&lt;P&gt;&lt;FONT size=2&gt;In addition to links to the Test Logs in the Errors table, there is also a new “Test Details” table in the Load Test Analyzer that also may contains links to Test Logs:&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT size=2&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/TestDetailsTable.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/TestDetailsTable.png"&gt;&lt;IMG title=TestDetailsTable style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=470 alt=TestDetailsTable src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/TestDetailsTable_thumb.png" width=735 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/TestDetailsTable_thumb.png"&gt;&lt;/A&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;In the load test result shown above, it was a Web test that failed, so clicking on the &lt;/FONT&gt;&lt;FONT size=2&gt;“Test Log” link opens a new Web Test result viewer window in Visual Studio; you can see the details of requests that failed, but you can also browse around the Web test result to see the details of previous requests that may have been considered successful but perhaps caused later requests to fail because they were missing expected content (and there was not an appropriate validation rule).&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;As with the unit test, the Web test result viewer is the same as when the Web test is run outside of a load test:&lt;/FONT&gt; 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/WebTestResult.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/WebTestResult.png"&gt;&lt;IMG title=WebTestResult style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=661 alt=WebTestResult src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/WebTestResult_thumb.png" width=860 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/WebTestResult_thumb.png"&gt;&lt;/A&gt; 
&lt;P&gt;&lt;FONT size=2&gt;As a slight aside to this topic, the new Test Details table is available in the post-run load test analyzer as long as you have set the value for the Load Test Run Setting’s property “Timing Details Storage” to “All Individual Details”.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is true even if you disable the capturing of Test Logs by setting “Save Log on Test Failure” to False and leaving ““Save Log Frequency for Completed Tests” at the default value of 0 (which means never capture test logs for successful tests).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In this case, the Test Details table would look like this:&lt;/FONT&gt; 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/TestDetailsWithoutTestLog.png" mce_href="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/TestDetailsWithoutTestLog.png"&gt;&lt;IMG title=TestDetailsWithoutTestLog style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=406 alt=TestDetailsWithoutTestLog src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/TestDetailsWithoutTestLog_thumb.png" width=796 border=0 mce_src="http://blogs.msdn.com/blogfiles/billbar/WindowsLiveWriter/VSTS2010LoadTestFeatureSavingTestLogs_DA3F/TestDetailsWithoutTestLog_thumb.png"&gt;&lt;/A&gt; 
&lt;P&gt;&lt;FONT size=2&gt;When “Timing Details Storage” is set to “All Individual Details” (&lt;STRONG&gt;which is now the default value for this property for load tests created with VSTS 2010&lt;/STRONG&gt;), the data shown in the table above is stored in the load test results database for all tests run within the load test (excluding the warm-up and cool-down periods).&amp;nbsp;&amp;nbsp;&amp;nbsp; The Test Details table in the Load Test Analyzer will only display up to 1000 of these rows at a time.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When the table is first loaded, it is sorted in chronological order (that is by ascending values of the Start Time column) as shown above.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; However, you can choose a different sort column and toggle the sort order by clicking on the column headers.&amp;nbsp;&amp;nbsp;&amp;nbsp; This results in a new query to the load test database so that you see the top 1000 rows matching the sort column and order.&amp;nbsp;&amp;nbsp;&amp;nbsp; For example, you can choose to sort by the slowest values in the Test Time column to see the 1000 slowest individual tests within the load test.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9710876" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/billbar/archive/tags/Unit+test/default.aspx">Unit test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS/default.aspx">VSTS</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Load+test/default.aspx">Load test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/tsbt-tst/default.aspx">tsbt-tst</category><category domain="http://blogs.msdn.com/billbar/archive/tags/testing/default.aspx">testing</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Web+test/default.aspx">Web test</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS2010/default.aspx">VSTS2010</category><category domain="http://blogs.msdn.com/billbar/archive/tags/Visual+Studio+2010/default.aspx">Visual Studio 2010</category><category domain="http://blogs.msdn.com/billbar/archive/tags/VSTS+Testing/default.aspx">VSTS Testing</category></item></channel></rss>