<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>Blinded by the lights</title>
	
	<link>http://dobrzanski.net</link>
	<description>Jarosław Dobrzański's technical blog</description>
	<lastBuildDate>Mon, 08 Mar 2010 22:10:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/BlindedByTheLights" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="blindedbythelights" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/</creativeCommons:license><item>
		<title>How to abort load test when its scenario fails?</title>
		<link>http://dobrzanski.net/2010/03/08/how-to-abort-load-test-when-its-scenario-fails/</link>
		<comments>http://dobrzanski.net/2010/03/08/how-to-abort-load-test-when-its-scenario-fails/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 22:10:07 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[load testing]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=668</guid>
		<description><![CDATA[By definition a load test is supposed to simulate many users accessing a server at the same time. It consists of series of iterations, which can be either Web tests or unit tests. Each operation is repeated the defined number of times for each virtual user.
A load test completes with status &#8216;Completed&#8217;. If one needs [...]]]></description>
			<content:encoded><![CDATA[<p>By definition a load test is supposed to simulate many users accessing a server at the same time. It consists of series of iterations, which can be either Web tests or unit tests. Each operation is repeated the defined number of times for each virtual user.</p>
<p>A load test completes with status &#8216;Completed&#8217;. If one needs to learn more details on the run, they should open the result file (trx) and read the statistics. Now, in real world something can go wrong with either the infrastructure or one of the system components. Let&#8217;s say that one of the element in a long Web test fails for a reason. In such case you would rather not wasting time analyzing the result of the test to find it out only ten, but write it off automatically. </p>
<p><span id="more-668"></span></p>
<p>You can implement a load test plugin which will do the whole work. What you need to do is to add a handler for <code>TestFinished</code> event, which occurs every time an iteration (a Web or unit test) finishes. In this event handler you can retrieve the information whether the iteration completed successfully or not. Depending on such information you can continue (i.e. do nothing) or abort the test (possibly returning a meaningful error message). A sample OnTestFinished event handler could look as below (test is an instance of the <code>LoadTest</code> class):</p>
<pre name="code" class="c-sharp">
private void OnTestFinished(object sender, TestFinishedEventArgs e)
{
	if (!e.Result.Passed)
	{
		test.Abort(new Exception("One of the load test's iterations failed..."));
	}
}</pre>
<p>Please refer to Gabriel Szlechtman <a href="http://blogs.southworks.net/gabrielsz/2009/06/04/visual-studio-load-testing-optimizing-performance-lab-time/">description on how to create a plugin for a load test</a> to get more information on the structure of the plugin and how to hook it to the load test.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/oNHT3hO92_8dsJlBpSvdli7p02o/0/da"><img src="http://feedads.g.doubleclick.net/~a/oNHT3hO92_8dsJlBpSvdli7p02o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oNHT3hO92_8dsJlBpSvdli7p02o/1/da"><img src="http://feedads.g.doubleclick.net/~a/oNHT3hO92_8dsJlBpSvdli7p02o/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/03/08/how-to-abort-load-test-when-its-scenario-fails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS: Disable the web site and display generic app offline information</title>
		<link>http://dobrzanski.net/2010/02/10/iis-disable-web-site-display-generic-app-offline-information/</link>
		<comments>http://dobrzanski.net/2010/02/10/iis-disable-web-site-display-generic-app-offline-information/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 12:45:56 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=665</guid>
		<description><![CDATA[Deployment of a new version of a site is a very tricky/risky procedure. At some point (i.e. until deployment is not completed) your service will work not as it is supposed to, which can result in reset session, HTTP errors displayed, etc. Whatever the result is it can really discourage the users of your service [...]]]></description>
			<content:encoded><![CDATA[<p>Deployment of a new version of a site is a very tricky/risky procedure. At some point (i.e. until deployment is not completed) your service will work not as it is supposed to, which can result in reset session, HTTP errors displayed, etc. Whatever the result is it can really discourage the users of your service and, let&#8217;s be honest, will not look very professional (if not lame&#8230;).</p>
<p>That&#8217;s why at the time of deploying the changes, you probably should temporarily switch off the service and display the appropriate message so that the user knows the web site is being updated, and that is happening now. </p>
<p>Now, if you are hosting the service on IIS this is very simple to achieve. All you need to do is copy <strong>app_offline.htm</strong> to the root directory of your web site. Once the file is in place, it will be served to the user as a response to any request to your web site. Once you&#8217;re done with deployment, remove that file and the updated service will start working again. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/-rvnZUA1JQQjVeFOyLXM1aGoSBo/0/da"><img src="http://feedads.g.doubleclick.net/~a/-rvnZUA1JQQjVeFOyLXM1aGoSBo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-rvnZUA1JQQjVeFOyLXM1aGoSBo/1/da"><img src="http://feedads.g.doubleclick.net/~a/-rvnZUA1JQQjVeFOyLXM1aGoSBo/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/02/10/iis-disable-web-site-display-generic-app-offline-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LoadTest: MethodAccessException Microsoft.VisualStudio.TestTools.WebTesting.WebTest.set_Outcome</title>
		<link>http://dobrzanski.net/2010/02/04/loadtest-methodaccessexception-microsoft-visualstudio-testtools-webtesting-webtest-set_outcome/</link>
		<comments>http://dobrzanski.net/2010/02/04/loadtest-methodaccessexception-microsoft-visualstudio-testtools-webtesting-webtest-set_outcome/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 12:13:06 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[load testing]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[web testing]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=621</guid>
		<description><![CDATA[I had a load test that used a coded web test. At some point the coded web test changed, i.e. this line was added: Outcome = Outcome.Fail;.
After this change the test stopped working &#8211; it always ended with error message: &#8216;User aborted test run&#8217;. Apart from that each iteration of the web test produced MethodAccessException: [...]]]></description>
			<content:encoded><![CDATA[<p>I had a load test that used a coded web test. At some point the coded web test changed, i.e. this line was added: <code>Outcome = Outcome.Fail;</code>.</p>
<p>After this change the test stopped working &#8211; it always ended with error message: &#8216;User aborted test run&#8217;. Apart from that each iteration of the web test produced <em>MethodAccessException: Microsoft.VisualStudio.TestTools.WebTesting.WebTest.set_Outcome(Microsoft.VisualStudio.TestTools.WebTesting.Outcome)</em>.</p>
<h2>Solution</h2>
<p>The reason for the problem was I was using Visual Studio TS 2008 without SP1. Once I installed the SP1, which must have updated mstest, the test started running successfully again. </p>
<p>The key point here is before SP1 Outcome was read-only property, which I learned <a href="http://social.msdn.microsoft.com/Forums/en-ZA/vstswebtest/thread/3fa56c1e-24fd-4c24-885e-036a64fe978f">there</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/IcXJ0roHCc87RYRyPixLwIZqGqY/0/da"><img src="http://feedads.g.doubleclick.net/~a/IcXJ0roHCc87RYRyPixLwIZqGqY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/IcXJ0roHCc87RYRyPixLwIZqGqY/1/da"><img src="http://feedads.g.doubleclick.net/~a/IcXJ0roHCc87RYRyPixLwIZqGqY/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/02/04/loadtest-methodaccessexception-microsoft-visualstudio-testtools-webtesting-webtest-set_outcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to invoke a common coded web test method from GetRequestEnumerator()?</title>
		<link>http://dobrzanski.net/2010/01/23/how-to-invoke-a-common-coded-web-test-method-from-getrequestenumerator/</link>
		<comments>http://dobrzanski.net/2010/01/23/how-to-invoke-a-common-coded-web-test-method-from-getrequestenumerator/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 12:08:36 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[web testing]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=612</guid>
		<description><![CDATA[It&#8217;s a fact that coded web test methods give more flexibility to the developer, i.e. common code reuse. So let&#8217;s create a coded web test in whose GetRequestEnumerator() method you want to call a common method which tests some other requests. Let&#8217;s make it look as GetCommonRequests() in the example below:

public class AWebTest : WebTest
{
 [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a fact that coded web test methods give more flexibility to the developer, i.e. common code reuse. So let&#8217;s create a coded web test in whose <code>GetRequestEnumerator()</code> method you want to call a common method which tests some other requests. Let&#8217;s make it look as <code>GetCommonRequests()</code> in the example below:</p>
<pre name="code" class="c-sharp">
public class AWebTest : WebTest
{
    private IEnumerator&lt;WebTestRequest&gt; GetCommonRequests()
    {
        WebTestRequest req1 = new WebTestRequest("http://google.com");
        yield return req1;

        WebTestRequest req2 = new WebTestRequest("http://google.com");
        yield return req2;
    }

    public override IEnumerator&lt;WebTestRequest&gt; GetRequestEnumerator()
    {
        WebTestRequest req = new WebTestRequest("http://google.com");
        yield return req;

        GetCommonRequests();
    }
}
</pre>
<p>You would expect to see three requests in the test result. You will see only one though&#8230;</p>
<p><span id="more-612"></span></p>
<h2>Solution</h2>
<p>The reason for that is you make a simple call to <code>GetCommonRequests()</code>, and you are not returning (with <code>yield</code> command) the actual value to the enumerator that holds <code>WebTestRequests</code>. Going forward, in main test method only one web request is added to the enumerator.</p>
<p>To make it working you need to call <code>GetCommonRequests()</code> in more sophisticated way:</p>
<pre name="code" class="c-sharp">
public class AWebTest : WebTest
{
    private IEnumerator&lt;WebTestRequest&gt; GetCommonRequests()
    {
        WebTestRequest req1 = new WebTestRequest("http://google.com");
        yield return req1;

        WebTestRequest req2 = new WebTestRequest("http://google.com");
        yield return req2;
    }

    public override IEnumerator&lt;WebTestRequest&gt; GetRequestEnumerator()
    {
        WebTestRequest req = new WebTestRequest("http://google.com");
        yield return req;

        IEnumerator&lt;WebTestRequest&gt; requests = GetCommonRequests();
        while (requests.MoveNext())
        {
            yield return requests.Current;
        }
    }
}
</pre>
<p>Only this way will there be three requests visible in the test result.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/II25h3X9KgiUq-p2WS8QcK8Hhc0/0/da"><img src="http://feedads.g.doubleclick.net/~a/II25h3X9KgiUq-p2WS8QcK8Hhc0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/II25h3X9KgiUq-p2WS8QcK8Hhc0/1/da"><img src="http://feedads.g.doubleclick.net/~a/II25h3X9KgiUq-p2WS8QcK8Hhc0/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/01/23/how-to-invoke-a-common-coded-web-test-method-from-getrequestenumerator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is it possible to fail a load test?</title>
		<link>http://dobrzanski.net/2010/01/23/is-it-possible-to-fail-a-load-test/</link>
		<comments>http://dobrzanski.net/2010/01/23/is-it-possible-to-fail-a-load-test/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 10:58:56 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[load testing]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=608</guid>
		<description><![CDATA[It&#8217;s not really possible to fail a load test because by default it always ends with status &#8216;Completed&#8217;. Because of that anytime a load test completes one musts analyze the results &#8211; if performance stayed at the acceptable level. So, despite being a powerful tool, load tests require human attention, which makes the whole testing [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not really possible to fail a load test because by default it always ends with status &#8216;Completed&#8217;. Because of that anytime a load test completes one musts analyze the results &#8211; if performance stayed at the acceptable level. So, despite being a powerful tool, load tests require human attention, which makes the whole testing process less automate. </p>
<p><span id="more-608"></span></p>
<p>Luckily, load tests can be enhanced with plugins. I don&#8217;t want to describe how to create a plugin here; if you are interested have a look at <a href="http://blogs.southworks.net/gabrielsz/2009/06/04/visual-studio-load-testing-optimizing-performance-lab-time/">a very good description provided by Gabriel Szlechtman</a>. Following that advice you can easily extend a load test so that it stops whenever there&#8217;s a threshold violation (it is defined for a counter, e.g. page load time, CPU usage). All you need to do is to use <code>Abort()</code> or <code>Abort(Exception)</code> of <code>LoadTest</code> class. The latter is probably more convenient because it allows revealing the reason why the test was aborted. </p>
<p>At the end of a day, once the test is aborted it&#8217;s status is set to &#8216;Error&#8217;, which can be treated as &#8216;Failed&#8217; in your automated testing process.<br />
<a href="http://dobrzanski.net/wp-content/uploads/2010/01/loadtestresult.jpg" rel="lightbox[608]"><img src="http://dobrzanski.net/wp-content/uploads/2010/01/loadtestresult-350x42.jpg" alt="loadtestresult 350x42 Is it possible to fail a load test?" title="Result of an aborted load test " width="350" height="42" class="alignnone size-medium wp-image-609" /></a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/KojCDNo4bfjKsrcmF57VIfNVPHk/0/da"><img src="http://feedads.g.doubleclick.net/~a/KojCDNo4bfjKsrcmF57VIfNVPHk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KojCDNo4bfjKsrcmF57VIfNVPHk/1/da"><img src="http://feedads.g.doubleclick.net/~a/KojCDNo4bfjKsrcmF57VIfNVPHk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/01/23/is-it-possible-to-fail-a-load-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to quickly add logging to a coded web test?</title>
		<link>http://dobrzanski.net/2010/01/22/how-to-quickly-add-a-logging-to-a-coded-web-test/</link>
		<comments>http://dobrzanski.net/2010/01/22/how-to-quickly-add-a-logging-to-a-coded-web-test/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 22:15:31 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[web testing]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=598</guid>
		<description><![CDATA[A coded web test, as opposed to a basic web test, brings more flexibility to the developer: conditioning, looping, code re-usage, etc. If you haven&#8217;t created one yet, you can follow an instruction on MSDN.
Now, because a coded web test can have some logic inside, it makes sense to add logging so that there&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<p>A coded web test, as opposed to a basic web test, brings more flexibility to the developer: conditioning, looping, code re-usage, etc. If you haven&#8217;t created one yet, you can follow <a href="http://msdn.microsoft.com/en-us/library/ms182550(VS.80).aspx">an instruction on MSDN</a>.</p>
<p>Now, because a coded web test can have some logic inside, it makes sense to add logging so that there&#8217;s a trace on what&#8217;s going on while it executes. </p>
<p><span id="more-598"></span></p>
<p>The easiest way to add a logging feature is to use <code>AddCommentToResult</code> method of <code>WebTest</code> class:</p>
<pre name="code" class="c-sharp">
public class AWebTest : WebTest
{
    public override IEnumerator&lt;WebTestRequest&gt; GetRequestEnumerator()
    {
        AddCommentToResult("This is a comment");

        // test code to go there
    }
}</pre>
<p>When you open the test result you will see something similar to this:<br />
<a href="http://dobrzanski.net/wp-content/uploads/2010/01/webtestresult.jpg" rel="lightbox[598]"><img src="http://dobrzanski.net/wp-content/uploads/2010/01/webtestresult-350x93.jpg" alt="webtestresult 350x93 How to quickly add logging to a coded web test?" title="webtestresult" width="350" height="93" class="alignnone size-medium wp-image-600" /></a></p>
<p>Of course, this is not the most convenient and appropriate way of saving the trace of the test, but there are no additional steps needed to get it working. However, if you need only small amount of very basic information you can give it a try.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/OjLRKlaziqsw3CNkN0t8zF8Hp9I/0/da"><img src="http://feedads.g.doubleclick.net/~a/OjLRKlaziqsw3CNkN0t8zF8Hp9I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OjLRKlaziqsw3CNkN0t8zF8Hp9I/1/da"><img src="http://feedads.g.doubleclick.net/~a/OjLRKlaziqsw3CNkN0t8zF8Hp9I/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/01/22/how-to-quickly-add-a-logging-to-a-coded-web-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Load Test – Plug-In class not found</title>
		<link>http://dobrzanski.net/2010/01/13/load-test-plug-in-class-not-found/</link>
		<comments>http://dobrzanski.net/2010/01/13/load-test-plug-in-class-not-found/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 10:24:43 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[load testing]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=592</guid>
		<description><![CDATA[I wanted to change a load test so that it works similar to what Gabriel Szlechtman described in his blog. Additionally, I followed MSDN instruction on how to create a Load Test Plug-In. 
So I created a new project with a plug-in class, added a reference to it from load test project and wanted to [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to change a load test so that it works similar to what <a href="http://blogs.southworks.net/gabrielsz/2009/06/04/visual-studio-load-testing-optimizing-performance-lab-time/">Gabriel Szlechtman described in his blog</a>. Additionally, I followed <a href="http://msdn.microsoft.com/en-us/library/ms243153(VS.80).aspx">MSDN instruction on how to create a Load Test Plug-In</a>. </p>
<p>So I created a new project with a plug-in class, added a reference to it from load test project and wanted to hook the plug-in with the test. However, when I was doing the last step I was getting the following error:</p>
<p><img src="http://dobrzanski.net/wp-content/uploads/2010/01/pluginclassnotfound.jpg" alt="pluginclassnotfound Load Test   Plug In class not found" title="pluginclassnotfound" width="499" height="192" class="alignnone size-full wp-image-593" /></p>
<h2>Solution</h2>
<p>The fix is quite simple. When I added a new class for the plug-in, it was defined without the access modifier (and therefore it was <code>internal</code>), which made the class accessible from other classes <strong>only</strong> in the same assembly. Adding <code>public</code> access modifier for the plug-in class solved the problem.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/7GQ6TwfQffcRJPZTn7fVa_EAhm4/0/da"><img src="http://feedads.g.doubleclick.net/~a/7GQ6TwfQffcRJPZTn7fVa_EAhm4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7GQ6TwfQffcRJPZTn7fVa_EAhm4/1/da"><img src="http://feedads.g.doubleclick.net/~a/7GQ6TwfQffcRJPZTn7fVa_EAhm4/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/01/13/load-test-plug-in-class-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Could not access the result repository: Invalid object name ‘LoadTestRun’</title>
		<link>http://dobrzanski.net/2010/01/05/could-not-access-the-result-repository-invalid-object-name-loadtestrun/</link>
		<comments>http://dobrzanski.net/2010/01/05/could-not-access-the-result-repository-invalid-object-name-loadtestrun/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 07:57:59 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[load testing]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=588</guid>
		<description><![CDATA[When I ran a load test on my environment (Visual Studio TS 2008) for the first time I got the following error:
Error occurred running test. XXX could not access the result repository: Invalid object name &#8216;LoadTestRun&#8217;
Solution
The reason for that was I hadn&#8217;t had created a database schema for load tests. In order to do it [...]]]></description>
			<content:encoded><![CDATA[<p>When I ran a load test on my environment (Visual Studio TS 2008) for the first time I got the following error:</p>
<blockquote><p>Error occurred running test. XXX could not access the result repository: Invalid object name &#8216;LoadTestRun&#8217;</p></blockquote>
<h2>Solution</h2>
<p>The reason for that was I hadn&#8217;t had created a database schema for load tests. In order to do it I executed <em>&lt;VS location&gt;\Common7\IDE\loadtestresultsrepository.sql</em> which did all the job.</p>
<p>Please refer to <a href="http://msdn.microsoft.com/en-us/library/ms404661(VS.80).aspx">msdn</a> for more information.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/Xhou5NWZrxrZ1wJ5n0ug8fNrk9Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/Xhou5NWZrxrZ1wJ5n0ug8fNrk9Y/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Xhou5NWZrxrZ1wJ5n0ug8fNrk9Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/Xhou5NWZrxrZ1wJ5n0ug8fNrk9Y/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/01/05/could-not-access-the-result-repository-invalid-object-name-loadtestrun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Initializer list and initializing derived class members</title>
		<link>http://dobrzanski.net/2009/11/19/initializer-list-initializing-derived-class-members/</link>
		<comments>http://dobrzanski.net/2009/11/19/initializer-list-initializing-derived-class-members/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 08:53:34 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[c++]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=524</guid>
		<description><![CDATA[Initializer list in C++ looks like in the example below (see constructor od D class):

class B {
  public:
    B() { }
};

class D : public B {
  public:
    int x;
    int y;

    D(int _x , int _y) : x(_x) , y(_y +1) [...]]]></description>
			<content:encoded><![CDATA[<p>Initializer list in C++ looks like in the example below (see constructor od D class):</p>
<pre name="code" class="c-sharp">
class B {
  public:
    B() { }
};

class D : public B {
  public:
    int x;
    int y;

    D(int _x , int _y) : x(_x) , y(_y +1) { }
};
</pre>
<p><span id="more-524"></span></p>
<p>Now, what if class <code>B</code> had a protected member (z), which you had to initialize in the derived class? It can&#8217;t be done in the initializer list. It can be done as below though.</p>
<pre name="code" class="c-sharp">
class B {
  public:
    B() { }
  protected:
    int z;
};

class D : public B {
  public:
    int x;
    int y;

    D(int _x , int _y, int _z) : x(_x) , y(_y +1) {
        z = _z;
    }
};
</pre>
<p>Looks simple but if you are switching to C++ after several years it no longer must be so <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Initializer list and initializing derived class members Photo" /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/vNXIXVUXSzbb7BDWzgzbxfdymYk/0/da"><img src="http://feedads.g.doubleclick.net/~a/vNXIXVUXSzbb7BDWzgzbxfdymYk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/vNXIXVUXSzbb7BDWzgzbxfdymYk/1/da"><img src="http://feedads.g.doubleclick.net/~a/vNXIXVUXSzbb7BDWzgzbxfdymYk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/11/19/initializer-list-initializing-derived-class-members/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>C++: The Complete Reference</title>
		<link>http://dobrzanski.net/2009/11/18/complete-reference/</link>
		<comments>http://dobrzanski.net/2009/11/18/complete-reference/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 20:35:54 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[books]]></category>
		<category><![CDATA[c++]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=506</guid>
		<description><![CDATA[



Cover of C++: The Complete Reference



After several years of working with Java, C#, SQL and web technologies in general, there&#8217;s some time to use the other languages. Among others I&#8217;ll be writing some C++ code from time to time now. 
I used C (and alittle bit of C++) when I was a student but that [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl style="width: 252px;" class="wp-caption alignright">
<dt class="wp-caption-dt"><a href="http://www.amazon.com/C-Complete-Reference-Herbert-Schildt/dp/0078824761%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0078824761"><img src="http://ecx.images-amazon.com/images/I/41THPY3W73L._SL300_.jpg" alt="Cover of &quot;C++: The Complete Reference&quot;" title="Cover of &quot;C++: The Complete Reference&quot;" height="300" width="242" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Cover of <a href="http://www.amazon.com/C-Complete-Reference-Herbert-Schildt/dp/0078824761%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0078824761">C++: The Complete Reference</a></dd>
</dl>
</div>
</div>
<p>After several years of working with Java, C#, SQL and web technologies in general, there&#8217;s some time to use the other languages. Among others I&#8217;ll be writing some C++ code from time to time now. </p>
<p>I used C (and alittle bit of C++) when I was a student but that were all small projects and it was years ago. Now, it&#8217;s obvious I need to catch up with C/C++. I happened to get <a href="http://www.amazon.com/C-Complete-Reference-Herbert-Schildt/dp/0078824761/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1258575607&amp;sr=8-1">C++: The Complete Reference</a> by <a class="zem_slink" href="http://www.herbschildt.com" title="Herbert Schildt" rel="homepage">Herbert Schildt</a>. The word <em>reference</em> implies there&#8217;s probably no point in reading this book from title-page to colophon; there&#8217;s a lot of reference data like the standard function library. However, what I really liked about this book is it gives a quick introduction to most important aspects of C/C++ (e.g. pointers, classes, references, overloading, templates), of course with obvious and numerous code examples.</p>
<p><strong>Recommended</strong>. It&#8217;s worth keeping this book nearby while working with C++.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/326317cf-d0b9-4b8a-b2c1-ab05c1ddc76a/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=326317cf-d0b9-4b8a-b2c1-ab05c1ddc76a" alt="Reblog this post [with Zemanta]" title="C++: The Complete Reference Photo" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>

<p><a href="http://feedads.g.doubleclick.net/~a/ikRmvFNZ8xhldT1wKH1YzqNvvJM/0/da"><img src="http://feedads.g.doubleclick.net/~a/ikRmvFNZ8xhldT1wKH1YzqNvvJM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ikRmvFNZ8xhldT1wKH1YzqNvvJM/1/da"><img src="http://feedads.g.doubleclick.net/~a/ikRmvFNZ8xhldT1wKH1YzqNvvJM/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/11/18/complete-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.294 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-09 12:57:09 -->
