Hello,
I have a question .... is it possible to use WindowTester inside an SWT application? I would like to have one option in a menu like "Run UI test" that an
administration user can run at any time.
To test this I create one entry in a menu and I have an "action" class then runs when the administrator clicks in this option. But my problem is that I always get the same error: "Display has not been initialized."
In my first case I created one class that extends UITestCaseSWT so I can execute getUI() to get one context. But this doesn't work. Is there any way to get
one IUIContext so this class can work? or without UITestCaseSWT is there any way to get IUIcontext?
public class TestInterfazAction extends AbstractSimpleAction {
class TestUI extends UITestCaseSWT {
public TestUI() {
}
public void execute() throws Exception {
IUIContext ui = getUI() ;
ui.click(new MenuItemLocator("File/Open Log Viewer"));
Regards,
Alfonso