Ultimate UI testing solution.
Here is a general Jemmy scheme at the time of creating this document. The scheme shows Jemmy library with the extentions as well as some of the products it is used for as a test tool.
UI test work-flow could be broken to three kinds of steps:
First two parts should look something like this, then
Starting from some hierarchy root,
look for a control with certain characteristics,
and do something meaningful to it
Which, with Jemmy, looks like this
SomeHierarchyRoot.lookup(new SertainCharacteristics()).
as(SomeMeaningfulControlInterface.class).do();
Test could verify
Jemmy provides all the support for verifying this. Check documentation and samples for more info.
This comes back to component lookup.
Again, either the lookup or waiting for a control property to be equal to something.
Use Jemmy image API.
Well ... since the test is written in Java, there should not be any problem to implement any kind of check, is there? Just remember to wait for a result - do not verify it right away. You could use Jemmy waiting API for that.
Old main mage located here