23.01.2018 Views

MICROSOFT_PRESS_EBOOK_PROGRAMMING_WINDOWS_8_APPS_WITH_HTML_CSS_AND_JAVASCRIPT_PDF

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

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

If you don’t have some testing methodology in place, then, start building one, even from the basics.<br />

For example, be sure to always test your app on a clean install of Windows 8 on a machine without a<br />

developer license, as well as on low-end machines whose performance is similar to many ARM devices.<br />

One developer I worked with had an app rejected by the Store because it came up blank on first<br />

run—he never saw this happen because of all the cached data on his development machine!<br />

You also want to develop a solid checklist of how to poke and prod your app to exercise all its code<br />

paths. This should include subjecting it to all the conditions that come from outside your app: changing<br />

view states and device orientations; invocation of the different charms; changes in network connectivity;<br />

running on slow networks; varying screen sizes and pixel densities; input from different sources; having<br />

your temp files cleaned out with the Disk Cleanup tool; signing on with different credentials;<br />

suspending, resuming, and restarting after termination; running with high contrast modes and other<br />

accessibility features; and running under different languages. The better your app behaves under all<br />

these circumstances, the more solid it will look and feel to the customers who will be writing ratings and<br />

reviews. I cover these topics in a two-part video called “Beyond Just Beautiful” that you can find on the<br />

Concepts and architecture page of the Developer Center.<br />

Beyond that there are some great topics in the documentation to help you take the next steps:<br />

• Debugging and Testing Windows Store apps<br />

• Analyzing the code quality of Windows Store apps with Visual Studio code analysis<br />

• Creating and running unit tests on a Windows Store app<br />

• Analyzing the performance of Windows Store apps<br />

The other very important part of testing is running your app through the Windows App Certification<br />

Kit, otherwise known as the WACK. This tool subjects your app to all the automated tests that will<br />

happen when you onboard to the Store, thereby letting you correct any problems it finds beforehand.<br />

Passing the tests in the WACK is no guarantee that your app will be accepted, but it will certainly save<br />

you a great deal of time waiting for onboarding results and having to resubmit over and over. You<br />

should, in fact, run the WACK just about every day during development. You won’t necessarily fix<br />

everything it brings up right away, but the ongoing data will be very valuable.<br />

For complete details on the tool and what it does, see Testing your app with the Windows App<br />

Certification Kit and Windows App Certification Kit tests.<br />

Tip If you find the WACK coming up blank (showing no apps to test), try uninstalling SDK samples that<br />

you might have run from Visual Studio. It seems the tool can get overloaded sometimes.<br />

826

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

Saved successfully!

Ooh no, something went wrong!