Chapter 24

Coded User Interface Testing

What's In This Chapter?

  • Understanding how you can use coded UI tests to create automated functional tests
  • Learning how to create a coded UI test from scratch, or from existing action recordings
  • Learning techniques for making coded UI tests more robust

Wrox.com Code Downloads for this Chapter

The wrox.com code downloads for this chapter are found at www.wrox.com/remtitle.cgi?isbn=1118314081 on the Download Code tab. The files are in the Chapter 24 download folder and individually named as shown throughout this chapter.

In Chapter 23, you learned about the support that Visual Studio 2012 has for manual testing. Manual tests are relatively cheap to author, which makes them well-suited for testing your application while it's undergoing regular changes. As the user interface (UI) undergoes churn (perhaps because of usability feedback, or additional features being implemented), it's easy to update manual test cases to reflect those changes. After all, a manual test is essentially just a textual list of steps.

The downside of manual tests is that, by definition, they require human intervention to execute and validate. As an application grows, it may become cost-prohibitive to run every manual test for every build you're testing. The desire is to use automated tests that can be run routinely to help ensure application integrity, without requiring ongoing human testing resources. Visual Studio 2012 enables you to create coded UI tests, which are ...

Get Professional Application Lifecycle Management with Visual Studio 2012 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.