<?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>Load Testing Web Services with Unit Tests</title><link>http://blogs.msdn.com/slumley/pages/load-testing-web-services-with-unit-tests.aspx</link><description>This post is going to focus on load testing web services. The web services will be called from unit tests which will then be added to a load test. The example will also show how to use timers in a unit test which will then show up in the load test monitor.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Load Testing Web Services with Unit Tests</title><link>http://blogs.msdn.com/slumley/pages/load-testing-web-services-with-unit-tests.aspx#1296116</link><pubDate>Fri, 15 Dec 2006 20:04:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1296116</guid><dc:creator>Sean Lumley's Blog </dc:creator><description>&lt;p&gt;Here is an article which describes how to load test web services with unit tests: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/slumley/pages/load-testing-web-services-with-unit-tests.asp"&gt;http://blogs.msdn.com/slumley/pages/load-testing-web-services-with-unit-tests.asp&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Load Testing Web Services with Unit Tests</title><link>http://blogs.msdn.com/slumley/pages/load-testing-web-services-with-unit-tests.aspx#3451260</link><pubDate>Fri, 22 Jun 2007 05:00:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3451260</guid><dc:creator>VSTSTester</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;Its a very useful . &amp;nbsp;I have one issue in Avg.Response time and Avg. Transaction Time both the values for my loadtest &amp;nbsp;has no values &amp;nbsp;i mean '-' and '0'.&lt;/p&gt;
&lt;p&gt;Even i have defined transaction in my unit test as below,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TestContext.BeginTimer(&amp;quot;t1&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;List&amp;lt;PersonLocationInformation&amp;gt; actual = target.TestSummary(100);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TestContext.EndTimer(&amp;quot;t1&amp;quot;);&lt;/p&gt;
&lt;p&gt;Please help me to fix this issue &lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
</description></item><item><title>re: Load Testing Web Services with Unit Tests</title><link>http://blogs.msdn.com/slumley/pages/load-testing-web-services-with-unit-tests.aspx#3565472</link><pubDate>Wed, 27 Jun 2007 16:49:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3565472</guid><dc:creator>slumley</dc:creator><description>&lt;p&gt;Is there at least 1 iteration of the unit test completing. &amp;nbsp;Transaction counters are not reported until at least one iteration completes&lt;/p&gt;
</description></item><item><title>re: Load Testing Web Services with Unit Tests</title><link>http://blogs.msdn.com/slumley/pages/load-testing-web-services-with-unit-tests.aspx#3881188</link><pubDate>Sun, 15 Jul 2007 21:23:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3881188</guid><dc:creator>RMehra</dc:creator><description>&lt;p&gt;Hi Sean,&lt;/p&gt;
&lt;p&gt;I am new to this concept. I have to perform load testing of a web service and for this your article is quite informative, an excellent one.&lt;/p&gt;
&lt;p&gt;However, I need some guidence as well. I have to know the time in which my web service does its processing and sends back the xml response.I need to do this load testing for a constant load of 1000 users and want to know this performance unit(time it takes to process a request and send back the response) under such load.Can you please guide me regarding it?&lt;/p&gt;
&lt;p&gt;Moreover, could you please clarify if a load of 1000 user means that the load test would continously send 1000 request to the web service after each time interval as stated in sample rate or it means that it just send a request to 1000 users and then samples the response and gives the data accordingly.&lt;/p&gt;
&lt;p&gt;It would be of real help if you could guide me regarding these issue.&lt;/p&gt;
&lt;p&gt;Thanks in anticipation&lt;/p&gt;
</description></item><item><title>re: Load Testing Web Services with Unit Tests</title><link>http://blogs.msdn.com/slumley/pages/load-testing-web-services-with-unit-tests.aspx#4402761</link><pubDate>Wed, 15 Aug 2007 20:34:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4402761</guid><dc:creator>slumley</dc:creator><description>&lt;p&gt;Rmehera,&lt;/p&gt;
&lt;p&gt;You could get the time that it takes for the web service calls by using the timer objects described in this article. &amp;nbsp;Just surround your call with begin and end timer calls.&lt;/p&gt;
&lt;p&gt;1000 users means that we will have 1000 virtual users executing your unit test or web test. &amp;nbsp;So if the only thing in your unit test is a call to web service, then it basically means that there would be continuous requests from 1000 users.&lt;/p&gt;
</description></item></channel></rss>