Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Testjob does not start if started from Maven(First click not accomplished)
Testjob does not start if started from Maven [message #1490568] Fri, 28 November 2014 08:48 Go to next message
fab jubulator is currently offline fab jubulatorFriend
Messages: 30
Registered: November 2014
Member
I have a very peculiar problem.
I can start the AUT out of Maven and I can also excute the batch file that starts the testjob. If I MANUALLY make the first click in the AUT, then the test job runs perfectly.
If I don't, this first click is never made and the job inevitably fails.

What I don't understand: If I start the AUT out of Maven and then manually execute the startTest.bat, everything works, even the first click! Each and every time.

It is the exact same batch file and the AUT is in focus!

How can that be?

Thank you!
Re: Testjob does not start if started from Maven [message #1490910 is a reply to message #1490568] Fri, 28 November 2014 14:54 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi there,

That is indeed odd! You mention that you're using a test job - could it be to do with timing issues? Does waiting help? What error do you get when the test fails?
If you can add logs / test result reports / an overview of the scripts and order that things run in, then that would be helpful.

Thanks!
Alex
Re: Testjob does not start if started from Maven [message #1494201 is a reply to message #1490910] Mon, 01 December 2014 09:04 Go to previous messageGo to next message
fab jubulator is currently offline fab jubulatorFriend
Messages: 30
Registered: November 2014
Member
I added waiting time and tried quite a few things before I decided to post here.
I have now installed a Jubula update and I'll try again to see what happens.
I'll get back in a minute.
Re: Testjob does not start if started from Maven [message #1494263 is a reply to message #1494201] Mon, 01 December 2014 10:14 Go to previous messageGo to next message
fab jubulator is currently offline fab jubulatorFriend
Messages: 30
Registered: November 2014
Member
Same as before.
If I make the first click, the job starts running. Otherwise, it doesn't work.

See pic.

Thanks!
  • Attachment: failed.jpg
    (Size: 91.52KB, Downloaded 109 times)
Re: Testjob does not start if started from Maven [message #1494286 is a reply to message #1494263] Mon, 01 December 2014 10:38 Go to previous messageGo to next message
fab jubulator is currently offline fab jubulatorFriend
Messages: 30
Registered: November 2014
Member
I still don't know why the first click doesn't work, but I fixed the problem by adding a component not found/continue event handler which presses enter. Pressing ENTER replaces the click now.
Re: Testjob does not start if started from Maven [message #1494306 is a reply to message #1494286] Mon, 01 December 2014 11:00 Go to previous message
fab jubulator is currently offline fab jubulatorFriend
Messages: 30
Registered: November 2014
Member
Logs:
2014-12-01 10:57:26.930 [Connection.ReaderThread:Socket[addr=Katzenlady.ot.local/192.168.100.49,port=64177,localport=54341]] WARN o.e.j.r.c.c.AbstractCapTestCommand - unmanaged component with identifier: 'org.eclipse.jubula.tools.objects.ComponentIdentifier@131ac55[component type=org.eclipse.swt.widgets.Button,alternative name=<null>,hierarchy=[org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Button_1]]'.
org.eclipse.jubula.rc.common.exception.ComponentNotFoundException: unmanaged component with identifier: 'org.eclipse.jubula.tools.objects.ComponentIdentifier@131ac55[component type=org.eclipse.swt.widgets.Button,alternative name=<null>,hierarchy=[org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Button_1]]'.
at org.eclipse.jubula.rc.swt.listener.ComponentHandler.findComponent(ComponentHandler.java:178) ~[org.eclipse.jubula.rc.swt_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.swt.commands.CAPTestCommand.findComponent(CAPTestCommand.java:43) ~[org.eclipse.jubula.rc.swt_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.getImplClass(AbstractCapTestCommand.java:133) [org.eclipse.jubula.rc.common_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.execute(AbstractCapTestCommand.java:234) [org.eclipse.jubula.rc.common_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.Communicator$ConnectionListener.received(Communicator.java:815) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.connection.Connection.fireMessageReceived(Connection.java:401) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.connection.Connection.access$2(Connection.java:390) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.connection.Connection$ReaderThread.run(Connection.java:453) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
2014-12-01 10:57:43.422 [Connection.ReaderThread:Socket[addr=Katzenlady.ot.local/192.168.100.49,port=64177,localport=54342]] WARN o.e.j.r.c.c.AbstractCapTestCommand - unmanaged component with identifier: 'org.eclipse.jubula.tools.objects.ComponentIdentifier@1d78cd0[component type=org.eclipse.swt.widgets.Combo,alternative name=<null>,hierarchy=[org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, net.uniopt.graphic.swt.SessionPropertiesPanel_1, org.eclipse.swt.widgets.Group_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Combo_1]]'.
org.eclipse.jubula.rc.common.exception.ComponentNotFoundException: unmanaged component with identifier: 'org.eclipse.jubula.tools.objects.ComponentIdentifier@1d78cd0[component type=org.eclipse.swt.widgets.Combo,alternative name=<null>,hierarchy=[org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, net.uniopt.graphic.swt.SessionPropertiesPanel_1, org.eclipse.swt.widgets.Group_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Combo_1]]'.
at org.eclipse.jubula.rc.swt.listener.ComponentHandler.findComponent(ComponentHandler.java:178) ~[org.eclipse.jubula.rc.swt_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.swt.commands.CAPTestCommand.findComponent(CAPTestCommand.java:43) ~[org.eclipse.jubula.rc.swt_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.getImplClass(AbstractCapTestCommand.java:133) [org.eclipse.jubula.rc.common_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.execute(AbstractCapTestCommand.java:234) [org.eclipse.jubula.rc.common_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.Communicator$ConnectionListener.received(Communicator.java:815) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.connection.Connection.fireMessageReceived(Connection.java:401) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.connection.Connection.access$2(Connection.java:390) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.connection.Connection$ReaderThread.run(Connection.java:453) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
2014-12-01 10:58:03.586 [Connection.ReaderThread:Socket[addr=Katzenlady.ot.local/192.168.100.49,port=64177,localport=54344]] WARN o.e.j.r.c.c.AbstractCapTestCommand - unmanaged component with identifier: 'org.eclipse.jubula.tools.objects.ComponentIdentifier@3f210a[component type=org.eclipse.swt.widgets.ToolItem,alternative name=<null>,hierarchy=[org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.custom.SashForm_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.custom.SashForm_1, net.uniopt.ot.tc.swt.widgets.TourCommanderPanel_2, org.eclipse.swt.widgets.ToolBar_2, org.eclipse.swt.widgets.ToolItem_3]]'.
org.eclipse.jubula.rc.common.exception.ComponentNotFoundException: unmanaged component with identifier: 'org.eclipse.jubula.tools.objects.ComponentIdentifier@3f210a[component type=org.eclipse.swt.widgets.ToolItem,alternative name=<null>,hierarchy=[org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.custom.SashForm_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.custom.SashForm_1, net.uniopt.ot.tc.swt.widgets.TourCommanderPanel_2, org.eclipse.swt.widgets.ToolBar_2, org.eclipse.swt.widgets.ToolItem_3]]'.
at org.eclipse.jubula.rc.swt.listener.ComponentHandler.findComponent(ComponentHandler.java:178) ~[org.eclipse.jubula.rc.swt_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.swt.commands.CAPTestCommand.findComponent(CAPTestCommand.java:43) ~[org.eclipse.jubula.rc.swt_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.getImplClass(AbstractCapTestCommand.java:133) [org.eclipse.jubula.rc.common_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.execute(AbstractCapTestCommand.java:234) [org.eclipse.jubula.rc.common_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.Communicator$ConnectionListener.received(Communicator.java:815) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.connection.Connection.fireMessageReceived(Connection.java:401) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
at org.eclipse.jubula.communication.connection.Connection.access$2(Connection.java:390) [org.eclipse.jubula.communication_2.3.0.201404150900.jar:na]
Previous Topic:Cannot open a different project
Next Topic:Does Jubula recognize changes of the java project?
Goto Forum:
  


Current Time: Wed Apr 24 22:06:11 GMT 2024

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

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

Back to the top