RecordingFailedException

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

RecordingFailedException

Postby Sonali » Mon Sep 22, 2008 2:15 am

Hi,

We are trying to record tests for a standalone SWT/swing application.

While recording the application is launched and we tried to record a browse button which opens a Open file dialog to select the file.

As soon as the browse button is clicked,Open dialog appears.The application hangs up there and i get following exception in the recording console.

com.windowtester.swing.recorder.RecordingFailedException: recording.error
at abbot.editor.recorder.EventRecorder.saveSemanticEvent(EventRecorder.java:457)
at abbot.editor.recorder.EventRecorder.recordEvent(EventRecorder.java:534)
at abbot.editor.recorder.Recorder.record(Recorder.java:76)
at com.windowtester.swing.event.recorder.SwingGuiTestRecorder.startRecordingEvent(SwingGuiTestRecorder.java:159)
at com.windowtester.swing.event.recorder.SwingGuiTestRecorder$1.processEvent(SwingGuiTestRecorder.java:137)
at abbot.util.SingleThreadedEventListener.eventDispatched(SingleThreadedEventListener.java:55)
at abbot.util.EventNormalizer.delegate(EventNormalizer.java:220)
at abbot.util.EventNormalizer.eventDispatched(EventNormalizer.java:227)
at abbot.util.WeakAWTEventListener.eventDispatched(WeakAWTEventListener.java:30)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit.notifyAWTEventListeners(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at javax.swing.JFileChooser.showDialog(Unknown Source)
at javax.swing.JFileChooser.showOpenDialog(Unknown Source)
at org.pentaho.ui.xul.swing.tags.SwingFileDialog.showOpen(SwingFileDialog.java:86)
at org.pentaho.ui.xul.swing.tags.SwingFileDialog.showOpenDialog(SwingFileDialog.java:64)
at org.pentaho.aggdes.ui.ext.impl.MondrianFileSchemaProvider.chooseFile(MondrianFileSchemaProvider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:293)
at org.pentaho.ui.xul.swing.tags.SwingButton$1$1.run(SwingButton.java:80)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at org.pentaho.ui.xul.swing.tags.SwingDialog.show(SwingDialog.java:213)
at org.pentaho.aggdes.ui.form.controller.ConnectionController.showConnectionDialog(ConnectionController.java:296)
at org.pentaho.aggdes.ui.form.controller.ConnectionController$3.run(ConnectionController.java:207)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Could you please let me know what is the issue here?
Sonali
 
Posts: 4
Joined: Mon Jan 28, 2008 6:00 am

Re: RecordingFailedException

Postby Phil Quitslund » Tue Sep 23, 2008 7:42 pm

This was sent to support as well. Here's the initial response:

You are encountering a few known issues. (1) our recording support for hybrid SWT/Swing applications is not complete (the recorder does not know how to switch between widget systems even though the runtime does. (2) the browse button likely brings up a native file browser dialog and natives are not handled by the recorder. For the time being these interactions cannot be recorded.

-- WT Support
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest