3 Oct 2007 15:34
Re: abbot support for Java 2D shape.
Timothy Wall <twall <at> users.sf.net>
2007-10-03 13:34:23 GMT
2007-10-03 13:34:23 GMT
On Oct 2, 2007, at 8:59 PM, Bill Liu wrote: > Hi Timothy, > > I have a set of Java 2D shapes drawn on a JPanel and I would like > to test them using Abbot and Costello, can you give me some > suggestions on how to approach the task? I have the following > specific questions: > 1. Do I have to provide my own finder, tester, recorder, matcher, > location classes and my shape Hierarchy? If the question is 'no' to > this question, then > 2. What is the minimum classes I have to provide to start off, If I > want to approach the task incrementally? For example, > 3. What do I have to do to resize and move my shapes? Abbot's data model is based on things derived from Component and locations within those components. The only interaction it has with the Java 2D drawing pipeline is the Robot.sample() method. You need to ask yourself what aspects of your Java2D shapes you wish to test. * are you concerned about proper movement (animation) of a shape over time? * are you concerned with the proper appearance of a given shape? * are you concerned about proper compositing of multiple shapes? * are you concerned only that *something* is drawn? The simplest test for having drawn something is to verify that a(Continue reading)
RSS Feed