We a ton of property sheets that need some basic and afterwards more complete validation. Starting out on the basic tests, I'd like to do something like...
Get all fields on a property sheet.
Validate their default values
For combo boxes validate their possible values.
Getting the property sheet doesnt seem to be a problem and once there labels seem be easy to get, but have trouble with the editable fields. We have text fields and combo boxes a plenty, i am doing something like
- Code: Select all
IWidgetLocator[] allPropertyWidgets = propertyView.findAll(ui);
for (IWidgetLocator widgetLocator : allPropertyWidgets)
{
System.out.println("WL CL NAME: " + widgetLocator.getClass().getName());
System.out.println("WL NAME: " + widgetLocator.getClass().getSimpleName());
}
Simply yields:
WL CL NAME: com.windowtester.runtime.locator.WidgetReference
WL NAME: WidgetReference
WidgetReference doesnt have any methods on it that would allow me to do something useful.. ( Also it looks like they api might be out of date, as getWidget isnt available on todays 1.7 stable build ).
I have attached an example property sheet. Given this, are there any suggestions on how to proceed.
Thanks!