Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Failed to apply "Close modal dialogs"(AUT freezes when launched to perform record/replay)
Failed to apply "Close modal dialogs" [message #1719520] Fri, 08 January 2016 15:32 Go to next message
Ines El Euch is currently offline Ines El EuchFriend
Messages: 35
Registered: March 2015
Member
Hello,

I started using the RCPTT recently. I followed all the instruction here https://www.eclipse.org/rcptt/documentation/userguide/getstarted/ to get an idea of how it works. However, I made the tutorial directly on the application that I wanted to test. The thing is, I am unable to record or to replay any test case because of this error. I have searched for solutions for about more than a week now but with no luck, none of the solutions that I found has worked for me.The dialog says:

"Failed to apply "close modal dialogs" Execution has timed out after 360.0 seconds"


My environment configuration is as follows:
1) java 64 bits 1.8.0_25
2) RCPTT 64 bits version 2.0.2 M4
3) Ubuntu 12.04
4) the AUT is a 64 bits and the java set in the launch configuration is java 64 bits 1.8.0_25

Here is what I have in the log
!ENTRY org.eclipse.rcptt.tesla.ecl.impl 4 0 2016-01-08 15:45:13.345
!MESSAGE Timeout during execution of org.eclipse.rcptt.ctx.workbench.impl.WorkbenchContextProcessor$1@52194df3
!SUBENTRY 1 unknown 0 0 2016-01-08 15:45:13.346
!MESSAGE OK
[org.eclipse.rcptt.expandbar.runtime] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DisplayAspect
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DebugDisplayAspect
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DNDAspect
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.swt.aspects.MenuAspect
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.swt.aspects.BrowserAspect
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ClipboardAspect
[org.eclipse.rcptt.expandbar.runtime] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ImagesAspect
[org.eclipse.rcptt.forms.impl] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.forms.impl] info register aspect org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect
[org.eclipse.rcptt.forms.impl] info register aspect org.eclipse.rcptt.tesla.recording.aspects.forms.FormsRecordingAspect
[org.eclipse.rcptt.tesla.canvas] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.tesla.canvas] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DisplayAspect
[org.eclipse.rcptt.tesla.canvas] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DebugDisplayAspect
[org.eclipse.rcptt.tesla.canvas] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DNDAspect
[org.eclipse.rcptt.tesla.canvas] info register aspect org.eclipse.rcptt.tesla.swt.aspects.MenuAspect
[org.eclipse.rcptt.tesla.canvas] info register aspect org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect
[org.eclipse.rcptt.tesla.canvas] info register aspect org.eclipse.rcptt.tesla.swt.aspects.BrowserAspect
[org.eclipse.rcptt.tesla.canvas] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ClipboardAspect
[org.eclipse.rcptt.tesla.canvas] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ImagesAspect
[org.eclipse.rcptt.tesla.jface.databinding] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.tesla.jface.databinding] info register aspect org.eclipse.rcptt.tesla.jface.DatabindingAspect
[org.eclipse.rcptt.tesla.jface.databinding] info register aspect org.eclipse.rcptt.tesla.jface.DatabindingObservablesAspect
[org.eclipse.rcptt.tesla.jface.text] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.tesla.jface.text] info register aspect org.eclipse.rcptt.tesla.jface.TextReconcilerAspect
[org.eclipse.rcptt.tesla.properties.view] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.recording.aspects.RecordingAspect
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DisplayAspect
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DebugDisplayAspect
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DNDAspect
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.swt.aspects.MenuAspect
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.swt.aspects.BrowserAspect
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ClipboardAspect
[org.eclipse.rcptt.tesla.properties.view] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ImagesAspect
[org.eclipse.rcptt.tesla.ui.ide] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.tesla.ui.ide] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DisplayAspect
[org.eclipse.rcptt.tesla.ui.ide] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DebugDisplayAspect
[org.eclipse.rcptt.tesla.ui.ide] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DNDAspect
[org.eclipse.rcptt.tesla.ui.ide] info register aspect org.eclipse.rcptt.tesla.swt.aspects.MenuAspect
[org.eclipse.rcptt.tesla.ui.ide] info register aspect org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect
[org.eclipse.rcptt.tesla.ui.ide] info register aspect org.eclipse.rcptt.tesla.swt.aspects.BrowserAspect
[org.eclipse.rcptt.tesla.ui.ide] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ClipboardAspect
[org.eclipse.rcptt.tesla.ui.ide] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ImagesAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.jface.text.TextViewerAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DisplayAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DebugDisplayAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DNDAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.swt.aspects.MenuAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.swt.aspects.BrowserAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ClipboardAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ImagesAspect
[org.eclipse.rcptt.tesla.workbench.texteditor] info register aspect org.eclipse.rcptt.tesla.recording.aspects.jface.text.JFaceTextRecordingAspect
[org.eclipse.rcptt.tesla.swt.e4x] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.tesla.swt.e4x] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DisplayAspect
[org.eclipse.rcptt.tesla.swt.e4x] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DebugDisplayAspect
[org.eclipse.rcptt.tesla.swt.e4x] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DNDAspect
[org.eclipse.rcptt.tesla.swt.e4x] info register aspect org.eclipse.rcptt.tesla.swt.aspects.MenuAspect
[org.eclipse.rcptt.tesla.swt.e4x] info register aspect org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect
[org.eclipse.rcptt.tesla.swt.e4x] info register aspect org.eclipse.rcptt.tesla.swt.aspects.BrowserAspect
[org.eclipse.rcptt.tesla.swt.e4x] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ClipboardAspect
[org.eclipse.rcptt.tesla.swt.e4x] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ImagesAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info AspectJ Weaver Version 1.8.6 built on Monday Jun 8, 2015 at 15:42:44 GMT
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DisplayAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DebugDisplayAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.swt.aspects.DNDAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.swt.aspects.MenuAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.swt.aspects.EventFilterAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.swt.aspects.BrowserAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ClipboardAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.swt.aspects.ImagesAspect
[org.eclipse.rcptt.tesla.jface.text.aspects] info register aspect org.eclipse.rcptt.tesla.jface.text.TextViewerAspect



Any help is appreciated. If you need any other information that can help in the diagnose of the issue, please let me know.

Thanks for you help and support.

Best Regards,
Inès El Euch

[Updated on: Mon, 11 January 2016 09:06]

Report message to a moderator

Re: Failed to apply "Close modal dialogs" [message #1719942 is a reply to message #1719520] Wed, 13 January 2016 11:41 Go to previous message
Ines El Euch is currently offline Ines El EuchFriend
Messages: 35
Registered: March 2015
Member
Hello,

So I have been able to fix my issue, on my own. Here is a note on how I did that, for future reference and for other people facing the same problem.
So after several investigations on the subject, I finally figured out what was the source causing the error. Turned out that in my configuration, when I made clear workspace, I hadthe checkbox checked for "Ask for confirmation before clearing". Apparently, the dialog seems to be closed when I click on yes or no but when seeing the log file and looking to the dialog message displayed (failed to close modal dialog) I knew that somehow, RCPTT considered that the dialog was not closed and it waited for it to close (which already happened but it didn't notice that) and it waited till the execution timeout reached. So after explaining the probable cause of the issue, basing on my theory of course, I unchecked that option and guess what? It immediately worked just fine.

Conclusion to correct this behavior, in the launch configuration, main tab:

1) Check the clear workspace
2) Uncheck the "Ask for confirmation before clearing" Or remove manually the aut-runtime... directory each time before starting recording/replaying a test case. (you need to choose one of them, no need to make both)
3) Increase the launch timeout (Window -> preferences) to 3000 (just add a 0)

And voilà, that's how it worked out for me. Hope it will do the same for you.

In case it didn't here is some other hints you may try:
In the launch configuration:
In arguments tab:
1) Program arguments: add the following: -nospalsh and -noregtool( this one is if your AUT is using a registration tool)
2) VM arguments : Leave only this -Xms512m -Xmx512m -XX:MaxPermSize=128m
In configuration tab, check the clear the configuration area before launching
Finally you may want to "clear terminated" each time before the replay and you may want to add clear when launching RCPTT (./rcptt clear)
Hope this helps

Best regards,
Inès El Euch
Previous Topic:ECL documentation not found
Next Topic:How to verifiy a item is not part of a tree
Goto Forum:
  


Current Time: Fri Apr 26 00:28:42 GMT 2024

Powered by FUDForum. Page generated in 0.03305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top