Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » ub_app_activate step failing(ub_app_activate step failing)
ub_app_activate step failing [message #1398579] Fri, 11 July 2014 09:14 Go to next message
Bala S is currently offline Bala SFriend
Messages: 3
Registered: July 2014
Location: India
Junior Member
Hi All,
I am automating swing application which is launched as jnlp file.I have created a executeable jar which uses netx to launch the jnlp application with which I was able to launch the application and perform object mapping in Jubula successfully using the default AUT agent, But when I run the test the eclipse minimizes and in Approx ~5 sec the eclipse maximises with test results showing failed ub_app_activate step and other steps are not executed. I tried different activation methods and my application is right after the eclipse but nothing worked out.

1. ub_app_activate is the first step in my test case
2. I have installed Jubula from Eclipse market place as plugin
3. Eclipse Version: Luna Release (4.4.0)
4. Eclipse Build id: 20140612-0600
5. I am using Windows 7 professional with service pack 1, 64 bit
6.Jubula version :Jubula Functional Testing

Error details shown at failed ub_app_activate step:
Type: Action Error
Error Description: Execution Error: "java.lang.NullPointerException
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
at java.awt.Toolkit.getEventQueue(Unknown Source)
at java.awt.EventQueue.isDispatchThread(Unknown Source)
at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)
at org.eclipse.jubula.rc.swing.driver.EventThreadQueuerAwtImpl.invokeAndWait(
at org.eclipse.jubula.rc.swing.driver.RobotAwtImpl.getActiveWindow(
at org.eclipse.jubula.rc.swing.driver.RobotAwtImpl.activateApplication(
at org.eclipse.jubula.rc.common.tester.AbstractApplicationTester.rcActivate(
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.apache.commons.beanutils.MethodUtils.invokeMethod(
at org.apache.commons.beanutils.MethodUtils.invokeMethod(
at org.eclipse.jubula.rc.common.commands.MethodInvoker.invoke(
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.execute(
at org.eclipse.jubula.communication.Communicator$ConnectionListener.received(
at org.eclipse.jubula.communication.connection.Connection.fireMessageReceived(
at org.eclipse.jubula.communication.connection.Connection.access$2(
at org.eclipse.jubula.communication.connection.Connection$

Can anybody help, please?

Re: ub_app_activate step failing [message #1401358 is a reply to message #1398579] Tue, 15 July 2014 13:33 Go to previous message
Achim Loerke is currently offline Achim LoerkeFriend
Messages: 376
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

This might be a racing condition where the test executor recognizes a started Java program (netx, don't know what it does) and tries to get the GUI thread before the actual AUT is running. Try adding a wait at the start of your test and disable automatic AUT activation (in the Expert section of the AUT configuration dialog).

- Achim
Previous Topic:test HTML and RCP in a same AUT
Next Topic:Summer time - vacation time
Goto Forum:

Current Time: Fri Jun 22 17:00:22 GMT 2018

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

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

Back to the top