What s Next for Tester?

[Previous] [Next]

As I mentioned earlier, Tester does one thing well: playing keystrokes. As with all the utilities in this book, you're welcome to find ways to improve Tester if you're so inclined. Here are some possible enhancements you might pursue:

  • Add wrapper classes such as TListBox, TTreeControl, and TRadioButton so that you can check various states and verify that control items contain the proper data. With these classes, you can start validating controls and writing more complicated scripts.
  • Add a recorder application so that you can record keystrokes. Try to make the recorder extensible so that if you do add additional wrapper classes, you can take advantage of them with the recorder application to generate better scripts.
  • Explore ways to add mouse input to Tester. You might be able to record the mouse placement as a percentage of screen offsets. The only problem would be that you might miss a control you need to click on when you change resolutions. Another idea would be to first add all the wrapper classes and then use only the Click method for the wrapper classes for clicks. The problem here is that you'd need to ensure that you have all types of windows wrapped with specific tester controls.


Debugging Applications
Debugging Applications for MicrosoftВ® .NET and Microsoft WindowsВ® (Pro-Developer)
ISBN: 0735615365
EAN: 2147483647
Year: 2000
Pages: 122
Authors: John Robbins

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