is it possible to work with XDETester in such a primitive way, that only mouse-clicks and key strokes get recorded? This is possible with Rational Robot and I need it for testing a legacy application. Furthermore I need to compare window regions and do some text recognition.
I haven't yet found according features in my evaluation copy of XDETester.
Java provides some low-level screen control functionality with the 'Robot' class (no relation to Rational Robot). If you're not too familiar with XDE Tester, a good idea to keep in mind is that its written entirely in Java. Anything you can implement in Java can be integrated into your scripts. So, it is *possible* but as Prasanna states, not recordable through XDE Tester. Here's a link explaining how: http://www.developer.com/java/other/article.php/2212401
Your code could look at the properties of your application window to find the coordinates of the top left corner and then use the examples on this page to perform actions relative to that position. Define all the objects you need to click on as variables with associated coordinates, somewhat like an object map. To perform actions, Click(WindowX+ObjectX, WindowY+ObjectY) where Window X and Y are the current coords of the top left corner and Object X and Y are derived from your 'object map' This would make for a somewhat maintainable low-level script.
... as for comparing regions, you could capture the screen region to a jpg (I've posted an example of how to do this earlier) and then find some Java code to compare 2 images (surely this exists). OCR? I haven't been able to find any freeware OCR Java packages, but you can get one at http://www.javaocr.com . If anyone knows of a freeware OCR package or has some code for comparing 2 images, I'd appreciate it. This would surely save me some time.