07.11.2014 Views

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Test</strong>ing for Globalization Best<br />

Practices<br />

Globalization best practices ensure that the application code can support multiple<br />

cultures with little or no change to the code base. A culture is a combination of a<br />

language and a cultural environment. It includes information such as the format<br />

of dates and times, currencies, character classification, and sorting rules for strings.<br />

One globalization best practice is to separate the culture-dependent content from the<br />

culture-independent content. Another best practice is to write code that can process<br />

any culture-dependent content. This ensures that the application can be easily localized<br />

for a particular culture.<br />

<strong>Test</strong>s for globalization best practices detect problems in the application’s design that<br />

violate these practices. The tests should prove that the code can handle any cultural<br />

convention without incurring any difficulties that would either cause data loss or<br />

display problems.<br />

This chapter discusses how the <strong>Enterprise</strong> <strong>Library</strong> application blocks were tested to<br />

see whether they followed globalization best practices.<br />

The <strong>Test</strong> Approach<br />

The test approach is the overall procedure that the test teams followed to ensure that<br />

the application blocks adhered to globalization best practices.<br />

<br />

To test the application blocks<br />

1. Create a test plan that consists of test cases that show whether the application<br />

blocks follow globalization best practices.<br />

2. Design pseudo-localization tests to find localizability bugs.<br />

3. Choose a test environment by deciding on the operating system and the culture of<br />

the server that hosts the application blocks.<br />

4. Execute the test cases and pseudo-localization tests and analyze the results to<br />

ensure that the application blocks do not lose the data or incorrectly display the<br />

data.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!