<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>rajeshkumarnch</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/rajeshkumarnch/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/feed.xml</link>
    <description>I have been working with, various automation and load testing tools since last 12 yrs and found workarounds/solutions/tools to fix the issues that I had faced. I am sure these are common to any performance tester, so I would like to share my experience.</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:25:00 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Reset think times to Zero or to a desired value using VSTS Web / Load Test plugin</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/reset-think-times-to-zero-or-to-a-desired-value-using-vsts-web-load-test-plugin</link>
      <pubDate>Thu, 30 Jun 2011 04:15:49 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/reset-think-times-to-zero-or-to-a-desired-value-using-vsts-web-load-test-plugin/</guid>
      <description><![CDATA[How to reset think times to Zero or to a desired value using VSTS Web / Load Test plugin
In my case...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: book antiqua,palatino; font-size: medium;">How to reset think times to Zero or to a desired value using VSTS Web / Load Test plugin</span></p>
<p><span style="font-family: book antiqua,palatino; font-size: medium;">In my case I need to reset think time to Zero to get max iteration in specified run. I can do this manually but it requires a lot amount of time to do that. I need to go through each web test request and set think time as Zero, which is tedious - as I have so many web requests and web tests.</span></p>
<p><span style="font-family: book antiqua,palatino; font-size: medium;">&nbsp;</span><span style="font-family: book antiqua,palatino; font-size: medium;">Adding this plug-in it navigates to all web tests and provides think time as Zero/targeted value during load test execution. So that we no need to edit each web test and web test step individually.</span></p>
<p><span style="text-decoration: underline;"><strong><span style="font-family: book antiqua,palatino; font-size: medium;">Plugin Code</span></strong></span></p>
<p><span style="background-color: #ffff00;">using System;</span><br /><span style="background-color: #ffff00;">using System.Collections.Generic;</span><br /><span style="background-color: #ffff00;">using System.Linq;</span><br /><span style="background-color: #ffff00;">using System.Text;</span></p>
<p><span style="background-color: #ffff00;">namespace MyCustomClass</span><br /><span style="background-color: #ffff00;">{</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp; public class ResetThinkTime : Microsoft.VisualStudio.TestTools.WebTesting.WebTestPlugin</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp; {</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public override void PreRequest(object sender, Microsoft.VisualStudio.TestTools.WebTesting.PreRequestEventArgs e)</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.PreRequest(sender, e);</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.Request.Timeout = 0;</span></p>
<p><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (e.Request.ThinkTime &gt; 10)</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.Request.ThinkTime = 0;</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="background-color: #ffff00;">&nbsp;&nbsp;&nbsp; }</span><br /><span style="background-color: #ffff00;">}</span></p>
<p><span style="background-color: #ffffff; font-family: book antiqua,palatino; font-size: medium;">After compiling the source add plug in to each web test.</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Resolve SocketExceptions in VSTS Web / Load tests</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/resolve-socketexceptions-in-vsts-web-load-tests</link>
      <pubDate>Thu, 30 Jun 2011 04:05:13 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/resolve-socketexceptions-in-vsts-web-load-tests/</guid>
      <description><![CDATA[Socket exceptions can happen in following cases
&nbsp; Because of your Load Test Agent...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: book antiqua,palatino; font-size: medium;">Socket exceptions can happen in following cases</span></p>
<p><span style="font-family: book antiqua,palatino; font-size: medium;"></span><span style="font-family: book antiqua,palatino; font-size: medium;">&nbsp; Because of your Load Test Agent machines</span></p>
<p style="padding-left: 30px;"><span style="font-family: book antiqua,palatino; font-size: medium;">&nbsp;</span><span style="font-family: book antiqua,palatino; font-size: medium;"><span style="background-color: #ff0000;">Error </span>: Exception&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SocketException&nbsp; An operation was attempted on a non-blocking socket that already had an operation in progress&nbsp;&nbsp;&nbsp;&nbsp; Stack</span></p>
<p style="padding-left: 30px;"><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">System.Net.WebException: Unable to connect to the remote server ---&gt; System.Net.Sockets.SocketException: An operation was attempted on a non-blocking socket that already had an operation in progress</span></p>
<p style="padding-left: 30px;"><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp; at System.Net.Sockets.Socket.BeginConnectEx(EndPoint remoteEP, Boolean flowContext, AsyncCallback callback, Object state)</span></p>
<p style="padding-left: 30px;"><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp; at System.Net.Sockets.Socket.UnsafeBeginConnect(EndPoint remoteEP, AsyncCallback callback, Object state)</span></p>
<p style="padding-left: 30px;"><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp; at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket&amp; socket, IPAddress&amp; address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception&amp; exception)</span></p>
<p style="padding-left: 30px;"><span style="font-family: book antiqua,palatino; font-size: medium;"><span style="background-color: #008000;">Solution</span>: Some times in corp networks load test agent/controller machines uses internet proxy setting in that case - Proxy server will reject connections to the targeted servers saying</span></p>
<p><span style="font-family: book antiqua,palatino; font-size: medium;">&nbsp; Because of DOS attack</span></p>
<p style="padding-left: 30px;"><span style="font-family: book antiqua,palatino; font-size: medium;"><span style="background-color: #ff0000;">Error </span>: <b><i>&ldquo;No connection could be made because the target machine actively refused it &lt;IP Address&gt;&rdquo;</i></b></span></p>
<p style="padding-left: 30px;"><span style="font-family: book antiqua,palatino; font-size: medium;"><span style="background-color: #99cc00;">&nbsp;Solution1</span>: </span><span style="font-family: book antiqua,palatino; font-size: medium;">If the connections are made directly (without proxy) and still if you encounter Socket Exception then that could be due to the fact that Webserver is rejecting the connections as it receiving connection requests from the same host. In that case try adding more agents to distribute the load and use as many as IP&rsquo;s in Agent configuration settings to generate the targeted load.</span></p>
<p style="padding-left: 30px;"><span style="font-family: book antiqua,palatino; font-size: medium;"><span style="background-color: #99cc00;">Solution2:</span> Sometimes due to settings in web.config you will not be able to generate the targeted load then adjust throttling settings based on the processors</span></p>
<p style="padding-left: 30px;"><span style="background-color: #ffff00;"><span style="font-family: book antiqua,palatino; font-size: medium;">&nbsp;</span><span style="font-family: book antiqua,palatino; font-size: medium;">&lt;behaviors&gt;</span></span><br /><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;serviceBehaviors&gt;</span><br /><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;behavior name="WIBSBehavior"&gt;</span><br /><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;</span><br /><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;serviceThrottling maxConcurrentCalls="32" maxConcurrentSessions="30"/&gt;</span><br /><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/behavior&gt;</span><br /><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/serviceBehaviors&gt;</span><br /><span style="background-color: #ffff00; font-family: book antiqua,palatino; font-size: medium;">&lt;/behaviors&gt;</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Solve 500 internal server errors in load test VSTS Web / Load testing</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/solve-500-internal-server-errors-in-load-test-vsts-web-load-testing</link>
      <pubDate>Thu, 30 Jun 2011 02:51:02 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/solve-500-internal-server-errors-in-load-test-vsts-web-load-testing/</guid>
      <description><![CDATA[-will update content shortly-]]></description>
      <content:encoded><![CDATA[<p>-will update content shortly-</p>]]></content:encoded>
    </item>
    <item>
      <title>How to load test Silverlight/Flash/Rich UI/ based apps using VSTS Web / Load Testing</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/how-to-load-test-silverlightflashrich-ui-based-apps-using-vsts-web-load-testing</link>
      <pubDate>Thu, 30 Jun 2011 02:50:24 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/how-to-load-test-silverlightflashrich-ui-based-apps-using-vsts-web-load-testing/</guid>
      <description><![CDATA[-will update content shortly-]]></description>
      <content:encoded><![CDATA[<p>-will update content shortly-</p>]]></content:encoded>
    </item>
    <item>
      <title>Client side UI rendering time -during load - VSTS Web / Load testing</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/client-side-ui-rendering-time-during-load-vsts-web-load-testing</link>
      <pubDate>Thu, 30 Jun 2011 02:49:47 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/client-side-ui-rendering-time-during-load-vsts-web-load-testing/</guid>
      <description><![CDATA[-will update content shortly-]]></description>
      <content:encoded><![CDATA[<p>-will update content shortly-</p>]]></content:encoded>
    </item>
    <item>
      <title>Performance Testing - VM’s vs Physical machines</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/performance-testing-vms-vs-physical-machines</link>
      <pubDate>Thu, 30 Jun 2011 02:49:00 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/performance-testing-vms-vs-physical-machines/</guid>
      <description><![CDATA[-will update content shortly-]]></description>
      <content:encoded><![CDATA[<p>-will update content shortly-</p>]]></content:encoded>
    </item>
    <item>
      <title>Optimize hardware ask through extrapolation logics Performance Tests</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/optimize-hardware-ask-through-extrapolation-logics-performance-tests</link>
      <pubDate>Thu, 30 Jun 2011 02:48:05 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/optimize-hardware-ask-through-extrapolation-logics-performance-tests/</guid>
      <description><![CDATA[-will update content shortly-]]></description>
      <content:encoded><![CDATA[<p>-will update content shortly-</p>]]></content:encoded>
    </item>
    <item>
      <title>General error handling in scripts creation, execution, result analysis and troubleshooting VSTS Web / Load testing</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/general-error-handling-in-scripts-creation-execution-result-analysis-and-troubleshooting-vsts-web-load-testing</link>
      <pubDate>Thu, 30 Jun 2011 02:47:30 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/general-error-handling-in-scripts-creation-execution-result-analysis-and-troubleshooting-vsts-web-load-testing/</guid>
      <description><![CDATA[-will update content shortly-]]></description>
      <content:encoded><![CDATA[<p>-will update content shortly-</p>]]></content:encoded>
    </item>
    <item>
      <title>How to increase / decrease user load during test run using VSTS Web / Load testing</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/how-to-increase-decrease-user-load-during-test-run-using-vsts-web-load-testing</link>
      <pubDate>Thu, 30 Jun 2011 02:46:52 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/how-to-increase-decrease-user-load-during-test-run-using-vsts-web-load-testing/</guid>
      <description><![CDATA[-will update content shortly-]]></description>
      <content:encoded><![CDATA[<p>-will update content shortly-</p>]]></content:encoded>
    </item>
    <item>
      <title>Creating ren•dez•vous points using VSTS Web / Load tests as like in other load test tools</title>
      <link>https://docs.microsoft.com/archive/blogs/rajeshkumarnch/creating-rendezvous-points-using-vsts-web-load-tests-as-like-in-other-load-test-tools</link>
      <pubDate>Thu, 30 Jun 2011 02:45:41 GMT</pubDate>
      <dc:creator><![CDATA[Rajesh Kumar N.Ch]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajeshkumarnch/2011/06/30/creating-rendezvous-points-using-vsts-web-load-tests-as-like-in-other-load-test-tools/</guid>
      <description><![CDATA[-will update content shortly-]]></description>
      <content:encoded><![CDATA[<p>-will update content shortly-</p>]]></content:encoded>
    </item>
  </channel>
</rss>