Native dialog (file chooser) [message #870513] |
Tue, 08 May 2012 13:51 |
Stefan Mertins Messages: 11 Registered: March 2012 |
Junior Member |
|
|
Hello,
I use jubula to test a rcp application and it works fine with almost all of my test cases. But as soon as I have to deal with native dialogs (like file chooser) I have serious problems.
My modled test case works just fine on one system (I started to test on windows 7). Then I moved to another system (ubuntu linux 32bit) and I had to remodel the testcase, after some trial and error it worked. Now I moved again (to ubuntu linux 64bit headless server, the AUT runs on an virtual frame buffer) and I have the same problem again and I dont know what exactly is causing the problem.
My testcase is as follows:
- Open external file chooser
- wait 1 second
- Copy file path to clipboard
- External Key Combination [control + v]
- External Key Combination [enter]
- wait 1 second
The problem occurs, when the step "External Key Combination [control + v]" is executed. The test execution just stops there and wait for ever. Sometimes however it just runs fine and other times it executes the command twice in a row and stops after it.
If I cancel the External dialog manually, the test execution continues, like nothing happend.
I really cant explain the behavior to myself. When the error occured the first time I originally moved the "Copy file path to clipboard" step out of the time frame when the external dialog is opened (switch step 1 and step 3 of my testcase). After that it worked.
I explained this to myself like "Maybe all test steps, not marked as external need some sort of response from the AUT and dont get it while the focus is on the external file chooser". Hence I removed both wait test steps. But until now I had no success.
The test execution runs fine on the first execution, but still stops in the second and third iteration with a different data set.
The error cant be in the AUT, because it works just fine if I execute the control+v and enter step manually.
Anyone have a idea what to change to get it to work?
Stefan
|
|
|
|
|
|
Re: Native dialog (file chooser) [message #871505 is a reply to message #870513] |
Mon, 14 May 2012 09:40 |
Stefan Mertins Messages: 11 Registered: March 2012 |
Junior Member |
|
|
Hi,
I used wait times between 0,5 and 7 seconds. I will try the 10seconds.
For now I use a workaround and skip the native dialog in my workflow.
Quote:Also, is there anything in the log that may help?
Today I found this after the external Command while attempting to do the second wait.
2012-05-14 10:46:40.096 [Close Session Factory] ERROR o.e.j.c.core.persistence.Persistor - dispose of Persistor failed
org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:4282) ~[org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f.jar:na]
at org.eclipse.swt.SWT.error(SWT.java:4197) ~[org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f.jar:na]
at org.eclipse.swt.SWT.error(SWT.java:4168) ~[org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f.jar:na]
at org.eclipse.swt.widgets.Display.error(Display.java:1210) ~[org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f.jar:na]
at org.eclipse.swt.widgets.Display.asyncExec(Display.java:713) ~[org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f.jar:na]
at org.eclipse.jubula.app.core.JubulaWorkbenchWindowAdvisor$ApplicationWindowTitleUpdater.updateProjectNameInTitlebar(JubulaWorkbenchWindowAdvisor.java:85) ~[na:na]
at org.eclipse.jubula.app.core.JubulaWorkbenchWindowAdvisor$ApplicationWindowTitleUpdater.reactOnDatabaseEvent(JubulaWorkbenchWindowAdvisor.java:56) ~[na:na]
at org.eclipse.jubula.client.core.utils.DatabaseStateDispatcher.notifyListener(DatabaseStateDispatcher.java:67) ~[org.eclipse.jubula.client.core_1.2.0.201203181048.jar:na]
at org.eclipse.jubula.client.core.persistence.Persistor.dispose(Persistor.java:1168) ~[org.eclipse.jubula.client.core_1.2.0.201203181048.jar:na]
at org.eclipse.jubula.client.core.persistence.Persistor$1.run(Persistor.java:96) [org.eclipse.jubula.client.core_1.2.0.201203181048.jar:na]
I also curious about the Environment you use. How do you automate testing on different VMs? Are you using Jenkins to do so and are there any Blogs or Howtos about it?
At the moment we use a Server with Jenkins, that builds the RCP, configures a local test environment (copy rcp, copy jubula plugin into rcp, add jubula osgi bundle, ...) and executes the tests afterwards.
Stefan
[Updated on: Mon, 14 May 2012 10:17] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05190 seconds