Exercise 22 ( Chapter 28 )


Exercise 22 (Chapter 28)

Q1:

What are some ways the XTrack application could be redesigned for greater testability?

A1:

This is really hard to answer, since as a reader of this book, you don't know the underlying architecture of XTrack. If you tried any of the exercises, though, you may have a feel for what would make it easier to test. If so, we want to hear from you!

One obvious feature that would help with the automated tests is a delete function for users, stories, and so on. We have add, update, and display, but no delete. The tests that test the add functions can't clean up after themselves; we need a separate mechanism for putting the data back into the state in which we started.

XTrack is written in C, and it's perfectly possible to automate the tests below the user interface, if desired. We did Exercise 19 through the user interface, because we felt the UI was fairly stable and our test framework enables us to automate quickly.



Testing Extreme Programming
Testing Extreme Programming
ISBN: 0321113551
EAN: 2147483647
Year: 2005
Pages: 238

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net