<?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>I. M. Testy</title><link>http://blogs.msdn.com/imtesty/default.aspx</link><description>Treatises on the practice of software testing is now located at 
http://testingmentor.com/imtesty</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>I.M. Testy is moving!</title><link>http://blogs.msdn.com/imtesty/archive/2009/11/19/i-m-testy-is-moving.aspx</link><pubDate>Thu, 19 Nov 2009 07:29:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9925164</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9925164.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9925164</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9925164</wfw:comment><description>&lt;p&gt;I started this blog about 3 1/2 years ago to share some ideas, observations, and lessons I’ve learned during my software testing career at Microsoft. I have also learned a lot about blogging, and also about communicating more effectively. &lt;/p&gt;  &lt;p&gt;It is great that MSDN has this blog site as a resource for Microsoft employees, but, I have decided to consolidate my blog onto my personal &lt;a href="http://testingmentor.com" target="_blank"&gt;Testing Mentor&lt;/a&gt; website.&lt;/p&gt;  &lt;p&gt;I migrated all my past posts and all comments (except pingbacks) to my new &lt;a href="http://testingmentor.com/imtesty" target="_blank"&gt;blog&lt;/a&gt;, and so the &lt;a href="http://testingmentor.com/imtesty" target="_blank"&gt;I.M. Testy blog&lt;/a&gt; will continue on. (Sorry, but you’ll have to update your &lt;a href="http://testingmentor.com/imtesty/feed" target="_blank"&gt;RSS&lt;/a&gt; feed.)&lt;/p&gt;  &lt;p&gt;I have been teaching software testing practices, complex problems solving approaches, and test design principles for almost 10 years at Microsoft. I get to work with some really great testers in our company who are working on some really hard problems. The test automation program I developed for the University of Washington for testing practitioners in the local area to improve their technical skills is going gangbusters. And my research into random test data generation using parameterized equivalent partitions and genetic algorithms is starting to blossom in new directions. &lt;/p&gt;  &lt;p&gt;All this means that each day illuminates a new idea and a new learning that helps me grow, and I hope to continue to share&amp;#160; my perspectives on our profession with my readers on my new &lt;a href="http://testingmentor.com/imtesty" target="_blank"&gt;blog&lt;/a&gt;, and hope to hear from you on my new &lt;a href="http://testingmentor.com/imtesty" target="_blank"&gt;blog&lt;/a&gt; soon.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9925164" width="1" height="1"&gt;</description></item><item><title>Localization Testing Part IV</title><link>http://blogs.msdn.com/imtesty/archive/2009/11/12/localization-testing-part-iv.aspx</link><pubDate>Thu, 12 Nov 2009 09:53:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9921268</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9921268.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9921268</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9921268</wfw:comment><description>&lt;p&gt;The past series of posts have focused on one of localization testing which describes the largest category of localization class issues reported by testers performing localization testing, and what we categorize as usability/behavioral type issues because they adversely impact the usability of the software or how end users interact with the product. This is the last post in this series, but I do intend to publish a more complete paper covering localization testing in the near future….stay tuned. This final post in this series will discuss issues that affect the layout of controls on a dialog or window and are generally referred to as clipping or truncation.&lt;/p&gt;  &lt;h3&gt;Clipping&lt;/h3&gt;  &lt;p&gt;Clipping occurs when the top or bottom portion of a control (including label controls that contain static text) is cut off and does not display the control or the control’s contents completely as illustrated below. Clipping and truncation is quite common on East Asian language versions because the default font size used in Japanese, Korean, and Chinese language versions is a 9 point font instead of the 8 point font used in English and other language versions. Clipping often occurs because developers fail to size controls adequately for larger fonts (especially common in East Asian language versions), or for display resolutions set to custom font sizes. Clipping also occurs because many localization tools are incapable of displaying a true WYSIWYG or runtime view of dialogs, requiring localizers to ‘guess’ when resizing control on dialog layouts.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/clipping_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clipping" border="0" alt="clipping" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/clipping_thumb.jpg" width="663" height="408" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;It is possible to test for potential clipping and truncation problem areas without a localized application. English language version should function and display properly on all localized language versions of the Windows operating system. So, one way to check for potential clipping or truncation issues is to install the English language version of the application under test on an East Asian language version of the Windows operating system. Another testing method to test for potential clipping and truncation issues is to change the Windows display appearance or the custom font size via the Display Properties control panel applet.&lt;/p&gt;  &lt;p&gt;However, due to the limitations of most current localization tools inability to dynamically resized controls and dialogs, and inability to display dialogs at runtime or present a true WYSIWYG view during the localization process, the localized language versions must also be tested for clipping and truncations caused by improper sizing and layout of controls.&lt;/p&gt;  &lt;h3&gt;Truncation&lt;/h3&gt;  &lt;p&gt;Truncation is similar to clipping, but typically occurs when the right side of controls are cut off (or the left side of the controls in bi-directional displays used in Hebrew and Arabic languages) and do not completely display the entire control or the control’s contents.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/truncation_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="truncation" border="0" alt="truncation" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/truncation_thumb.png" width="671" height="443" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h3&gt;Other Layout Issues&lt;/h3&gt;  &lt;p&gt;Because some localization tools may not provide a true ‘WYSIWYG’ display of what a dialog or property sheet will look like at runtime, occasionally resizing may cause several controls to overlap. This is especially true when dialogs contain dynamic controls that are dependent on certain configurations or machine states.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/image_thumb.png" width="675" height="348" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In East Asian cultures it is common for an individual’s surname to precede the given (first) name. (It is also uncommon to have a middle name, so this field should never be required.) Therefore, the controls for name type data may need to be repositioned on dialogs in East Asian language versions. The localization team will reposition the last name label and textbox controls and the given name controls. This means that the logical tab order be reset. Also, the surname textbox control should have focus when the dialog is displayed instead of the first given name field.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/clip_image002_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/clip_image002_thumb.jpg" width="682" height="325" /&gt;&lt;/a&gt;&lt;a href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/clip_image002%5B5%5D.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002[5]" border="0" alt="clip_image002[5]" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIV_A388/clip_image002%5B5%5D_thumb.jpg" width="689" height="319" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The tab order of controls should allow for easy, intuitive navigation of a dialog. Design guidelines suggest a tab order that changes the focus of controls from left to right and top to bottom. Focus should change between each control in a logical order, and dialogs should never have loss of tab focus’ where no control on the dialog appears to have focus.&lt;/p&gt;  &lt;p&gt;Tab order is typically problematic even in English language versions in the early lifecycle of many projects when the user interface is in flux. There is also a high probability of introducing tab order problems any time the controls on a dialog change. &lt;/p&gt;  &lt;h3&gt;All localization testing doesn’t have to be manual&lt;/h3&gt;  &lt;p&gt;In the past much of the localization testing has been repetitive manual testing. Testers would manually step through every menu item and other link to instantiate every dialog and property sheet in the program and inspect it visually and test the behavior of such things as tab order, access keys, etc. for errors. This painstaking process would be repeated multiple times during the project lifecycle on every localized language version. Unfortunately, not only was this boringly repetitive, but because the manual testers were looking at so many dialogs during the workday their eyes simply tired out leading to missed bugs. So, there must be a better way.&lt;/p&gt;  &lt;p&gt;We know that each dialog has a 2-dimensional size usually measured in pixels. Once we know the height and width of the dialog or property sheet we can measure the distance from the left most edge of the dialog to the leading edge of the first control. Using control properties such as size and location that are stored in the form’s resource file we can measure the size and position of each control on a dialog or property sheet. Once all controls are identified the distance and position of the controls can then be measured in relation to the dialog or property sheet and other controls. &lt;/p&gt;  &lt;p&gt;Using a simple example, let’s consider 1 dimension of a dialog as 250 pixels wide. The dialog contains a label control that is 15 pixels to the right of the left most edge of the dialog, and that label is 45 pixels in length. The textbox control next to the label starts at position 70, so there are 10 pixels between the right edge of the label control and the left edge of the textbox control. Now, let’s say that textbox control is 150 pixels wide. By calculating the width of the 2 controls plus the distance between the controls we can see that truncation will occur on this dialog. Similarly, we can also evaluate the relative position of controls on a dialog and detect alignment both horizontally and vertically more accurately than the human eye.&lt;/p&gt;  &lt;p&gt;Of course this is not a simple solution, but if you have thousands of dialogs and property sheets, and multiple language versions investing in an automated solution may be invaluable. One internal case study testing efficiency increased and significantly reduced manual testing and overall direct costs, and the effectiveness/accuracy of reported issues also increased. Perhaps not for everyone, but it is possible!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9921268" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/imtesty/archive/tags/Testing/default.aspx">Testing</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/Localization+Testing/default.aspx">Localization Testing</category></item><item><title>Localization Testing Part III</title><link>http://blogs.msdn.com/imtesty/archive/2009/11/03/localization-testing-part-iii.aspx</link><pubDate>Tue, 03 Nov 2009 19:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9916926</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9916926.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9916926</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9916926</wfw:comment><description>&lt;P&gt;Part 1 provided an overview of localization class issues, and Part II discussed issues with non-translated strings in a localized product and gave some helpful hints to manage that problem during the software development lifecycle. In Part III I will cover various issues with access key mnemonics. An access key mnemonic is the underlined letter on a menu or control that corresponds to a key on the native keyboard layout for a particular language. &lt;/P&gt;
&lt;H2&gt;&lt;STRONG&gt;Missing &amp;amp; duplicate access key mnemonics&lt;/STRONG&gt; &lt;/H2&gt;
&lt;P&gt;Interestingly enough, most localization tools have built in tools to test for duplicate key mnemonics; however, missing or duplicate access key mnemonics is another significant issue in localization testing, and also affects the English language version as well. Duplicate or missing key mnemonics can adversely affect the usability of software because it impacts the ability of the user to easily access or invoke commonly repeated functions using the keyboard. Duplicate or missing duplicate key mnemonics can also negatively impact the software’s ability to meet certain accessibility requirements. &lt;/P&gt;
&lt;P&gt;Although missing or duplicate access key mnemonics are sometimes caused by poorly designed dialogs with an overabundance of controls, there are other factors that can cause duplicate key mnemonics. For example, some controls may dynamically appear in some dialogs in specific machine states. These dynamically generated controls may also come from a file that is different than the file which generated the dialog. Another reason for duplicate key mnemonics could also be dynamically generated key mnemonic assignments, which are especially problematic in situations where a dialog contains a mixture of statically assigned key mnemonics and dynamically generated key mnemonics.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/dup%20keys_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/dup%20keys_2.jpg"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 313px; DISPLAY: inline; HEIGHT: 369px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="dup keys" border=0 alt="dup keys" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/dup%20keys_thumb.jpg" width=480 height=502 mce_src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/dup%20keys_thumb.jpg"&gt;&lt;/A&gt; &lt;A href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/missing_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/missing_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; MARGIN: 5px; WIDTH: 237px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 366px; BORDER-LEFT-WIDTH: 0px" title="Missing access key mnemonics" border=0 alt="Missing access key mnemonics" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/missing_thumb.jpg" width=495 height=496 mce_src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/missing_thumb.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Manual testing for missing or duplicate key mnemonics is especially labor intensive, and finding ways to automate this testing will save countless hours of time sitting in front of a computer checking menus and dialogs. There is also a large probability of missing duplicate key mnemonic assignment problems using manual testing methods because eyes get tired, people get bored, and some keys are grayed out (as in the illustration below) or may not be present in certain machine states. Fortunately, there are several automation tools that detect duplicate key mnemonic problems and automated detection is more effective than manual test approaches. For example, &lt;A href="http://msdn.microsoft.com/en-us/library/system.windows.automation.automationelement.accesskeyproperty.aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/system.windows.automation.automationelement.accesskeyproperty.aspx"&gt;Automation.Element.AccessKeyProperty&lt;/A&gt; in the UIAutomation class library in C# is one approach to more efficiently test access key mnemonics.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;H2&gt;Access key mnemonic assignments&lt;/H2&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key1_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key1_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; MARGIN: 5px; WIDTH: 192px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 315px; BORDER-LEFT-WIDTH: 0px" title="Inappropriate key assignments" border=0 alt="Inappropriate key assignments" align=right src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key1_thumb.jpg" width=294 height=407 mce_src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key1_thumb.jpg"&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; MARGIN: 5px; WIDTH: 300px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 295px; BORDER-LEFT-WIDTH: 0px" title="Inappropriate key assignments" border=0 alt="Inappropriate key assignments" align=left src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key_thumb.jpg" width=461 height=400 mce_src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key_thumb.jpg"&gt;&lt;/A&gt; As a general rule of thumb (heuristic), key mnemonics should be assigned to characters mapped to the default state of the keyboard for each particular language. For the Latin 1 family of languages, access key mnemonics should generally not be assigned to non-ASCII characters; even if that particular character is accessible on the default state keyboard layout for a particular language. Certain, access key mnemonics should never be assigned to a character glyph that is formed through combining characters used in languages such as Thai and Arabic. Also, punctuation characters should never be assigned as access key mnemonics.&lt;/P&gt;
&lt;P&gt;Of course, the default keyboard layout for many non-Latin 1 languages only contain characters in the native script for that language, and assigning non-ASCII characters as access key mnemonics may be the only choice. However, &lt;/P&gt;
&lt;P&gt;Japanese hiragana and katakana glyphs, Korean Hangeul glyphs, and all East Asian ideographic glyphs are invalid character assignments for access key mnemonics. The default keyboard layout for most East Asian languages (Japanese, Korean, Simplified Chinese, and Traditional Chinese) is the standard keyboard layout similar to the US English keyboard. In the above example, their is no way for a Japanese user to access the ‘My Computer’ (マイ コンピユータ）menu item because it is using a katakana character as an access key mnemonic (which violates several guidelines for access key mnemonic assignment). Also, the standard key mnemonic guidelines described below should be used for all East Asian language versions for consistency and backwards compatibility. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key%202_6.jpg" mce_href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key%202_6.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; MARGIN: 5px; WIDTH: 287px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 362px; BORDER-LEFT-WIDTH: 0px" title="Inappropriate key assignments" border=0 alt="Inappropriate key assignments" align=left src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key%202_thumb_2.jpg" width=459 height=431 mce_src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/key%202_thumb_2.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/keys_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/keys_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; MARGIN: 5px; WIDTH: 444px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 378px; BORDER-LEFT-WIDTH: 0px" title="Inappropriate key assignments in East Asian languages" border=0 alt="Inappropriate key assignments in East Asian languages" align=right src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/keys_thumb.jpg" width=595 height=460 mce_src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartIII_6ACD/keys_thumb.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Another general guideline to follow for access key mnemonic assignments is to avoid the lower case Latin letters ‘g’ ‘y’ ‘p’ ‘q’ and ‘j’ because there is a high probability of confusion especially with high display resolutions especially with the letters i and l, and q and g. These letters could also be hard to discern on high resolution desktop settings as well. If the number of controls on a single dialog or in a menu list require usage of inappropriate key mnemonics, then perhaps the problem is the design of the dialog.&lt;/P&gt;
&lt;P mce_keep="true"&gt;East Asian language versions should use the identical key mnemonics as the English language version. The characters assigned as key mnemonics in the East Asian language are capitalized, enclosed within parenthesis, and positioned at the end of the translated string. Even when a key mnemonic appears within words or acronyms which are not translated or transliterated into the target the key mnemonic should be relocated to the end of the string and enclosed within parenthesis for consistency.&lt;/P&gt;
&lt;P&gt;The character assigned as the key mnemonic should be capitalized because many East Asian computer users use an English key keyboard, and for users whose native language does not frequently employ Latin characters it is much easier for those users to visually identify key mnemonics which are capitalized with keys on the keyboard which are also capital case characters.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;STRONG&gt;Accelerator&amp;nbsp;Keys&lt;/STRONG&gt;&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;Accelerator keys are commonly refered to as shortcut keys.&amp;nbsp; Accelerator&amp;nbsp;&lt;SPAN style="FONT-FAMILY: Tahoma; COLOR: black; FONT-SIZE: 10pt; language: en-US; mso-ascii-font-family: Tahoma; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt"&gt;keys are keys (such as F1 - F12 and Esc) or key combinations (Ctrl + Shift + B, or Ctrl C)&amp;nbsp;that allow users to evoke certain functions without navigating the software menus via access keys or using the mouse to click button controls on a toolbar.&amp;nbsp;&lt;A href="http://www.roboxpress.com/technology/tips-and-tricks/windows-7-keyboard-shortcuts-accelerator-keys-hotkeys/" mce_href="http://www.roboxpress.com/technology/tips-and-tricks/windows-7-keyboard-shortcuts-accelerator-keys-hotkeys/"&gt;Here&lt;/A&gt; is&amp;nbsp;good source for common Windows accelerator keys, and &lt;A href="https://blogs.msdn.com/jensenh/archive/2006/02/14/531801.aspx" mce_href="https://blogs.msdn.com/jensenh/archive/2006/02/14/531801.aspx"&gt;here&lt;/A&gt; is one for common accelerator keys for Office products.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Tahoma; COLOR: black; FONT-SIZE: 10pt; language: en-US; mso-ascii-font-family: Tahoma; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt"&gt;Shortcut key combinations are common throughout all language versions. Contrary to the Wikipedia entry on the subject&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: Tahoma; COLOR: black; FONT-SIZE: 10pt; language: en-US; mso-ascii-font-family: Tahoma; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt"&gt;some language versions localize the&amp;nbsp;letter key (not a mnemonic...it is not underlined). For example,&amp;nbsp; in German the Ctrl key is localized as "Strg" and, dispite it is generally frowned upon to change the&amp;nbsp;ASCII upper case letter assigned to an accelerator key combination&amp;nbsp;the Spanish versions of Office use Ctrl+G (&lt;EM&gt;Guardar&lt;/EM&gt;) for Save instead of Ctrl+S, and Ctrl+N (&lt;EM&gt;Negrita&lt;/EM&gt;) for Bold instead of Ctrl+B. Also,&amp;nbsp;letter keys&amp;nbsp;used as&amp;nbsp;part&amp;nbsp;of&amp;nbsp;an accelerator key&amp;nbsp;combination are capitalized. East Asian language versions use Ctrl to designate the Control key. Also, accelerator key combinations do&amp;nbsp;include an elipsis after the letter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Tahoma; COLOR: black; FONT-SIZE: 10pt; language: en-US; mso-ascii-font-family: Tahoma; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt"&gt;&lt;IMG style="WIDTH: 244px; HEIGHT: 186px" src="http://blogs.msdn.com/photos/imtesty/images/9917775/secondarythumb.aspx" width=106 height=140 mce_src="http://blogs.msdn.com/photos/imtesty/images/9917775/secondarythumb.aspx"&gt;&amp;nbsp; &lt;IMG style="WIDTH: 284px; HEIGHT: 181px" src="http://blogs.msdn.com/photos/imtesty/images/9917774/500x282.aspx" width=284 height=181 mce_src="http://blogs.msdn.com/photos/imtesty/images/9917774/500x282.aspx"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In Part IV I will discuss common layout issues such as clipping and truncation.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9916926" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/imtesty/archive/tags/The+Professional+Tester/default.aspx">The Professional Tester</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/Testing/default.aspx">Testing</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/Localization+Testing/default.aspx">Localization Testing</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/Internationalization+Testing/default.aspx">Internationalization Testing</category></item><item><title>Localization Testing – Part II</title><link>http://blogs.msdn.com/imtesty/archive/2009/10/30/localization-testing-part-ii.aspx</link><pubDate>Fri, 30 Oct 2009 19:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9915422</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9915422.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9915422</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9915422</wfw:comment><description>&lt;P&gt;I should be of no surprise to anyone that localization testing generally focuses on changes in the user interface, although as mentioned in the &lt;A href="http://blogs.msdn.com/imtesty/archive/2009/10/27/localization-testing-part-1.aspx" target=_blank mce_href="http://blogs.msdn.com/imtesty/archive/2009/10/27/localization-testing-part-1.aspx"&gt;previous post&lt;/A&gt; these are not the only changes necessary to adapt a product to a specific target market. But, the most common category of localization class bug are usability or behavioral type issues that do involve the user interface. Bugs in this category generally include un-localized or un-translated text, key mnemonics, clipped or truncated text labels and other user interface controls, incorrect tab order, and layout issues. Fortunately, the majority of problems in this category do not require a fix in the software’s functional or business layer. Also, the majority of problems in this category do not require any special linguistic skills in order to identify, and in some cases, an automated approach can be even more effective than the human eye (more on that later).&lt;/P&gt;
&lt;P&gt;Perhaps the most commonly reported issue in this category is “un-localized” or un-translated textual string. Unfortunately, in many cases un-translated strings is also an over-reported problem that only serves to flood the the defect tracking database with unnecessary bugs. Translating textual strings is a demanding task, and made even more difficult when there are constant changes in the user interface or contextual meaning of messages early in the product life cycle. Over-reporting of un-translated text too early in the product cycle only serves to artificially inflate the bug count, and causes undue pressure and creates extra work for the localization team.&lt;/P&gt;
&lt;P&gt;Identifying this type of bugs is actually pretty easy. Here’s a simple heuristic; if you are testing a non-English language version in a language you are not familiar with and you can clearly read the textual string in English it is probably not localized or translated into the target language. The illustration below provides a pretty good example of this general rule of thumb. A tester doesn’t have to read German to realize that the text in the label control under the first radio button is not German.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartII_7C2D/1_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartII_7C2D/1_2.jpg"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 612px; DISPLAY: inline; HEIGHT: 392px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=1 border=0 alt=1 src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartII_7C2D/1_thumb.jpg" width=790 height=479 mce_src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/LocalizationTestingPartII_7C2D/1_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;There are several causes of un-localized text strings to appear in dialogs and other areas of the user interface. For example:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Worse case scenario is that the string is hard-coded into the source files&lt;/LI&gt;
&lt;LI&gt;Perhaps localizers did not have enough time to completely process all strings in a particular file&lt;/LI&gt;
&lt;LI&gt;Perhaps this is a new string in a file localizers thought was 100% localized&lt;/LI&gt;
&lt;LI&gt;Strings displayed in some dialogs come from files other than the file that generates the dialog, and the localization team has not process that file&lt;/LI&gt;
&lt;LI&gt;And, sometimes (usually not often), a string may simply be overlooked during the localization process&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Testing for un-localized text is often a manually intensive process of enumerating menus, dialogs, and other user interface dialogs, message boxes and form, and form elements.&amp;nbsp; But, if the textual strings are located in a separate resource file (as they should be), a quick scan of resource files might more quickly reveal un-translated textual strings. Of course, there is little context in the resource file, and I also hope the localization team is reviewing their own work as well prior to handing it over to test.&lt;/P&gt;
&lt;P&gt;Also, here are a few suggestions that might help focus localization testing efforts early in the project milestone and reduce the number of ‘known’ or false-positive un-translated text bugs being reported:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Ask the localization team to report the percentage of translation completion by file or module for each test build. Early in the development lifecycle only modules that are reported to be 100% complete which appear to have un-translated text should be reported as valid bugs. Of course, sometimes some strings are used in multiple modules, or may be coming from external resources. But, especially early in the development lifecycle reporting a gaggle of un-translated text bugs is simply “make work.” As the life cycle starts winding down…all strings are fair game for bug hunters!&lt;/LI&gt;
&lt;LI&gt;Testers should use tools such a Spy++ or Reflector to help identify the module or other resources, and the unique resource ID for the problematic string or resource. This is much better then than simply attaching an image of the offending dialog to a defect report. Identifying the module and the specific resource ID number allows the localization team to affect a quick fix instead of having to search for the dialog through repro steps and track down the problem.&lt;/LI&gt;
&lt;LI&gt;Also remember that not all textual strings are translated into a specific target language. Registered or trademarked product names are often not translated into different languages. In case of doubt, ask the localization team if a string that appears un-localized is a ‘true’ problem or not.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Unlocalized strings&amp;nbsp;usually due to hard coded strings also&amp;nbsp;tend to&amp;nbsp;occur in&amp;nbsp;menu items. This is especially true in the Windows Start menu or sub-menu items&amp;nbsp;hard-coded&amp;nbsp;in the&amp;nbsp;INF or&amp;nbsp;other installation/setup files. For example,&amp;nbsp;the image on the right&amp;nbsp;shows a common problem on European versions of Windows.&amp;nbsp;Many European language versions &amp;nbsp;localize the name of the Program Files folder, and&amp;nbsp;the menu item in the start menu. But, often times when we install an English language version of software to Windows it creates a new "Programs" menu item (and even a new Program Files directory, rather than detecting the default folder to install to.&amp;nbsp;In the&amp;nbsp;example on the left, the string Accessories is a hard-coded folder name. But, there is another issue as well. This illustrates not only a problem with&amp;nbsp;the non-translated string "Accesssories," but also shows one full-width Katakana string for 'Accessories' and another half-width string. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;IMG src="http://blogs.msdn.com/photos/imtesty/images/9919409/500x282.aspx" mce_src="http://blogs.msdn.com/photos/imtesty/images/9919409/500x282.aspx"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG src="http://blogs.msdn.com/photos/imtesty/images/9919410/500x282.aspx" mce_src="http://blogs.msdn.com/photos/imtesty/images/9919410/500x282.aspx"&gt;&lt;/P&gt;
&lt;P&gt;In part 3 I will discuss another often problematic area in localization….key mnemonics.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9915422" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/imtesty/archive/tags/The+Professional+Tester/default.aspx">The Professional Tester</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/Testing/default.aspx">Testing</category></item><item><title>Localization Testing: Part 1</title><link>http://blogs.msdn.com/imtesty/archive/2009/10/27/localization-testing-part-1.aspx</link><pubDate>Tue, 27 Oct 2009 06:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9913347</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9913347.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9913347</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9913347</wfw:comment><description>&lt;P&gt;When I first joined Microsoft 15 years ago I was on the Windows 95 International team. Our team was responsible for reducing the delta between the release of the English version and the Japanese version to 90 days, and I am very proud to say that we achieved that goal and Windows 95 took Japan by storm. It was so amazing that even people without computers were lined up outside of sales outlets waiting to purchase a copy of Windows 95. The growth of personal computers in Japan shot through the roof over the next few years. Today the Chinese market is exploding, and eastern European nations are experiencing unprecedented growth as well.&amp;nbsp; While the demand for the English language versions of our software still remains high, many of our customers are demanding software that is ‘localized’ to accommodate the customers national conventions, language, and even locally available hardware. Although much of the Internets content is in English, non-English sites on the web are growing, and even &lt;A href="http://icann.org/en/announcements/announcement-2-30sep09-en.htm" target=_blank mce_href="http://icann.org/en/announcements/announcement-2-30sep09-en.htm"&gt;ICANN is considering allowing international domain names&lt;/A&gt; that contain non-ASCII characters this week in Seoul, Korea.&lt;/P&gt;
&lt;P&gt;But, a lot has changed in how we develop software to support international markets. International versions of Windows 95 were developed on a forked code base. Basically, this means the source code contained #ifdefs to instruct the compiler to compile different parts of the source code depending on the language family. From a testing perspective this is a nightmare, because if the underlying code base of a localized version is fundamentally different than the base (US English) version then the testing problem is magnified because there is a lot of functionality that must be retested. Fortunately today, much software being produced is based on a single-worldwide binary model. (I briefly explained the single world wide binary concept at a &lt;A href="http://www.sasqag.org/pastmeetings/LocalizabilityTesting.ppt" target=_blank&gt;talk&lt;/A&gt; in 1991, and Michael Kaplan talks about the advantages &lt;A href="http://blogs.msdn.com/michkap/archive/2006/05/01/587340.aspx" target=_blank mce_href="http://blogs.msdn.com/michkap/archive/2006/05/01/587340.aspx"&gt;here&lt;/A&gt;.) In a nutshell, a single worldwide binary model is a development approach in which any functionality any user anywhere in the world might need is codified in the core source code so we don’t need to modify the core code once it is compiled to include some language/locale specific functionality.&amp;nbsp; For example, it was impossible to input Japanese text into Notepad on an English version of Windows 95 using an Input Method Editor (IME); I needed the localized Japanese version. But, on the English version of Windows Xp, Vista, or Windows 7 all I have to do is install the appropriate keyboard drivers and font files and expose the IME functionality. In fact, these days I can map my keyboard to over 150 different layouts and install fonts for all defined Unicode characters on any language version of the Windows operating system. &lt;/P&gt;
&lt;P&gt;The big advantage of the single worldwide binary development model is that it allows us to differentiate between globalization testing and localization testing.&amp;nbsp; At Microsoft we define globalization as “&lt;EM&gt;the process of designing and implementing a product and/or content (including text and non-text elements) so that it can accommodate any locale market (locale).&lt;/EM&gt;” And, we define localization as “&lt;EM&gt;the process of adapting a product and/or content to meet the language, cultural and political expectations and/or requirements of a specific target market&lt;/EM&gt;.” This means we can better focus on the specific types of issues that each testing approach is most effective at identifying. For localization testing, this means we can focus on the specific things that change in the software during the “adaptation processes” to localize a product for each specific target market. &lt;/P&gt;
&lt;P&gt;The most obvious adaptation process is the ‘localization’ or actually the translation of the user interface textual elements such as menu labels, text in label controls, and other string resources that are commonly exposed to the end user. However, the translation of string resources is not the only thing that occurs during the localization process. The localization processes that are required to adapt a software product to a specific local may also include other changes such as font files and drivers installed by default, registry keys set differently, drivers to support locale specific hardware devices, etc. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3 Categories of Localization Class Bugs&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I am a big fan of developing a bug taxonomic hierarchy as part of my defect tracking database as a best practice because it better enables me to analyze bug data more efficiently. If I see a particular category of bug or a type of bug in a category that is being reported a lot, then perhaps we should find ways to prevent or at least minimize the problem from occurring later in the development lifecycle. After years of analyzing different bugs, I classified all localization class bugs into 3 categories; functionality, behavioral/usability, and linguistic quality. &lt;/P&gt;
&lt;P&gt;Functionality type bugs exposed in localized software affect the functionality of the software and require a fix in the core source code. Fortunately, with a single worldwide binary development model where the core functionality is separated from the user interface the number of bugs in this category of localization class bugs is relatively small.&amp;nbsp; Checking the appropriate registry keys are set and files are installed in a new build is reasonably straight forward and should be built into the build verification test (BVT) suite. Other types of things that should be checked include application and hardware compatibility. It is important to identify these types of problems early because they are quite costly to correct, and can have a pretty large ripple effect on the testing effort.&lt;/P&gt;
&lt;P&gt;Behavioral and usability issues primarily impact the usefulness or aesthetic quality of the user interface elements. Many of the problems in this category do not require a fix in the core functional layer of the source code. The types of bugs in this category include layout issues, un-translated text,&amp;nbsp; key mnemonic issues, and other problems that are often fixed in the user interface form design, form class, or form element properties. This category of problems often accounts for more than 90% of all localization class bugs. Fortunately, the majority of problems in this category do not require any special linguistic skills; a careful eye for detail is all that is required to expose even the most discrete bugs in this category.&lt;/P&gt;
&lt;P&gt;The final category of localization class bug is linguistic quality. This category of bugs are primarily mis-translations. Obviously, the ability to read the language being tested is required to identify most problems in this category of errors. We found testers spent a lot of time looking for this type of bug, but later found the majority of linguistic quality type issues reported were resolved as won’t fix. There are many reasons for this, but here is my position on this type of testing….Stop wasting the time of your test team to validate the linguistic quality of the product. If this is a problem then hire a new localizer, hire a team of ‘editors’ to review the work of the localizer, or hire a professional linguistic specialist from the target locale as an auditor. Certainly, if testers see an obvious gaff in a translation then we must report it; however, testers are generally not linguistic experts (even in their native tongue), and I would never advocate hiring testers simply based on linguistic skills nor as a manager would I want to dedicate my valuable testing resources on validating linguistic quality…that’s usually not where their expertise lies, and it probably shouldn’t be.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What’s Next&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Since behavioral /usability category issues are the most prevalent type of localization class bug this series of posts will focus on localization testing designed to evaluate user interface elements and resources. The next post will expose the often single most reported bug in this category.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9913347" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/imtesty/archive/tags/The+Professional+Tester/default.aspx">The Professional Tester</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/Testing/default.aspx">Testing</category></item><item><title>Adding Variability in Test Case Design</title><link>http://blogs.msdn.com/imtesty/archive/2009/10/20/adding-variability-in-test-case-design.aspx</link><pubDate>Tue, 20 Oct 2009 02:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9909603</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9909603.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9909603</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9909603</wfw:comment><description>&lt;P&gt;I love autumn! Yes, I am definitely a boy of summer and very much prefer warmer weather; however, there is something special about autumn. This past weekend my daughter, and my 2 friends Dongyi and her husband Yuning and I participated in the &lt;A href="http://www.duckdodge.org/index.php" target=_blank mce_href="http://www.duckdodge.org/index.php"&gt;Rum Run&lt;/A&gt; sailboat fun race with an overnight raft up at Bainbridge Island’s Port Madison. Saturday morning was quite rainy, but the wind was blowing 15 knots with gusts to 25 knots and NOAA weather radio announcing gale force warnings in Puget Sound. Wow…what a ride! But, it was actually the rather relaxing sail back to my marina on Sunday morning that rekindled the beauty of autumn in my mind. The bright reds, golden yellows, and pastel browns of the foliage seemed to blend into a collage framed by the darkness of the waters of Puget Sound and the snow covered peaks of the Olympic mountains. The beauty of autumn reminds me about change. A sloughing of the old, the cleansing brought about by the pure white snows, eventually followed by the new and fresh growth that blossoms in spring.&lt;/P&gt;
&lt;P&gt;Just as the earth goes through variable cycles of rejuvenation, we must also continually update our tests, and (more importantly) the test data we use in our test cases to prevent them from becoming stale. Trees shed their leaves in the autumn and new leaves emerge in the spring, but the tree is fundamentally still the same tree. Similarly, a well-designed test case has a unique fundamental purpose and by changing the variables we can grow the value of that test case. Of course, the cycle of change in test data should be dramatically shorter in duration as compared to the seasonal changes of mother earth.&lt;/P&gt;
&lt;P&gt;Here is a simple example of how a well-designed test case using variable test data can increase the value of the information each&amp;nbsp; test iteration provides through increased confidence and also potentially reduce overall risk. In my role at Microsoft I am in a unique position to not only conduct controlled studies, but I can also implement ideas into practice on enterprise level software projects. One experiment I started about 2 years ago involved multiple groups of testers (sessions) located around the world divided into 3 separate control groups. Each control group tested the identical web page that would display the stock price if the user input a valid stock ticker symbol into a single textbox on the page and pressed the OK button. The only difference in the control groups was the instructions to perform single positive test case with the specific purpose of “ensure any valid stock ticker symbol displays the current stock price for the publicly traded stock specified by its symbol.” The purpose of the study was to determine if different cultural and experiential backgrounds impacted the test data used in a test based on the instructions for a test case. The study collected demographic information on the participants as well as specific inputs applied to the web page. Information on the oracle used by the students was collected anecdotally. Step one in each test was identical because we were not interested in how the tester launched the browser. (Of course this assumes there are other tests that test the multitude of ways to launch a browser and navigate to a URL. Also, if the browser failed to launch the test case is blocked.)&lt;/P&gt;
&lt;P&gt;Group 1 was given the most vague instructions for the test case. The instruction was simply:&lt;/P&gt;
&lt;OL&gt;
&lt;OL&gt;
&lt;LI&gt;Launch browser and navigate to [url address]&lt;/LI&gt;
&lt;LI&gt;Enter a valid stock ticker symbol and press the OK button and verify the accuracy of the returned stock price. &lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;
&lt;P&gt;The instructions in the test case given to Group 2 were also somewhat vague, but provided a little guidance both on input and oracle.&lt;/P&gt;
&lt;OL&gt;
&lt;OL&gt;
&lt;LI&gt;Launch browser and navigate to [url address]&lt;/LI&gt;
&lt;LI&gt;Enter a valid stock ticker symbol (e.g. “MSFT”) &lt;/LI&gt;
&lt;LI&gt;Press the OK button &lt;/LI&gt;
&lt;LI&gt;Verify the returned stock price is identical to the current stock price listed on the appropriate exchange &lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;
&lt;P&gt;Group 3 had similar instructions to Group 2, but the group was given additional guidance as indicated below.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;OL&gt;
&lt;LI&gt;Launch browser and navigate to [url address]&lt;/LI&gt;
&lt;LI&gt;Enter a valid stock ticker symbol from a publicly traded stock listed on any public stock exchange &lt;BR&gt;&lt;BR&gt;Listings of valid stock ticker symbols are on stock exchange web sites such as: &lt;BR&gt;&lt;A href="http://www.nyse.com/" mce_href="http://www.nyse.com"&gt;http://www.nyse.com&lt;/A&gt; &lt;BR&gt;&lt;A title=http://www.eoddata.com/Symbols.aspx href="http://www.eoddata.com/Symbols.aspx" mce_href="http://www.eoddata.com/Symbols.aspx"&gt;http://www.eoddata.com/Symbols.aspx&lt;/A&gt; &lt;BR&gt;&lt;A href="http://www.nasdaq.com/" mce_href="http://www.nasdaq.com"&gt;http://www.nasdaq.com&lt;/A&gt; &lt;BR&gt;&lt;A href="http://www.londonstockexchange.com/" mce_href="http://www.londonstockexchange.com"&gt;http://www.londonstockexchange.com&lt;/A&gt; &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Press the OK Button &lt;/LI&gt;
&lt;LI&gt;Verify the returned stock price is identical to the current stock price listed on the appropriate exchange &lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Results&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The results were mostly not surprising, but rather reinforcing. For example, we expected Group 1 to be rather random, but mostly aligned with ticker symbols they were familiar with. Of course, the majority (90%) of stock ticker symbols entered was MSFT and there was no significant difference in cultural background, locale, experience or educational background. (As this study was conducted at Microsoft I am sure there was some bias as to the symbol entered.) What was most interesting was that testers with no formal training (no previous courses in testing, no CS degree, and read less than one discipline specific book) and with more than 2 years of test&amp;nbsp;experience were approximately&amp;nbsp;more likely (25%) to violate the purpose of the test and enter random or completely invalid data as their first action. In other words, instead of executing the required test their initial reaction was to immediately go on a bug hunt. &lt;/P&gt;
&lt;P&gt;In group 2 99% of the participants simply entered the stock ticker symbol “MSFT.” But, what was even more surprising was the fact that one the next day, the same people in that group were given the same exact test, and 95% of them simply reentered MSFT. Perhaps this is laziness, perhaps this is related to the superficial nature of the study, or perhaps this is due to individuals taking the path of least resistance. The percentage of people who entered identical stock ticker symbols on consecutive days was not significantly different between group 1 and group 2.&lt;/P&gt;
&lt;P&gt;It should be no surprise that group 3 had the greatest distribution of variable test data applied to the web page. Demographics had no impact on any of the people who were in group 3. The majority of people in group 3 (78%) would select the first stock exchange listed (regardless of what link it was) but there was no significant overlap in the selected stock ticker symbols. When asked to repeat the test on the next day 83% of the participants selected a different link and and a different symbol. Of those who selected the same link 97% selected a different stock ticker symbol. On the down side, approximately 4% of the people simply took the path of least resistance and input MSFT as the test data on both days of the experiment. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Conclusion&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;One of the most common problems I hear about ‘scripted,’ or pre-defined test cases is that they are too prescriptive and not flexible enough to allow the tester to try things. Of course, a well-designed test case is not simply a prescriptive set of steps inputting the same hard coded test data they run over and over. So, in this study we made the assumption that a scripted test case that specified “Enter MSFT in the textbox” would simply result in the tester entering “MSFT” without any thinking on the part of the tester. Hard-coding variable test data is often times the worse possible way to design a test case. &lt;/P&gt;
&lt;P&gt;Vaguely written test cases added some level of variability, but also seemed to increase the probability of the tester executing context free tests outside the scope of the purpose of the test. In fact, what we found was some testers (approx 2%) simply went on a bug hunt and never actually input a valid stock ticker symbol at all during the session.&lt;/P&gt;
&lt;P&gt;A test case that provided only one example that is representative of the type of test data required for the test case produced the least desirable results in this study. I am not sure this would be the case in practice. However, based on this study if I were to outsource execution of a test case similar to that used by group 2 the only thing I could guarantee is that MSFT would definitely be tested numerous times, and the variability of other test data would be extremely limited regardless of the number of testers executing that test or the number of iterations.&lt;/P&gt;
&lt;P&gt;When faced with a virtually infinite number of possibilities for input variables as test data used in either positive or negative tests we need to test as many possibilities as possible given the available resources in order to increase test coverage and reduce overall risk. So, one way increase the coverage of test data while still achieving the specific purpose of the test case is to provide useful resources that help guide the tester while relying on the tester’s creative thinking skills and curiosity to expand the test coverage. &lt;/P&gt;
&lt;P&gt;Of course, we can also increase variability of test data and capture the essence of the tester’s creativity using a similar approach in a well-designed automated test case as well. In fact, a similarly designed automated test case enables us to significantly increase the amount of variable test data that is exercised in order to expand test coverage and increase overall confidence.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9909603" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/imtesty/archive/tags/The+Professional+Tester/default.aspx">The Professional Tester</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/Testing/default.aspx">Testing</category></item><item><title>Randomizing static test data in automated tests</title><link>http://blogs.msdn.com/imtesty/archive/2009/10/11/randomizing-static-test-data-in-automated-tests.aspx</link><pubDate>Sun, 11 Oct 2009 06:19:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9905827</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9905827.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9905827</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9905827</wfw:comment><description>&lt;p&gt;A significant percentage of static test data is stored in tabular comma delimited or tab-delimited formats and saved in Excel spreadsheets. Reading in comma or tab-delimited static test data into an automated test is pretty straight forward and there are numerous examples in many programming languages illustrating how to read in these types of test data repositories. Reading in rows of data is the foundation of data-driven automation and definitely has its place in any automation project. &lt;/p&gt;  &lt;p&gt;I am a big proponent of stochastic (random) test data generation that is customized to the context, but I also know that sometimes static test data is useful for establishing baselines and more exact emulation of ‘real-world’ customer-like inputs. But, if the automated test is simply passing the same variable arguments to the same input parameters in the same order over and over again the value of subsequent iterations of that automated test using that static data set diminishes rather quickly. So how can we more effectively utilize static test data in our automated tests?&lt;/p&gt;  &lt;p&gt;One possible solution is to randomly select an argument from a collection of static variables that is passed to the specific input parameter. The advantage of this approach is that it effectively increases the test data permutations in each iteration of the test case. For example, let’s consider 2 input parameters; one for a given name and one for a surname. In a traditional data-driven approach in which the static test data is read in by rows our test data file might be similar to:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Bob,Smith      &lt;br /&gt;John,Johnson       &lt;br /&gt;Roger,Williams       &lt;br /&gt;Steve,Abbot&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This static data file would give us 4 sets of test data, but each time the test data is read into the test case the given and surnames are always the same. &lt;/p&gt;  &lt;p&gt;However, if we read in the given names and surnames into 2 collections, and then randomly select a given name and surname from the appropriate collection to pass to the respective parameter we effectively have 16 possible combinations of static test data to work with. An advantage of this approach is that our ‘collections’ of given names and surnames can contain differing numbers of elements (in which case the number of possible combinations of test data is the Cartesian product of the number of elements in each collection).&lt;/p&gt;  &lt;p&gt;Of course there are many ways to accomplish this. For example, one approach is to continue to use a comma or tab-delimited file format and list given names in one row and surnames in a second row. Another approach is to list the given names and surnames in columns in a spreadsheet and read in each column into a collection of some sort. The latter is the approach I used in developing my &lt;a href="http://www.testingmentor.com/tools/tool_pages/pseudoname.htm" target="_blank"&gt;PseudoName&lt;/a&gt; test data generator tool. I chose this approach for 2 reasons; first an Excel spreadsheet is a simple yet powerful file format for storing static test data, and secondly because lists of test data are sometimes better represented in columns rather than rows. &lt;/p&gt;  &lt;p&gt;The following code shows one way to read in test data by columns from an Excel spreadsheet. &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:28b84334-edb0-4964-8bb7-ec5dc6c50df7" class="wlWriterEditableSmartContent"&gt; &lt;div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"&gt; &lt;div style="background: #000080; color: #fff; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px"&gt;Code Snippet&lt;/div&gt; &lt;div style="background: #ddd; max-height: 300px; overflow: auto"&gt; &lt;ol style="background: #ffffff; margin: 0 0 0 2.5em; padding: 0 0 0 5px; white-space: nowrap"&gt; &lt;li&gt; &lt;span style="color:#008000"&gt;// &amp;lt;copyright file="datareader.cs" company="TestingMentor"&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&lt;span style="color:#008000"&gt;// Copyright &amp;#169; 2009 by Bj Rollison. All rights reserved.&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span style="color:#008000"&gt;// &amp;lt;/copyright&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;span style="color:#0000ff"&gt;namespace&lt;/span&gt; TestingMentor.TestTool&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;{&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;using&lt;/span&gt; System;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;using&lt;/span&gt; System.Collections;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;using&lt;/span&gt; System.Globalization;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;using&lt;/span&gt; System.Runtime.InteropServices;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;using&lt;/span&gt; System.Threading;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;using&lt;/span&gt; Excel = Microsoft.Office.Interop.Excel;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; This class contains methods for reading test data from Excel spreadsheets&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;class&lt;/span&gt; &lt;span style="color:#2b91af"&gt;TestDataReader&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;{&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; This method reads all the data elements in the specified number of&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; columns in the specified Excel spreadsheet containing the test data&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; and copies the data into a multi-dimensional array&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;param name="dataFileName"&amp;gt;&lt;/span&gt;&lt;span style="color:#008000"&gt;The filename containing the test data&lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;param name="columnCount"&amp;gt;&lt;/span&gt;&lt;span style="color:#008000"&gt;The number of columns in the Excel&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; spreadsheet to read&lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;returns&amp;gt;&lt;/span&gt;&lt;span style="color:#008000"&gt;A multi-dimensional array containing the data eleements for&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; each column &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;/returns&amp;gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;static&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt;[][] ExcelColumnReader(&lt;span style="color:#0000ff"&gt;string&lt;/span&gt; dataFileName, &lt;span style="color:#0000ff"&gt;uint&lt;/span&gt; columnCount)&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;CultureInfo&lt;/span&gt; originalCulture = &lt;span style="color:#0000ff"&gt;null&lt;/span&gt;;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Excel.&lt;span style="color:#2b91af"&gt;Application&lt;/span&gt; excelApp = &lt;span style="color:#0000ff"&gt;null&lt;/span&gt;;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Excel.&lt;span style="color:#2b91af"&gt;Workbook&lt;/span&gt; excelWorkbook = &lt;span style="color:#0000ff"&gt;null&lt;/span&gt;;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Excel.&lt;span style="color:#2b91af"&gt;Worksheet&lt;/span&gt; excelActiveWorksheet = &lt;span style="color:#0000ff"&gt;null&lt;/span&gt;;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;string&lt;/span&gt;[][] testData = &lt;span style="color:#0000ff"&gt;new&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt;[columnCount][];&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;originalCulture = &lt;span style="color:#2b91af"&gt;Thread&lt;/span&gt;.CurrentThread.CurrentCulture;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;Thread&lt;/span&gt;.CurrentThread.CurrentCulture = &lt;span style="color:#0000ff"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af"&gt;CultureInfo&lt;/span&gt;(&lt;span style="color:#a31515"&gt;"en-US"&lt;/span&gt;);&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelApp = &lt;span style="color:#0000ff"&gt;new&lt;/span&gt; Excel.&lt;span style="color:#2b91af"&gt;Application&lt;/span&gt;();&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelWorkbook = excelApp.Workbooks.Open(&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dataFileName,&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0,&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;false&lt;/span&gt;,&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5,&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;String&lt;/span&gt;.Empty,&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;String&lt;/span&gt;.Empty,&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;false&lt;/span&gt;,&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;Type&lt;/span&gt;.Missing,&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;String&lt;/span&gt;.Empty,&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;true&lt;/span&gt;,&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;false&lt;/span&gt;,&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0,&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;true&lt;/span&gt;,&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;false&lt;/span&gt;,&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;false&lt;/span&gt;);&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelActiveWorksheet = (Excel.&lt;span style="color:#2b91af"&gt;Worksheet&lt;/span&gt;)excelWorkbook.ActiveSheet;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;for&lt;/span&gt; (&lt;span style="color:#0000ff"&gt;int&lt;/span&gt; i = 0; i &amp;lt; columnCount; i++)&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#008000"&gt;// Start at column 1&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;object&lt;/span&gt; columnIndex = i + 1;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#008000"&gt;// Row 1 is the column title; test data starts on Row 2&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;object&lt;/span&gt; rowIndex = 2;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;ArrayList&lt;/span&gt; tempCollection = &lt;span style="color:#0000ff"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af"&gt;ArrayList&lt;/span&gt;();&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;while&lt;/span&gt; (&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;((Excel.&lt;span style="color:#2b91af"&gt;Range&lt;/span&gt;)&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelActiveWorksheet.Cells[rowIndex, columnIndex]).Value2 != &lt;span style="color:#0000ff"&gt;null&lt;/span&gt;)&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tempCollection.Add(&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;((Excel.&lt;span style="color:#2b91af"&gt;Range&lt;/span&gt;)&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelActiveWorksheet.Cells[rowIndex, columnIndex]).Value2);&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rowIndex = (&lt;span style="color:#0000ff"&gt;int&lt;/span&gt;)rowIndex + 1;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;testData[i] = &lt;span style="color:#0000ff"&gt;new&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt;[tempCollection.Count];&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;testData[i] = (&lt;span style="color:#0000ff"&gt;string&lt;/span&gt;[])tempCollection.ToArray(&lt;span style="color:#0000ff"&gt;typeof&lt;/span&gt;(&lt;span style="color:#0000ff"&gt;string&lt;/span&gt;));&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#008000"&gt;// Clean up &lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelWorkbook.Close(&lt;span style="color:#0000ff"&gt;false&lt;/span&gt;, &lt;span style="color:#2b91af"&gt;Type&lt;/span&gt;.Missing, &lt;span style="color:#2b91af"&gt;Type&lt;/span&gt;.Missing);&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelWorkbook = &lt;span style="color:#0000ff"&gt;null&lt;/span&gt;;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelApp.Quit();&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelApp = &lt;span style="color:#0000ff"&gt;null&lt;/span&gt;;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#008000"&gt;// Garbage collection is not pretty, but necessary to release Excel proc&lt;/span&gt;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.&lt;span style="color:#2b91af"&gt;GC&lt;/span&gt;.Collect();&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.&lt;span style="color:#2b91af"&gt;GC&lt;/span&gt;.WaitForPendingFinalizers();&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;if&lt;/span&gt; (originalCulture != &lt;span style="color:#0000ff"&gt;null&lt;/span&gt;)&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;Thread&lt;/span&gt;.CurrentThread.CurrentCulture = originalCulture;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt; &lt;li&gt;&amp;nbsp;&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#0000ff"&gt;return&lt;/span&gt; testData;&lt;/li&gt; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt; &lt;li style="background: #f3f3f3"&gt;&amp;nbsp;&amp;nbsp;}&lt;/li&gt; &lt;li&gt;}&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;  &lt;p&gt;I must tell you that performance can be an issue especially if the columns contain a lot of data. For example, to read in approximately 700 elements of test data in 3 separate columns took slightly less than 1 second, and reading in 1800 elements in 3 columns required just over 4 seconds. Unfortunately, I didn’t compare total byte counts, but it is pretty obvious the greater the number of test data elements being read the longer the read operation will take and you certainly will have to take the read time into consideration in your automated test case.&lt;/p&gt;  &lt;p&gt;Reading static test data line by line from a data file while looping through a data-driven automated test case is a useful test design approach in some situations, this is another useful approach that will allow the test designer to randomize the combinations of static test data values applied to multiple input parameters in multiple iterations of an automated test case.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9905827" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/imtesty/archive/tags/Test+Automation/default.aspx">Test Automation</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/The+Professional+Tester/default.aspx">The Professional Tester</category></item><item><title>The primary goal of a tester should be to work themselves out of a job!</title><link>http://blogs.msdn.com/imtesty/archive/2009/10/01/the-primary-goal-of-a-tester-should-be-to-work-themselves-out-of-a-job.aspx</link><pubDate>Thu, 01 Oct 2009 23:31:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9902026</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9902026.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9902026</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9902026</wfw:comment><description>&lt;p&gt;Software is knowledge. Software is the intangible product crafted by a team of people who have pooled their intellectual knowledge to help solve a complex problem and add value to those who use that software. So how does a tester contribute to the intellectual knowledge pool? &lt;/p&gt;  &lt;p&gt;I guess we could say that finding and reporting bugs during the software development lifecycle (SDLC) is important knowledge because it helps identify many anomalies prior to release. But, the mere act of finding and reporting bugs is transient knowledge. Reporting bugs in the system does not add any long term or persistent value to the intellectual knowledge pool of a software company. Perhaps even worse, finding the same type of issue repeatedly actually stagnates the intellectual knowledge pool because the team is focused on fixing the same problem over and over again. Of course, finding really interesting and important bugs requires a lot of knowledge and creativity. But, once the bug is fixed the value that bug may have provided in the intellectual knowledge pool evaporates; especially if there is no shared learning experience that occurs as a result of that fixed issue. &lt;/p&gt;  &lt;p&gt;One way software testers can significantly contribute to the intellectual knowledge pool is through defect prevention instead of defect detection. Simply put, if we expand our vision of the role of the tester to include problem solving instead of just problem finding we can open up new challenges, provide overall greater value to our business, and further advance the discipline of software testing. For example, if we were to identify a particular area or category of defects and identify the root causes for that type of problem then we can implement various strategies or best practices to prevent those types of issues from being injected into the product design from the onset, or at least develop testing patterns or tools to help the team identify many of that category of issues sooner in the SDLC. Understanding why certain categories of problems occur and providing best practice solutions within the appropriate context is intellectual knowledge that can be shared with existing and new team members, and can persist to help prevent certain types of problems from recurring in the future. This is intellectual capital in the knowledge pool. Testing tool and test patterns that can be shared and taught to others that help identify certain types of issues sooner can reduce testing costs. This is also intellectual capital in the knowledge pool.&lt;/p&gt;  &lt;p&gt;If I am constantly burdened with finding the same types of problems over and over again, then my contribution to the SDLC and the knowledge pool is essentially limited to the bugs I find, and the value of those bugs often depreciates rapidly. Basically, I am simply identifying problems; I am not contributing to solving the problems. &lt;/p&gt;  &lt;p&gt;Of course, I don’t think testers will ever work themselves out of a job and we will always be in the business of identify issues during the SDLC. But, if I solve one type of problem, then I can move on to face new and more difficult challenges. By solving one problem I get that job off my plate, and I can then move onto the next job. Organizational maturity and professional growth occurs through solving increasingly complex problems, not by continually dealing with the same problem.&lt;/p&gt;  &lt;p&gt;I think the role of a professional tester is growing beyond that of simple problem identification, and many of us are exploring the more challenging aspects of problem solving. Finding ways to prevent defects or identify issues earlier, and essentially drive quality upstream are exciting challenges that will advance the practice of software testing and increase the value of our contributions to the intellectual knowledge pool and advance the profession of software testing.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9902026" width="1" height="1"&gt;</description></item><item><title>Prevention is the best medicine</title><link>http://blogs.msdn.com/imtesty/archive/2009/09/24/prevention-is-the-best-medicine.aspx</link><pubDate>Thu, 24 Sep 2009 06:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9898775</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9898775.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9898775</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9898775</wfw:comment><description>&lt;p&gt;The past 2 weeks have been a bit rough. While in Israel I began to feel a bit congested. By the time I hit Nürmberg, Germany for &lt;a href="http://www.isqi.org/en/conferences/conquest/" target="_blank"&gt;12th International Conference on Quality Engineering in Software Technology&lt;/a&gt; I was injecting nose-juice (nasal decongestant) about every 2-3 hours and couldn’t sleep through the night. Fortunately I didn’t speak until Friday, so Monday morning I visited a local &lt;em&gt;Apotheke&lt;/em&gt; (Pharmacy), described the symptoms, and was presented with some medicinal remedies by the pharmacist. By Wednesday I was much worse, so again tried another pharmacy and was given a different batch of drugs. By Friday morning I was struggling, but managed to present my talk on probabilistic stochastic test data generation using parameterized equivalent partitions and genetic algorithms (which I will discuss in a future post). Unfortunately, I had to cancel another engagement and reschedule my flight home for Saturday. Once home I went to my doctor and was quickly diagnosed with a bacterial infection in my nasal cavities. &lt;/p&gt;  &lt;p&gt;Now, I am not telling you this story to seek your sympathy, but to illustrate a point. I had convinced myself that I simply had a slight cold that I could treat with over-the-counter remedies, and perhaps due to my own stubborn nature I refused advice from my friends in Germany to see a physician. In the end, I realized I was simply treating the symptoms and ignoring the root cause of the real problem. So, I sometimes wonder if we are too focused on treating the symptoms of buggy software by focusing our testing efforts on bug detection rather than addressing the real problem and thinking more about bug prevention.&lt;/p&gt;  &lt;p&gt;In my opinion, one of the most significant ways we can directly impact quality of the product and the effectiveness of our teams is not by trying to beat the bugs out of the product after the designers and developers have spent days/weeks injecting bugs into the product, but through partnering with the PMs and developers earlier in the lifecycle to prevent issues from ever getting into the product to begin with. If we continue to think of testing as an after-the-fact process than we might never advance our discipline, and perhaps even worse, we might relegate the role of testers to nothing more than bug-finders.&lt;/p&gt;  &lt;p&gt;Defect prevention doesn’t negate or eliminate the need for system level testing, but it could certainly change the role of testers throughout any product lifecycle. Rather than perpetuating an adversarial&amp;#160; “don’t trust the developer” attitude I envision testers and developers working in a more symbiotic relationship (Доверяй, но проверяй – Trust, but verify). For example, I think many readers would agree that developers are responsible for unit testing, but I wonder how many testers are proactively engaging their development partners and suggesting ways to improve the effectiveness of their unit tests (without adding significant additional overhead), or participating in code inspections. And, how many testers are engaged in design reviews and prototyping with program managers and designers in an effort to prevent sub-optimal designs which often leads to a tremendous amount of rework. &lt;/p&gt;  &lt;p&gt;The ability to move quality upstream through defect prevention requires different skills and capabilities, but also opens up new and greater challenges for software testers. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;“Bug prevention is testing’s first goal.” – B. Beizer&lt;/em&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9898775" width="1" height="1"&gt;</description></item><item><title>Best Practices – Philosophy vs. Practicality</title><link>http://blogs.msdn.com/imtesty/archive/2009/09/12/best-practices-philosophy-vs-practicality.aspx</link><pubDate>Sat, 12 Sep 2009 11:54:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9894501</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9894501.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9894501</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9894501</wfw:comment><description>&lt;a href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/BestPracticesPhilosophyvs.Practicality_1AD8/lala-land_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 5px; display: inline; border-top: 0px; border-right: 0px" title="lala-land" border="0" alt="lala-land" align="right" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/BestPracticesPhilosophyvs.Practicality_1AD8/lala-land_thumb.jpg" width="305" height="244" /&gt;&lt;/a&gt;  &lt;p&gt;I have spent the last week in Israel teaching our new SDET course in Herzillya and our Senior SDET course in Haifa. I also did a lot of listening and discussing various issues relating to software testing and the maturation of our discipline; not just here in Israel, but around the world both inside and outside of Microsoft. Now I am sitting at &lt;a href="http://www.telaviv4fun.com/barsday.html" target="_blank"&gt;LaLa Land&lt;/a&gt; after a relaxing day of sailing in the Med, and reflecting on the past week’s discussions. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/BestPracticesPhilosophyvs.Practicality_1AD8/DSC_3455.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 0px 5px 0px 0px; display: inline; border-top: 0px; border-right: 0px" title="DSC_3455" border="0" alt="DSC_3455" align="left" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/BestPracticesPhilosophyvs.Practicality_1AD8/DSC_3455_thumb.jpg" width="332" height="230" /&gt;&lt;/a&gt;One of the topics we discussed was best practices, and that&amp;#160; seems appropriate to write about since the concept of “best practices” was recently discussed (again) in an article in the Software Test and Performance magazine by Eddie Correia. Eddie argues &lt;em&gt;“…the notion of “best practices” is not useful. Best for whom? And for what kind of testing&lt;/em&gt;?” Actually, this is just a repetition of the same old fustian melodramatic hyperbole of the “context-driven” posse.&lt;/p&gt;  &lt;p&gt;Perhaps the philosophical “questioning” of best practices may be interesting for folks who like to run around quoting Aristotle and Plato. However, from a pragmatic point of view this is a rather benign debate for anyone capable of thinking for themselves.&lt;/p&gt;  &lt;p&gt;In reality, many different professions recognize the concept of best practices. For example, a best practice in preventative medicine is to rinse a minor abrasion and apply a topical antiseptic ointment. A best practice in plumbing is to wrap Teflon tape in the direction of the threads when fitting pipes. “Eliminating distractions in the operational area” is listed as one of the best practices by the FAA for airfield safety. Do these “best practices” apply in all situations? No, they don’t.&lt;/p&gt;  &lt;p&gt;So, why do so many professionals recognize the concept of “best practices.” Because they understand that best practices provide guidelines that are generally more effective in the appropriate context as compared to other approaches. They understand that “best practices” are not a rules or rigid standards that must be followed in all circumstances, but “best practices” are general solutions to common problems that can be shared among professionals who might face similar situations. The professionals who understand “best practice” concepts are usually well-trained on other comparable practices for the type of problem they are facing, and know when to apply the best practice within the appropriate situation. They understand that “best practices” don’t simply apply to 1 or 2 limited situations, but have been proven to be generally effective for that particular type of problem.&lt;/p&gt;  &lt;p&gt;But, most importantly these professionals (who recognize “best practices”) are extremely&amp;#160; knowledgeable about their field and can “act with appropriate judgment” (that’s sapience for the CD crowd), and conversely know when to approach a problem using a different solution. &lt;/p&gt;  &lt;p&gt;Fortunately, the argument against “best practices” only stems from a few people who are seemingly more interested in stirring up portentous philosophical debate rather than earnestly discussing the practical advancement of the profession of software testing beyond mysticism and emotionally charged rhetoric. And, that argument really seems to boil down to a rather condescending and incorrect viewpoint that best practices are merely steadfast rules and requirements that must be followed in all situations. I say condescending because this point of view seems to suggest that testers are incapable of analyzing a problem and logically rationalizing the benefits and limitations of various approaches to problems in different situations to reach appropriate decisions on their own.&lt;/p&gt;  &lt;p&gt;Personally, I think professionals in the discipline of software testing are highly intelligent, and are quite capable of making smart decisions, and can “act with appropriate judgment” in a wide variety of contextual situations. I also think discussions of best practices are enriched with case studies outlining situations where they may not apply and the alternative approaches that were more effective in those situations. And, I think “best practices” provide a common reference for professionals in that field that can be shared and further developed, and perhaps even give rise to new “best practices” for varying situations.&lt;/p&gt;  &lt;p&gt;So, for those of you who believe there is a “one-size fits all” solution that can be applied in every situation I recommend that you don’t subscribe to the concept of best practices. (I would also recommend these people are well supervised and constantly monitored.) But, for the vast majority of professionals in the practice of software testing I suspect you understand the notion of “best practices” is quite useful for pragmatic discussions for advancing the intellectual knowledge pool of our profession and maturing our discipline.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9894501" width="1" height="1"&gt;</description></item><item><title>微软的软件测试之道(Microsoft核心技术丛书)</title><link>http://blogs.msdn.com/imtesty/archive/2009/09/10/microsoft.aspx</link><pubDate>Thu, 10 Sep 2009 16:11:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9893630</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9893630.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9893630</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9893630</wfw:comment><description>&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/Microsoft_5709/book%20cover%20in%20Chinese_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="book cover in Chinese" border="0" alt="book cover in Chinese" align="left" src="http://blogs.msdn.com/blogfiles/imtesty/WindowsLiveWriter/Microsoft_5709/book%20cover%20in%20Chinese_thumb.jpg" width="193" height="208" /&gt;&lt;/a&gt;I am really happy to announce that our book has been released in China and available on the Chinese &lt;a href="http://www.amazon.cn/mn/detailApp/ref=sr_1_1/477-2473700-6247954?_encoding=UTF8&amp;amp;s=books&amp;amp;qid=1252582827&amp;amp;asin=B002OB4K6I&amp;amp;sr=8-1#" target="_blank"&gt;Amazon&lt;/a&gt; site! This was really a monumental effort driven by my friend and colleague Kelly Zhang. &lt;/p&gt;  &lt;p&gt;We look forward to the feedback from the Chinese testing community, and we hope this provides our Chinese friends&amp;#160; with some additional perspectives on software testing (or at least some interesting stories).&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9893630" width="1" height="1"&gt;</description></item><item><title>Test Automation ROI (Part II)</title><link>http://blogs.msdn.com/imtesty/archive/2009/09/02/test-automation-roi-part-ii.aspx</link><pubDate>Wed, 02 Sep 2009 11:18:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890282</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9890282.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9890282</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9890282</wfw:comment><description>&lt;p&gt;Last week I talked about the silliness of wasting time calculating the return on investment (ROI) of an automation effort on any non-trivial software project; especially if it has an extended shelf-life. As my friend Joe Strazzre commented, “If you need an ROI analysis to convince business management that test automation is a good thing when used intelligently, than you have already lost.” &lt;/p&gt;  &lt;p&gt;But, management might need to be educated on the limitations of record/playback, rudimentary hard-coded scripts and keyword driven automation efforts because these it is often more appealing for bean counters to invest in low cost tools and continue to rely on non-coding bug finders or domain experts to script out ‘tests’ which do nothing more than repeat some rote set of steps over and over again. But, as E.Dustin, T. Garrett, and B. Gauf wrote in &lt;em&gt;Implementing Automated Software Testing&lt;/em&gt; any serious software automation effort “is software development.” Well designed automated tests requires highly skilled, technically competent, extremely creative, analytical testers capable of designing and developing automated tests using procedural programming paradigms.&lt;/p&gt;  &lt;p&gt;We should still apply ROI concepts in test automation, but at a much lower level. Essentially, each tester must evaluate the return on investment of any test before automating it. The most fundamental purpose of an automated test effort is to provide some perceived value to the tester, the testing effort, and the organization. As a tester, the primary reason I automate a test is to:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Free up my time,&lt;/li&gt;    &lt;li&gt;Re-verify baseline assessments (BVT/BAT, regression, acceptance test suites)&lt;/li&gt;    &lt;li&gt;Increase test coverage (via increased breadth of data or state variability), &lt;/li&gt;    &lt;li&gt;Accomplish tasks that can’t easily be achieved via manual testing approaches. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;For example, the build verification and build acceptance test suites are baseline tests that must be ran on each new build; these tests should be 99.9% automated because they free up my time to design other tests. Tests that evaluate a non-trivial number of combinations or permutations are generally good candidates for automation because they increase test coverage. Performance, stress, load, and concurrency tests should be heavily automated because they are difficult to conduct manually. &lt;/p&gt;  &lt;p&gt;It is important to note that I am not simply referring to UI type automation. A significant amount of “functional tests” designed to evaluate the computational logic of methods or functions can be automated below the UI layer in software architectures using OOP and procedural paradigms where the business and computational logic is separate from the UI layer.&lt;/p&gt;  &lt;p&gt;There are many papers that discuss specific factors to take into consideration when deciding what tests to automate. Unfortunately, there is no single cookie-cutter approach in deciding what tests to automate. Different projects have different requirements and expectations, and, of course, not all tests are equal. One of the best papers I’ve read on deciding what tests to automate is &lt;a href="http://www.stickyminds.com/sitewide.asp?Function=edetail&amp;amp;ObjectType=ART&amp;amp;ObjectId=2010" target="_blank"&gt;When Should a Test Be Automated&lt;/a&gt; by Brian Marick. I like the simplicity in his 3 key questions:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;How much more will this test cost to automate versus running it manually?&lt;/strong&gt;       &lt;br /&gt;Some people think that automating a test reduces costs because it eliminates the tester from manually executing that test. Unfortunately, this is not always the case. As i talked about in a previous post, visual comparative oracles are notoriously error prone requiring the testers to constantly massage the test code and manually verify results anyway. Sometimes paying a vendor to run a test periodically is cheaper than paying an SDET to tweak the test every build. But, if the population of potential test data is large, or combinatorial testing of non-trivial features then automating that test case is probably a good investment.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;What is the potential lifetime of this automated test?&lt;/strong&gt;      &lt;br /&gt;How many times will this test&amp;#160; be re-ran during the development cycle and in maintenance or sustained engineering efforts? Can this test be reused in the next iteration of the product?&lt;/li&gt;    &lt;li&gt;Does the automated test have some probability of exposing new issues?     &lt;br /&gt;Although I don’t necessarily agree with this question because many automated tests may not expose new issues, but they still provide value to the overall testing effort. For example, I wouldn’t expect tests in my regression test suite to expose new defects because if they do there was a regression in the product. So, I would rephrase this question to ask, “&lt;strong&gt;Does this automated test have some probability of exposing new issues, providing additional information that increases confidence, or increases test coverage?&lt;/strong&gt;”&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;A few other questions I ask myself when I am deciding whether to automate a particular test include:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;What exactly is being evaluated?&lt;/strong&gt;       &lt;br /&gt;This is perhaps the first question I ask myself. If the test is evaluating functional or non-functional (stress, perf, security, etc.) capabilities then automation may be worthwhile. But, behavioral tests such as usability tests and content testing are generally not good candidates for automated testing.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;What is the reliability of automating this test?&lt;/strong&gt;      &lt;br /&gt;I don’t want to have to constantly massage a test in order to get it to run. So, what is the probability this test will throw a lot of false positives or false negatives? How much tweaking will this test require due to code or UI instability?&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;What are the oracles for this test and can they be automated?&lt;/strong&gt;      &lt;br /&gt;I don’t want to sit in front of a computer and watch software run software. Also, there is a difference between an automated test and a macro (&lt;em&gt;A single, user-defined command that is part of an application and executes a series of commands&lt;/em&gt;). There are different types of oracles, and the professional test designer needs to also design the most effective oracle for the test. By the way…if the most effective oracle is a human reviewing the results then that test should probably not be automated using current technologies.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;For each test I consider these questions in deciding whether to automate that test. For some tests, I may ask additional questions depending on the context and the business needs of my organization. I don’t use a cookie-cutter template, or try to fill out some spreadsheet to do a cost comparison based on dollar amounts. It’s hard to put a price on value. Instead, I ask myself a few key questions to help me decide if automating a test is worth it to me, my team, and the organization. Is automating a particular test the right thing to do or am I automating something because it’s challenging, or to increase some magical percentage of automated tests compared to all currently defined tests. The key message here is not to blindly automate everything; use your brain and make smart decisions about whether each test should be automated and being able to explain how automating that test benefits the testing effort.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9890282" width="1" height="1"&gt;</description></item><item><title>Measuring Test Automation ROI</title><link>http://blogs.msdn.com/imtesty/archive/2009/08/25/measuring-test-automation-roi.aspx</link><pubDate>Tue, 25 Aug 2009 09:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9883257</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9883257.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9883257</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9883257</wfw:comment><description>&lt;P&gt;I just finished reading Implementing Automated Software Testing by E.Dustin, T. Garrett, and B. Gauf and overall this is a good read providing some well thought out arguments for beginning an automation project, and provides strategic perspectives to manage a test automation project. The first chapter made several excellent points such as:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Automated software testing “&lt;STRONG&gt;is software development&lt;/STRONG&gt;.”&lt;/LI&gt;
&lt;LI&gt;Automated software testing “and manual testing are intertwined and &lt;STRONG&gt;complement &lt;/STRONG&gt;each other.”&lt;/LI&gt;
&lt;LI&gt;And, “The overall objective of AST (automated software testing) is to design, develop, and deliver an automated test and retest capability that&lt;STRONG&gt; increases testing efficiencies&lt;/STRONG&gt;.”&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Of course, I was also pleased to read the section on test data generation since I design and develop&lt;A href="http://www.testingmentor.com/tools/testdatagenerators.htm" target=_blank mce_href="http://www.testingmentor.com/tools/testdatagenerators.htm"&gt; test data generation tools&lt;/A&gt; as a hobby. The authors correctly note that random test data increases flexibility, improve functional testing, and reduce limited in scope and error prone manually produced test data.&lt;/P&gt;
&lt;P&gt;There is also a chapter on presenting the business case for an automation project by calculating a return on investment (ROI) measure via various worksheets. I have 2 essential problems with ROI calculations within the context of test automation. First, if the business manager doesn’t understand the value of automation within a complex software project (especially one which will have multiple iterations) they should read a book on managing software development projects. I really think most managers understand that test automation would benefit their business (in most cases). I suspect many managers have experienced less than successful automation projects but don’t understand how to establish a more successful automation effort. I also suspect really bright business managers are not overly impressed with magic beans. &lt;/P&gt;
&lt;P&gt;Magic beans pimped by a zealous huckster are the second essential problem with automation ROI calculations. Let’s be honest, the numbers produced by these worksheets or other automation ROI calculators are simply magic beans. Now, why do I make this statement? Because the numbers that are plugged into the calculators or worksheets are &lt;A href="http://www.jargondatabase.com/Jargon.aspx?id=9903" target=_blank mce_href="http://www.jargondatabase.com/Jargon.aspx?id=9903"&gt;ROMA data&lt;/A&gt;. I mean really, how many of us can realistically predict the number of atomic tests for any complex project? Also, do all tests take the same amount of time, or will all tests be executed the same number of iterations? Does it take the same amount of time to develop all automated tests, and how does one go about predicting a realistic time for all automated tests to run? And of course, how many of those tests will be automated? (Actually, that answer is easy….the number of automated tests should be 100% of the tests that should be automated.)&lt;/P&gt;
&lt;P&gt;Personally, I think test managers should not waste their time trying to convince their business manager of the value of a test automation project; especially with magic beans produced from ROMA data. Instead test managers should start helping their team members think about ROI at the test level itself. In other words, teach your team how to make smart decisions about what tests to automate and what tests should not be automated because they can be more effectively tested via other approaches.&lt;/P&gt;
&lt;P&gt;In my next post I will outline some factors that testers, and test managers can use to help decide which tests you might consider automating. Basically, the bottom line here is that an automated test should provide significant value to the tester and the organization, and should help free up the testers time in order to increase the breadth and/or scope of testing.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9883257" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/imtesty/archive/tags/Test+Automation/default.aspx">Test Automation</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/The+Professional+Tester/default.aspx">The Professional Tester</category><category domain="http://blogs.msdn.com/imtesty/archive/tags/Test+Management/default.aspx">Test Management</category></item><item><title>A different perspective on random name generation</title><link>http://blogs.msdn.com/imtesty/archive/2009/08/15/a-different-perspective-on-random-name-generation.aspx</link><pubDate>Sat, 15 Aug 2009 20:21:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9871184</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9871184.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9871184</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9871184</wfw:comment><description>&lt;p&gt;My daughter made me laugh today when she offered a bit of her philosophy. She told me that her favorite candy is gummy bears “because gummy bears get stuck between your teeth, and then you can dig out a second helping with your tongue.” I never really thought of it that way, but how many of us have not picked at a piece of licorice stuck between our teeth with our tongue (or a toothpick) and savor that last little bit? Ummm….&lt;/p&gt;  &lt;p&gt;Perhaps it is my own twisted logic, but as I started writing this post I thought about my daughter’s predilection for gummy bears and somehow made a connection to static test data used in tests. Static test data that is simply reused over and over in a test is similar to that last little bit of licorice we dig out of our teeth. The last bit tastes just like the first bite, and all the other bites between. This may be good for those who like the flavor of licorice, but it is not so good for hard-coded test data in rudimentary test scripts, especially in automated tests.&lt;/p&gt;  &lt;p&gt;If you have followed my posts or &lt;a href="http://www.testingmentor.com/" target="_blank"&gt;my personal website&lt;/a&gt; then you know that I am a big proponent of probabilistic stochastic test data (statistically unbiased, parameterized randomly generated test data that is representative of the population of possible inputs for a specific variable). The latest addition to my random test data generator toolbox is &lt;a href="http://www.testingmentor.com/tools/tool_pages/pseudoname.htm" target="_blank"&gt;PseudoName&lt;/a&gt;, a random name (pseudonym) generator library for automated testing.&lt;/p&gt;  &lt;p&gt;Before designing and developing PseudoName I researched the plethora of available random name generators currently available because I am not a big fan of &lt;a href="http://blogs.msdn.com/imtesty/archive/2008/09/18/think-before-re-inventing-the-wheel.aspx" target="_blank"&gt;reinventing the wheel&lt;/a&gt; either. In fact, there are many very good online html based random name generators. For example, &lt;a href="http://www.fakenamegenerator.com/" target="_blank"&gt;Fake Name Generator&lt;/a&gt; that not only generates a pseudonym, but also generates an address, phone number, etc. essentially creating a fictitious persona. However, while this tool is useful for manual testing it is not so useful for automated tests. The &lt;a href="http://www.automatedtestinginstitute.com/home/index.php?option=com_content&amp;amp;view=article&amp;amp;id=1198:generate-random-name&amp;amp;catid=84:dynamic-data-entry&amp;amp;Itemid=45" target="_blank"&gt;Automated Testing Institute&lt;/a&gt; website provides code samples in VBScript and Ruby for generating random names from a built in collection of names stored in an array. These examples are also useful and the collections can certainly be expanded to include a greater variety of names, but they are still limited in scope.&lt;/p&gt;  &lt;p&gt;A common problem that I noticed among all available random name generators is the Romanization (representing a written language with the Latin alphabet) of the pseudonym. Basically this means the random names are always represented with ASCII characters. Romanization may be satisfactory for those who only know the letters “A” through “z” or for those whose eyes glaze when the displayed character glyphs are in a foreign language. But, for those of us dealing with modern software or services that supports Unicode and may be adapted (or localized) or used in different locales where it is important to support the native language we soon realize that Romanization using simple ASCII characters is simply not enough for effective globalization testing.&lt;/p&gt;  &lt;p&gt;Unlike most random name generators PseudoName generates a random name (pseudonym) from columns of name data in an Excel spreadsheet. The name data in the Excel spreadsheet is stored as Unicode so the characters can be the same as those used in the desired region or locale. For example to generate a random female Chinese name most name generators would produce a string such as “Dongyi Li.” However, PseudoName can randomly generate a name using Chinese characters such as&amp;#160; “冬怡 李.” (&lt;em&gt;Actually, Dongyi Li is not a pseudonym. Dongyi is my friend and she was kind enough to produce the Chinese name list of female, male, and surnames, and also helped me with refactoring the code used in this tool.&lt;/em&gt;)&lt;/p&gt;  &lt;p&gt;The &lt;a href="http://www.testingmentor.com/tools/tool_pages/pseudoname.htm"&gt;PseudoName&lt;/a&gt; library is simple to use in an automated test. The &lt;a href="http://www.testingmentor.com/tools/sdk/PseudoName.htm" target="_blank"&gt;PseudoName members page&lt;/a&gt; also includes simple examples, and the &lt;a href="http://www.testingmentor.com/tools/sdk/NameInfo.htm" target="_blank"&gt;NameInfo properties&lt;/a&gt; allow customization of the pseudonym output. If additional properties are necessary to generate reasonably realistic names in different locales please let me know. Also, if there is enough demand I might consider slapping on a GUI.)&lt;/p&gt;  &lt;p&gt;The format for the Excel sheet is simple. The first column is female names, the second is male names, and the third is surnames. The names listed in the currently available US and Japanese names data files are the most common names in those countries according to census data. The names in the Chinese data file are the characters used for feminine and masculine names, as well as the most common surnames used in China. (&lt;strong&gt;&lt;em&gt;I could really use some help collecting name lists using Unicode character scripts from other countries around the world. If you want to contribute please &lt;a href="mailto:bj.rollison@testingmentor.com"&gt;send me&lt;/a&gt; a name list in Excel and I will post it on the &lt;a href="http://www.testingmentor.com/tools/tool_pages/pseudoname.htm" target="_blank"&gt;tool website&lt;/a&gt; for other testers to use.&lt;/em&gt;&lt;/strong&gt;)&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9871184" width="1" height="1"&gt;</description></item><item><title>Stupid Hammer!!!</title><link>http://blogs.msdn.com/imtesty/archive/2009/08/11/stupid-hammer.aspx</link><pubDate>Tue, 11 Aug 2009 09:33:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9863916</guid><dc:creator>I.M.Testy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/imtesty/comments/9863916.aspx</comments><wfw:commentRss>http://blogs.msdn.com/imtesty/commentrss.aspx?PostID=9863916</wfw:commentRss><wfw:comment>http://blogs.msdn.com/imtesty/rsscomments.aspx?PostID=9863916</wfw:comment><description>&lt;p&gt;I remember as a young lad working construction for my uncle one summer. The hours were long, it was hot, and I would much rather have been somewhere else. But, I was saving up for my first motorcycle, so I did whatever jobs I could find. Perhaps it was because my mind wasn’t really engaged in what I was doing, but as I was hammering nails into drywall the hammer slipped off the head of the nail and mashed my thumbnail. Man that hurt. Of course after yelling out a few expletives I screamed,&amp;#160; “stupid [expletive deleted] hammer!” Years later, I was working an engine and the wrench slipped and the back of my hand slammed into the engine block. Covered with grease (and now a bit of blood) I examined my hand to assess the damage in order to decide whether to keep working or tend to my wounds, and the first thing I thought of as I looked at my somewhat mangled hand was “stupid wrench.” Do you see the pattern here? Isn’t it a bit funny that often when we use a tool incorrectly, misuse a tool to do something the tool was not designed to do, or do not really know how to use the tool to begin with and a problem ensues our initial reaction is to blame the tool. Of course, it couldn’t be our fault; it has to be the tool! &lt;/p&gt;  &lt;p&gt;I sometimes see this deflection of responsibility repeated by testers who attempt to apply various techniques or methodologies to a software testing problem and later discover they missed or overlooked a bug. Their immediate reaction is “such and such” technique sucks because it didn’t find “this” bug. Of course it could never be our own fault! It could never be that we don’t sufficiently understand the principles of a technique or approach in order to apply it correctly. It could never be that we don’t fully understand the ‘system’ in depth that we are testing. And it could never be that we are using a particular technique or approach in the wrong context. The problem could never be the fault of the person wielding the tool…it must be the tool.&lt;/p&gt;  &lt;p&gt;A few years ago I was rebuilding a sailing dinghy. I was ready to mount the rub strake and started drilling holes through the fiberglass hull and the teak strip. For some bizarre reason, I decided to simply hold the rub strake against the gunwale as I moved forward drilling the holes rather than use C-clamps. My grip was sufficiently tight to hold the rub strake tight against the hull, and I had used an electric drill for years and knew well how to use the tool. But, after drilling several holes I suddenly experienced an excruciating pain in my left index finger. Yep…the drill bit went right into the proximal interphalangeal joint on my left index finger. After screaming a few profanities (&lt;a href="http://www.scientificamerican.com/podcast/episode.cfm?id=profanity-bleeps-physical-pain-09-07-13"&gt;which by the way helps us deal with pain&lt;/a&gt;) I flung the drill across the garage only to put a hole in the drywall and hear it crash to the floor in pieces. With that I hurled a few more obscenities, wrapped my finger with ice, and headed off to the doctor and thought to myself…”man, that was stupid of me not to use clamps.” To add insult to injury, the doctor asked, “Why didn’t you use a clamp?” I replied, “Well, I was in a bit of a hurry.” He shook his head, smiled, and asked the redundant question, “In retrospect that wasn’t too smart was it?” &lt;/p&gt;  &lt;p&gt;When we misuse tools, apply them in the wrong context, or if we really don’t understand how to use tools appropriately bad things can happen. (And sometimes the scars are permanent!) &lt;/p&gt;  &lt;p&gt;While I don’t think that misapplication of a testing technique or approach would require a trip to the hospital, it might cost us a missed bug or added redundant tests. This also doesn’t mean that all techniques or approaches to testing are 100% effective in finding all categories of anomalies. But, we have to remember for the most successful application of any tool, technique, or approach used in testing depends heavily on the person wielding the tool in the appropriate situation and we must learn to use them smartly! &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9863916" width="1" height="1"&gt;</description></item></channel></rss>