Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Problem by extending an existing TesterClass
Problem by extending an existing TesterClass [message #1105233] Mon, 09 September 2013 10:52 Go to next message
Philipp Wueller is currently offline Philipp Wueller
Messages: 12
Registered: July 2013
Junior Member
Hello everybody,

i want to extend an existing Testerclass about a new method. I can select the method for my component in Jubula but during the textexecution i get the following error Message:

AUT:16:36:06.974 [Connection.ReaderThread:Socket[addr=ZEB-NB13-0140.zeb.de/10.1.112.130,port=53337,localport=53354]] ERROR o.e.j.r.c.c.AbstractCapTestCommand - implementa
tion class method not found
AUT:java.lang.NoSuchMethodException: No such accessible method: clickInHeaderAtColumn() on object: org.eclipse.jubula.rc.swt.tester.TreeTester
AUT: at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:214) ~[org.apache.commons.beanutils.jar:na]
AUT: at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:162) ~[org.apache.commons.beanutils.jar:na]
AUT: at org.eclipse.jubula.rc.common.commands.MethodInvoker.invoke(MethodInvoker.java:64) ~[org.eclipse.jubula.rc.common.jar:na]
AUT: at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.execute(AbstractCapTestCommand.java:232) ~[org.eclipse.jubula.rc.common.jar:na]
AUT: at org.eclipse.jubula.communication.Communicator$ConnectionListener.received(Communicator.java:844) [org.eclipse.jubula.communication.jar:na]
AUT: at org.eclipse.jubula.communication.connection.Connection.fireMessageReceived(Connection.java:401) [org.eclipse.jubula.communication.jar:na]
AUT: at org.eclipse.jubula.communication.connection.Connection.access$3(Connection.java:390) [org.eclipse.jubula.communication.jar:na]
AUT: at org.eclipse.jubula.communication.connection.Connection$ReaderThread.run(Connection.java:453) [org.eclipse.jubula.communication.jar:na]

My ComponentConfiguration.xml looks like this:

<toolkitComponent type="org.eclipse.swt.widgets.TreeHeader" visible="false">
<extends>org.eclipse.swt.widgets.Tree</extends>
<testerClass>org.eclipse.jubula.rc.swt.tester.TreeHeaderTester</testerClass>

<action name="Tree.ClickInHeaderAtColumn">
<method>clickInHeaderAtColumn</method>
<param name="Tree.ColumnID">
<type>java.lang.Integer</type>
</param>
</action>

</toolkitComponent>

My class TreeHeaderTester implements the method clickInHeaderAtColumn, but Jubula wants to call this method from the class TreeTester. I think my problem is the ComponentConfiguration.xml?!

Can you help me?

Best regards,

Philipp Wueller
Re: Problem by extending an existing TesterClass [message #1108019 is a reply to message #1105233] Fri, 13 September 2013 04:01 Go to previous messageGo to next message
Philipp Wueller is currently offline Philipp Wueller
Messages: 12
Registered: July 2013
Junior Member
solved-- my problem was the missing statement in the i18n.properties file.
Re: Problem by extending an existing TesterClass [message #1110798 is a reply to message #1108019] Tue, 17 September 2013 06:35 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1124
Registered: July 2009
Senior Member
Thanks for the update Philip.
Re: Problem by extending an existing TesterClass [message #1219547 is a reply to message #1108019] Wed, 04 December 2013 10:05 Go to previous messageGo to next message
Yuvraj Nigade is currently offline Yuvraj Nigade
Messages: 6
Registered: November 2013
Junior Member
Hi Philip,

I am also facing similar error. Can you please elaborate what exactly was missing from your i18n.properties file?

Thanks.
Re: Problem by extending an existing TesterClass [message #1219549 is a reply to message #1219547] Wed, 04 December 2013 10:20 Go to previous message
Yuvraj Nigade is currently offline Yuvraj Nigade
Messages: 6
Registered: November 2013
Junior Member
Below is my ComponentConfiguration.xml=>

<toolkitComponent type="AppLauncher" hasDefaultMapping="true">
<extends>guidancer.concrete.GraphicApplication</extends>
<testerClass>org.eclipse.jubula.rc.swing.tester.AppTester</testerClass>
<action name="CompSystem.LaunchApp" >
<method>startApplication</method>
<param name="CompSystem.Command">
<type>java.lang.String</type>
</param>
</action>
</toolkitComponent>

Below is my i18n.properties file=>

AppLauncher=AppLauncher
CompSystem.LaunchApp=Launch App

Similar to the problem mentioned by Philip, I see following error during test execution=>

java.lang.NoSuchMethodException: No such accessible method: startApplication() on object: org.eclipse.jubula.rc.swing.tester.SwingApplicationTester

Appreciate any pointer you can provide. Thanks.
Previous Topic:Drag and drop
Next Topic:Object Mapping - Permission denied to access property
Goto Forum:
  


Current Time: Fri Aug 22 04:07:16 EDT 2014

Powered by FUDForum. Page generated in 0.15230 seconds