<?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>Larry's WebLog : Technology</title><link>http://blogs.msdn.com/larsun/archive/tags/Technology/default.aspx</link><description>Tags: Technology</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>NUnit vs. Your Own Unit Tests</title><link>http://blogs.msdn.com/larsun/archive/2004/04/09/110643.aspx</link><pubDate>Fri, 09 Apr 2004 22:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:110643</guid><dc:creator>larsun</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/larsun/comments/110643.aspx</comments><wfw:commentRss>http://blogs.msdn.com/larsun/commentrss.aspx?PostID=110643</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Lately, I have been surrounded by NUnit in my daily conversations.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;1. It is probably that I am a tester, I somehow got to write/improve some unit tests;&lt;BR&gt;2. NUnit has quickly become a general practice (standard) among my product team where more developers, PM and testers have been pushing this neat practice;&lt;BR&gt;3. NUnit has grown out of its design role among my test organization (I will explain later in this post)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;First of all, you can find NUnit &lt;A href="http://www.nunit.org/"&gt;here&lt;/A&gt;. L&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;et me introduce NUnit to people who have not used yet.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;A simple test can be created with following few lines of code:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#a52a2a size=1&gt;[TestFixture]&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=Verdana color=#a52a2a size=1&gt;public class SampleTest&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp; [Test]&lt;BR&gt;&amp;nbsp;&amp;nbsp; public void MyTest()&lt;BR&gt;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assertion.Assert(&amp;#8220;This is&amp;nbsp;MyTest&amp;#8220;, 1=2);&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=Verdana color=#a52a2a size=1&gt;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;If you need more information about &lt;A href="http://www.nunit.org"&gt;NUnit&lt;/A&gt;, please check out their documentation.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;In addition to the NUnit which developers and testers can use for Windows-based applicaiton, NUnit has a version for ASP.NET (hear from my co-workers, I believe that it is still in beta) as well.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;What have made NUnit a such interesting tool is that testers can leverage NUnit to do some cool testing practices.&lt;BR&gt;- NUnit attributes can be extended by writing custom attributes by developers and testers;&lt;BR&gt;- With a great number of unit tests, anyone can write a not-so-difficult .NET application with Reflection to discover NUnit unit tests by their attributes and invoke them one by one.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;The advantages of using NUnit in normal testing scenarios are:&lt;BR&gt;- Without too much code, testers can acquire coverage number on applications with an instrumentation tool;&lt;BR&gt;- A suite of NUnit unit tests can set the minimum requirement for a code's minimum functional screening; therefore, this ensures that tester will not spend time on a broken build;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;I think I will stop here for the day. As of myself, I am still exploring NUnit, I have been using it for a while now; however, with&amp;nbsp;much more possiblity NUnit presents with other great tools, a tester nowadays can achieve many things without too much effort.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=110643" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/larsun/archive/tags/Technology/default.aspx">Technology</category></item><item><title>Performance test &amp; a little bit of something else</title><link>http://blogs.msdn.com/larsun/archive/2004/03/25/96470.aspx</link><pubDate>Fri, 26 Mar 2004 00:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:96470</guid><dc:creator>larsun</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/larsun/comments/96470.aspx</comments><wfw:commentRss>http://blogs.msdn.com/larsun/commentrss.aspx?PostID=96470</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Lately, I have been doing a great deal of performance testing. In fact, I am kinda glad that I had the opportunity and time to get good at it. I have only been working at MS for one and half years, a lot of the tasks we do daily here are still kinda new and exciting to me. For example, performance testing is not as easy as some people may think it is. There are so many factors which can affect the testing itself as well as the result. Most importantly, the purpose of a performance test is to measure the scalibility and architecture of an application. Sometimes, I even surprised at the conclusion we came to. All I have to say, &amp;#8220;Performance testing is a science!&amp;#8221;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;What made the performance testing a science in my own mind is that the tester has to understand what he/she is going after, what kind of steps he/she needs to take to get there, and most importantly, how to interpret&amp;nbsp;so many numbers a tester gets back from running the test. Here is a simple list of things a normal performance testing would need:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;- &lt;FONT color=#a52a2a&gt;C&lt;/FONT&gt;lient(s) as computers which would run the test&lt;BR&gt;- &lt;FONT color=#a52a2a&gt;T&lt;/FONT&gt;arget as the object a tester want to measure&lt;BR&gt;- &lt;FONT color=#a52a2a&gt;P&lt;/FONT&gt;erformance Counters as the things someone need to pay attention to&lt;BR&gt;- &lt;FONT color=#a52a2a&gt;D&lt;/FONT&gt;uration as the length of the test which can vary dramatically from few minutes to several days; in some extreme case, even few months&lt;BR&gt;- &lt;FONT color=#a52a2a&gt;W&lt;/FONT&gt;armup and CoolDown Time as the time the Target would get ready to be stressed and &amp;#8220;Attacked&amp;#8221;&lt;BR&gt;- &lt;FONT color=#a52a2a&gt;N&lt;/FONT&gt;umbers as the result a tester would get back from running a performance test&lt;BR&gt;- &lt;FONT color=#a52a2a&gt;C&lt;/FONT&gt;onslusion as the analysis of those numbers&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;If you haven't noticed yet, I was trying to create a cool acronym with the first letters of each term. Have a nice day, all! Hopefully you would find this post&amp;nbsp;interesting.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000000 size=2&gt;P.S. My friend and I have been going to Applebee's lately for its Happy Hour menu, all I have to say is &amp;#8220;Man, it is good!&amp;#8221;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=96470" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/larsun/archive/tags/Technology/default.aspx">Technology</category></item></channel></rss>