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 Code Downloads for this Chapter

The code downloads for this chapter are found at 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.